
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.
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
Already have an account?
Similar Resources on Wayground
20 questions
Songs & Song Artists
Quiz
•
3rd Grade - Professio...
20 questions
MEGA QUIZ-Pension Plans & Annuity Plans
Quiz
•
Professional Development
20 questions
आज का शब्द और अनुवाद प्रतियोगिता- 15.06.2023
Quiz
•
Professional Development
20 questions
Análise do The Messy Middle
Quiz
•
Professional Development
16 questions
AFL vs AOL
Quiz
•
Professional Development
15 questions
Selling Skills
Quiz
•
Professional Development
15 questions
Among Us (The Skelds)
Quiz
•
KG - Professional Dev...
20 questions
Starbucks Knowledge Quiz
Quiz
•
University - Professi...
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Other
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
25 questions
Christmas Movies
Quiz
•
Professional Development
20 questions
Christmas Trivia
Quiz
•
Professional Development
15 questions
Fun Holiday Trivia
Quiz
•
Professional Development
25 questions
Name That Tune - Christmas
Quiz
•
Professional Development
29 questions
Christmas Song Emoji Pictionary
Quiz
•
Professional Development
9 questions
Holiday Movie Trivia
Lesson
•
Professional Development
34 questions
Winter Trivia
Quiz
•
Professional Development
