Question

In: Computer Science

11. A fork() function call is a system call. true or false 12. A fork() function...

11. A fork() function call is a system call. true or false

12. A fork() function call in a user program is executed in user mode, not in kernel mode. true or false

13. Alice writes a high-level program using some
programming language on her home desktop computer
and using compilation it transforms into an executable file.
Bob's home desktop computer will not execute Alice's executable file.
What language was Alice's program written with?

14. Alice rewrites her high-level program using another
programming language on her home desktop computer
and it compiles into some file, different from the original
source file.
Bob is able to execute Alice's generated file without any
other intervention, even if Bob's computer has a different
CPU than Alice's (Alice has Intel, Bob has Motorola).
What language was Alice's program written with?

15.

Alice rewrites her high-level program using another
programming language on her home desktop computer.
She sends the file of the program to Bob.
Bob is able to run Alice's program without any
other intervention.

What language was Alice's program written with?

Solutions

Expert Solution

11.TRUE

12.TRUE

13.Upon compilation if it transforms to an executable file it means the programming language can be non-object oriented and the executables are dependent on the OS of the computer. For example if alice's os is windows then executable could be .exe and if bob's OS is different then it could not execute. Hence we can say that the programming language is a compiled time language ex: C language.

14.Here Alice uses both a compile time and interpreted type of programming language such as JAVA.Here the compilation creates a bytecode which could be implemented on any OS i.e. the byte code is independent of the OS of the computer. when BOB receives the byte code (say .class file of java) he can interpret it and execute it irrespective of OS.Hence the answer could be a programming language which is both compiled and interpreted ex:JAVA

15. It can be any programming language either compiled time or interpreted or both. Because the program file is something which is same for all OS's i.e. a java file has .java extension on all OS's. Hence the answer can be like C,Java,Python etc.


Related Solutions

Write a C or C++ program using the fork() system call function. You will need to...
Write a C or C++ program using the fork() system call function. You will need to create 3 processes – each process will perform a simple task. Firstly, create an integer "counter" initialized to a random value between 1 and 100. Print this number to the console. This can be done by: Including the stdio.h and stdlib.h libraries Using the rand() function to generate your randomly generated number The main thread consists of the parent process. Your job is to...
Write True or False 11. A production function does not show the amount of profit a...
Write True or False 11. A production function does not show the amount of profit a firm can make. 12. All production functions show diminishing marginal returns in the short run when an inout is fixed. 13. Under perfect competition the firms short run supply curve is its short run AVERAGE cost curve. 14. Under Perfect Competition the MARKET DEMAND curve is flat. 15. Under Perfect Competition firms may make positive profits in the short run. 16. Under Perfect Competition...
True and false 1. All Waves require a medium for transporting energy. 2. A tuning fork...
True and false 1. All Waves require a medium for transporting energy. 2. A tuning fork cannot be made to vibrate unless it is struck. 3. Unlike charges repel. 4. An object in an electric field cannot have any potential energy due to the field. 5. Magnetic forces are a maximum when a moving charged particle travels perpendicular to magnetic field lines. 6. When the speed of light increases in going from one medium to another,the light bends away from...
11) Doing a control chart first renders a run chart unnecessary. Select one: True False 12)...
11) Doing a control chart first renders a run chart unnecessary. Select one: True False 12) After a good process baseline is obtained, the next step for a process improvement project should be Select one: a. getting 10 to 15 people together to do a flowchart of the process and how the work gets done. b. getting 10-15 people together to brainstorm possible causes of the problem. c. having a team vote on what they think the best solutions might...
1. True or false. The mass of a closed system cannot change. 2. True or false....
1. True or false. The mass of a closed system cannot change. 2. True or false. Fahrenheit scale cannot be used in thermodynamics relations. 3. True or false. An extensive property can be a function of time and location. 4. True or false. If a system is at steady state, then the density is uniform throughout the system. 5. True or false. All modes of heat transfer between two bodies must occur when the two bodies are in contact. 6....
The derivative of ln|x| is an odd function is it true/false
The derivative of ln|x| is an odd function is it true/false
True or False? Short Call Option provides the option (not the obligation) to sell the underlying...
True or False? Short Call Option provides the option (not the obligation) to sell the underlying asset for the strike price at maturity.” Explain your answer with example(s). True or False? Long Put Option provides the option (not the obligation) to sell the underlying asset for the strike price at maturity.” Explain your answer with example(s).
Answer the following with True/False: You buy a put and a call option simultaneously in a...
Answer the following with True/False: You buy a put and a call option simultaneously in a protective put.    For put-call parity to hold, the exercise price of call and put options must be similar. The formula for continuous discounting is FV (e -rt) . The minimum value for a put option can sell, can be written as Max (0, P - E). The intrinsic value of an in-the-money call option is written as: C=P0 - E.   d1 and d2...
Slack variable coefficients of 1 in the objective function. true or false
Slack variable coefficients of 1 in the objective function. true or false
True or false: The quantity represented by ω0 is a function of time (i.e., is not...
True or false: The quantity represented by ω0 is a function of time (i.e., is not constant). True or false: The quantity represented by ω is a function of time (i.e., is not constant Which of the following equations is not an explicit function of time t, that is, does not involve t as a variable, and is therefore useful when you do not know or do not need the time? θ=θ0+ω0t+(1/2)αt2 ω=ω0+αt ω2=ω02+2α(θ−θ0) In the equation ω=ω0+αt, what does...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT