wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

RTOS

Total questions: 40

Worksheet time: 23mins

Name
Class
Date
1.

Which one of the following is a real time operating system?

a)

RTLinux

b)

VxWorks

c)

Windows CE

d)

All of the mentioned

2.

Antilock brake systems, flight management systems, pacemakers are examples of ____________

a)

safety critical system

b)

hard real time system

c)

soft real time system

d)

safety critical system and hard real time system

3.

In a ______ real time system, it is guaranteed that critical real time tasks will be completed within their deadlines.

a)

soft

b)

hard

c)

critical

d)

none of the mentioned

4.

The processes that are residing in main memory and are ready and waiting to execute are kept on a list called _____________

a)

job queue

b)

ready queue

c)

execution queue

d)

process queue

5.

Preemptive, priority based scheduling guarantees ____________

a)

hard real time functionality

b)

soft real time functionality

c)

protection of memory

d)

none of the mentioned

6.

Interrupt latency refers to the period of time ____________

a)

from the occurrence of an event to the arrival of an interrupt

b)

from the occurrence of an event to the servicing of an interrupt

c)

from arrival of an interrupt to the start of the interrupt service routine

d)

none of the mentioned

7.

The amount of time required for the scheduling dispatcher to stop one process and start another is known as ______________

a)

event latency

b)

interrupt latency

c)

dispatch latency

d)

context switch

8.

The most effective technique to keep dispatch latency low is to ____________

a)

provide non preemptive kernels

b)

provide preemptive kernels

c)

make it user programmed

d)

run less number of processes at a time

9.

In rate monotonic scheduling, a process with a shorter period is assigned __________

a)

a higher priority

b)

a lower priority

c)

higher & lower priority

d)

none of the mentioned

10.

Which module gives control of the CPU to the process selected by the short-term scheduler?

a)

dispatcher

b)

interrupt

c)

scheduler

d)

none of the mentioned

11.

In priority scheduling algorithm, when a process arrives at the ready queue, its priority is compared with the priority of ____________

a)

all process

b)

currently running process

c)

parent process

d)

init process

12.

Which scheduling algorithm allocates the CPU first to the process that requests the CPU first?

a)

first-come, first-served scheduling

b)

shortest job scheduling

c)

priority scheduling

d)

none of the mentioned

13.

In priority scheduling algorithm ____________

a)

CPU is allocated to the process with highest priority

b)

CPU is allocated to the process with lowest priority

c)

Equal priority processes can not be scheduled

d)

None of the mentioned

14.

Which algorithm is defined in Time quantum?

a)

shortest job scheduling algorithm

b)

round robin scheduling algorithm

c)

priority scheduling algorithm

d)

multilevel queue scheduling algorithm

15.

Process are classified into different groups in ____________

a)

shortest job scheduling algorithm

b)

round robin scheduling algorithm

c)

priority scheduling algorithm

d)

multilevel queue scheduling algorithm

16.

A process is selected from the ______ queue by the ________ scheduler, to be executed.

a)

blocked, short term

b)

wait, long term

c)

ready, short term

d)

ready, long term

17.

The switching of the CPU from one process or thread to another is called ____________

a)

process switch

b)

task switch

c)

context switch

d)

all of the mentioned

18.

Scheduling is done so as to ____________

a)

increase CPU utilization

b)

decrease the turnaround time

c)

increase the throughput

d)

All of the mentioned

19.

What is Waiting time?

a)

the total time in the blocked and waiting queues

b)

the total time spent in the ready queue

c)

the total time spent in the running queue

d)

the total time from the completion till the submission of a process

20.

Choose one of the disadvantages of the priority scheduling algorithm?

a)

it schedules in a very complex manner

b)

its scheduling takes up a lot of time

c)

it can lead to some low priority process waiting indefinitely for the CPU

d)

none of the mentioned

21.

Which of the following statements are true?

i) Shortest remaining time first scheduling may cause starvation

ii) Preemptive scheduling may cause starvation

iii) Round robin is better than FCFS in terms of response time

a)

i only

b)

i and iii only

c)

ii and iii only

d)

i, ii and iii

22.

Which of the following scheduling algorithms gives minimum average waiting time?

a)

FCFS

b)

SJF

c)

Round – robin

d)

Priority

23.

Which one of the following is not shared by threads?

a)

program counter

b)

stack

c)

both program counter and stack

d)

none of the mentioned

24.

A process can be ___________

a)

single threaded

b)

multithreaded

c)

both single threaded and multithreaded

d)

none of the mentioned

25.

The time required to create a new thread in an existing process is ___________

a)

greater than the time required to create a new process

b)

less than the time required to create a new process

c)

equal to the time required to create a new process

d)

none of the mentioned

26.

Round robin scheduling falls under the category of ____________

a)

Non-preemptive scheduling

b)

Preemptive scheduling

c)

All of the mentioned

d)

None of the mentioned

27.

With round robin scheduling algorithm in a time shared system ____________

a)

using very large time slices converts it into First come First served scheduling algorithm

b)

using very small time slices converts it into First come First served scheduling algorithm

c)

using extremely small time slices increases performance

d)

using very small time slices converts it into Shortest Job First algorithm

28.

A thread is also called ___________

a)

Light Weight Process(LWP)

b)

Heavy Weight Process(HWP)

c)

Process

d)

None of the mentioned

29.

Termination of the process terminates ___________

a)

first thread of the process

b)

first two threads of the process

c)

all threads within the process

d)

no thread within the process

30.

Thread synchronization is required because ___________

a)

all threads of a process share the same address space

b)

all threads of a process share the same global variables

c)

all threads of a process can share the same files

d)

all of the mentioned

31.

What does a real-time kernel do?

a)

Handles Concurrent and multitask execution

b)

Interrupt Requests

c)

Resource and time Management

d)

All of the mentioned

32.

How many different FreeRTOS memory management implementations are there?

a)

4

b)

2

c)

1

d)

3

33.

Which state is implemented by a task but is not implemented by a co-routine?

a)

Ready State

b)

Running State

c)

Suspended State

d)

Blocked State

34.

In FreeRTOS , When there are no tasks running, (a)   will always run on the CPU.

35.

(a)   is responsible for freeing memory allocated by the FreeRTOS to tasks that have been deleted?

36.

In FreeRTOS, an item is written to the queue using API (a)  

37.

In FreeRTOS the size of the queue item is set using Queue API

(a)  

38.

In FreeRTOS an item is read but not removed from a queue using API (a)  

39.

In FreeRTOS a semaphore is triggered using API (a)  

40.

A FreeRTOS task is suspended using API (a)