
Unit 3 PGTRB
Quiz
•
Other
•
Professional Development
•
Medium
Viswathika K
Used 1+ times
FREE Resource
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.
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Freshworks Academy Quiz
Quiz
•
Professional Development
25 questions
Ulangan Informatika kelas 7
Quiz
•
Professional Development
20 questions
Information System Administration Quiz in english
Quiz
•
Professional Development
15 questions
Escalation Sup Role
Quiz
•
Professional Development
20 questions
CI knowledge game
Quiz
•
Professional Development
18 questions
CI Ops - PPA
Quiz
•
Professional Development
16 questions
NTTP Final TAG quiz
Quiz
•
Professional Development
17 questions
Computer assembling quiz
Quiz
•
7th Grade - Professio...
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade