
Unit 3 PGTRB
Quiz
•
Other
•
Professional Development
•
Practice Problem
•
Medium
Viswathika K
Used 1+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
__________ system call creates new process in Unix.
fork
fork new
create
create new
Answer explanation
In Unix-like operating systems, the fork system call is used to create a new process. The fork system call creates a copy of the calling process. After a successful fork, the child process and the parent process continue execution independently. The child process receives a return value of 0, while the parent process gets the process ID (PID) of the child process.
Other options like "fork new", "create", and "create new" are not valid Unix system calls for creating a process.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Linux operating system environment _______ command is used to print a file.
lpr
ptr
pr.
Answer explanation
The lpr command in Linux is used to print a file. It sends the file content to the default printer or a specified printer.
Other options like "print", "ptr", and "pr" do not serve this purpose in Linux.
The pr command, on the other hand, is used for formatting text for printing, but it does not directly print a file.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following UNIX/Linux pipes will count the number of lines in all the files having .c and .h as their extension in the current working directory?
cat *.ch | wc -l
cat *.[c-h] | wc -l
cat *.[ch] | ls -l
cat *.[ch] | wc -l
Answer explanation
cat .[ch] | wc -l - This will correctly find all files with the .c and .h extensions in the current directory using the pattern .[ch], then it concatenates their content using cat and counts the total number of lines with wc -l. This is the correct approach to solve the problem.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
An Address in main memory is called:
Virtual address
Memory address
Logical address
Physical address
Answer explanation
A physical address refers to an actual location in the computer's main memory (RAM) where data is stored. It is used by the hardware to access memory directly. This contrasts with a logical (or virtual) address, which is used by programs and must be mapped to a physical address by the operating system or memory management unit (MMU). The physical address is the real address where data resides in the memory hardware.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider a virtual page reference string 1, 2, 3, 2, 4, 2, 5, 2, 3, 4. Suppose LRU page replacement algorithm is implemented with 3 page frames in main memory. Then the number of page faults are.
5
7
9
10
Answer explanation
Correct answer - ii) 7
The Least Recently Used (LRU) page replacement algorithm replaces the page that has not been used for the longest time when a page fault occurs and a new page needs to be loaded into memory.
Let’s go step by step to track the page references and page faults:
Initially, we have 3 empty frames: _ _ _
Reference: 1 → Load page 1 → 1 _ _ (Page Fault)
Reference: 2 → Load page 2 → 1 2 _ (Page Fault)
Reference: 3 → Load page 3 → 1 2 3 (Page Fault)
Reference: 2 → Page 2 is already in memory, no page fault → 1 2 3 (No Page Fault)
Reference: 4 → Replace least recently used (page 1) → 4 2 3 (Page Fault)
Reference: 2 → Page 2 is already in memory, no page fault → 4 2 3 (No Page Fault)
Reference: 5 → Replace least recently used (page 3) → 4 2 5 (Page Fault)
Reference: 2 → Page 2 is already in memory, no page fault → 4 2 5 (No Page Fault)
Reference: 3 → Replace least recently used (page 4) → 3 2 5 (Page Fault)
Reference: 4 → Replace least recently used (page 5) → 3 2 4 (Page Fault)
Thus, the total number of page faults is 7.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A document that specifies how many times and with what data the program must be run in order to thoroughly test it.
addressing plan
test plan
validation plan
verification plan
Answer explanation
Test plan is the A document that specifies how many times and with what data the program must be run in order to thoroughly test it. It comes under testing.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a process state?
Terminated
Running
Blocked
Execution
Answer explanation
There is no blocked state in a process model. The different states are ready, running, executing, waiting and terminated.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
Chery Sales Process (CSP)
Quiz
•
Professional Development
15 questions
Anime Fighters Simulator Update 12
Quiz
•
1st Grade - Professio...
16 questions
Kick-Off
Quiz
•
Professional Development
15 questions
Summer Getaway
Quiz
•
12th Grade - Professi...
15 questions
¿cuanto sabes de among us?
Quiz
•
Professional Development
15 questions
Aps 101
Quiz
•
Professional Development
20 questions
Mis uudist? nr 5
Quiz
•
5th Grade - Professio...
15 questions
About me
Quiz
•
4th Grade - Professio...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Other
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
100 questions
Screening Test Customer Service
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
10 questions
Reading a ruler in Inches
Quiz
•
4th Grade - Professio...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development
