Unit 3 PGTRB

Unit 3 PGTRB

Professional Development

20 Qs

quiz-placeholder

Similar activities

Vivint smart home basics test

Vivint smart home basics test

Professional Development

20 Qs

kobe bryant

kobe bryant

4th Grade - Professional Development

18 Qs

RFID

RFID

Professional Development

16 Qs

10-01 day 8

10-01 day 8

Professional Development

19 Qs

Commerce Quiz

Commerce Quiz

University - Professional Development

25 Qs

Human Factors in Aircraft Maintenance

Human Factors in Aircraft Maintenance

Professional Development

20 Qs

Post-Test Under Cyber Closet Project

Post-Test Under Cyber Closet Project

Professional Development

25 Qs

FOLLOW UP EMAILS

FOLLOW UP EMAILS

Professional Development

23 Qs

Unit 3 PGTRB

Unit 3 PGTRB

Assessment

Quiz

Other

Professional Development

Medium

Created by

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.

print

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?