Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1) Which of the following is the not true about the OS Multics ? A. It is a joint project started by IBM. B. It

1) Which of the following is the not true about the OS Multics? A. It is a joint project started by IBM. B. It is a joint project started by Massachusetts Institute of Technology (MIT). C. It is short for multiplexed information and computing services. D. It is a time sharing system. E. General Electric (GE) was one of the starting partners of the project.

2) Which of the following is the not true about distributed systems? A. They consist of machines connected by a network. B. They are loosely coupled systems. C. They share resources. D. They often use client-server model. E. They are tightly coupled systems.

3) Which of the following about OS is not true? A. Most of the top 500 supercomputers are built with Linux. B. More than 5% of the top 500 supercomputers are built with MS-Windows. C. Less than 3% of the top 500 supercomputers are built with Mac OS/X. D. All real-time systems have very fast response. E. Embedded systems are used in mobile phones.

4) Consider the following program:

int main()

{

int i;

for ( i = 0; i < 3; ++i ) {

fork();

cout << i << endl;

}

return 0;

}

4) How many 1's will be printed by the program? Enter your answer, an integer, here (do not put in any punctuation mark):

5) What is the two-characters Unix command that deletes a file? Enter your answer here (do not put in any punctuation mark; note also that Unix commands are case sensitive):

6) Which of the following Unix command will make the file test1 executable? (Choose the best answer.) A. chmod +x test1 B. chmod +w test1 C. g++ test1 D. cp test1 test1.exe E. mv test1 test1.exe

7) The following is the source code of progA:

#include

using namespace std;

int main()

{

cout << "A "

return 0;

}

and the following is the source code of progB:

#include

#include

#include

using namespace std;

int main()

{

int pid = fork();

if ( pid == 0 ) {

cout << "C ";

fflush( stdout ); //flush standard output

execlp ( "./progA", "", NULL );

cout << "D ";

fflush( stdout );

} else {

wait ( NULL );

cout << "B ";

}

cout << endl;

return 0;

}

7) What is the output when you execute ./progB? A. A B C D B. C A D B C. B C A D D. C A B E. C D B

8) Suppose the executable shell scripts, sh1, sh2, and sh3 contain the statements

x=1 #sh1

,

x=2 #sh2

, and

x=`expr $x + 2` #sh3

respectively. The following sequence of commands are executed:

$ . ./sh1

$ . ./sh2

$ ./sh3

$ ./sh1

$ . ./sh3

$ echo $x

8) What is the output? A. 3 B. 4 C. 5 D. 7 E. 8

9) Which of the following regarding an operating system ( OS ) is not true? A. It allocates resources. B. It provides the run-time environment. C. Its primary goal is the efficiency of operation and secondary goal is the convenience of operation. D. It hides heterogeneous hardware from users. E. An OS may be regarded as a virtual machine providing higher level abstraction to application programs.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 1 Lnai 9284

Authors: Annalisa Appice ,Pedro Pereira Rodrigues ,Vitor Santos Costa ,Carlos Soares ,Joao Gama ,Alipio Jorge

1st Edition

3319235273, 978-3319235271

More Books

Students also viewed these Databases questions