Give me answers of those mcq

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Give me answers of those mcq
Part I: (5 marks)
A Assuming that the fork) is performed successfully in the following program.
Calculate the number of tims" hello world :)"is printed? (1 mark)
int main)
printi"Hit w):
fork),
printf"Hello World:) n"):
return 0,
B. Write the command that creates a new directory with name CS323 in the surrent
directory (1 mark)
C. Choose the correct answer (every question has one correct answer only): (2 mark)
1. The Linux command " cd" is used to
a. Create new sub-directory
b. List all files in the current directory
c. Change the current working directory
d. Change the directory name
2. Fork returns ............ to parent process on failure
a. -1
b. child process id
c. 0
d. parent process id
3. For mutex declaration, we need a global variable of type
a. Pthread_mutex_t
b. Phtread
c. Unsigned long
d. Pthread t
4. A thread can be terminated by calling:
a. Pthread t pthread_self()
b. Int pthreadjoin()
c. Void pthread exit()
d. Static int x=0
Transcribed Image Text:Part I: (5 marks) A Assuming that the fork) is performed successfully in the following program. Calculate the number of tims" hello world :)"is printed? (1 mark) int main) printi"Hit w): fork), printf"Hello World:) n"): return 0, B. Write the command that creates a new directory with name CS323 in the surrent directory (1 mark) C. Choose the correct answer (every question has one correct answer only): (2 mark) 1. The Linux command " cd" is used to a. Create new sub-directory b. List all files in the current directory c. Change the current working directory d. Change the directory name 2. Fork returns ............ to parent process on failure a. -1 b. child process id c. 0 d. parent process id 3. For mutex declaration, we need a global variable of type a. Pthread_mutex_t b. Phtread c. Unsigned long d. Pthread t 4. A thread can be terminated by calling: a. Pthread t pthread_self() b. Int pthreadjoin() c. Void pthread exit() d. Static int x=0
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY