In: Computer Science
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?
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.