wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

TECH FUED ROUND-1

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Assume that source S and destination D are connected through two intermediate routers labeled R. Determine how many times each packet has to visit the network layer and the data link layer during a transmission from S to D.

a)

Network layer – 4 times and Data link layer – 4 times

b)

Network layer – 4 times and Data link layer – 3 times

c)

Network layer – 4 times and Data link layer – 6 times

d)

Network layer – 2 times and Data link layer – 6 times

2.

In the slow start phase of the TCP congestion control algorithm, the size of the congestion window

a)

does not increase

b)

increases linearly

c)

increases quadratically

d)

increases exponentially

3.

Which of the following statements is false?

a)

Virtual memory implements the translation of a program‘s address space into physical memory address space

b)

Virtual memory allows each program to exceed the size of the primary memory

c)

Virtual memory increases the degree of multiprogramming

d)

Virtual memory reduces the context switching overhead

4.

A process executes the code

fork();

fork();

fork();

The total number of child processes created is

a)

3

b)

4

c)

7

d)

8

5.

The following program consists of 3 concurrent processes and 3 binary semaphores. The semaphores are initialized as S0 = 1, S1 = 0, S2 = 0. How many times will process P0 print '0'?

a)

At least twice

b)

Exactly twice

c)

Exactly thrice

d)

Exactly once

6.

Consider the following statements about process state transitions for a system using preemptive scheduling.

I. A running process can move to ready state.

II. A ready process can move to running state.

III. A blocked process can move to running state.

IV. A blocked process can move to ready state.

 

Which of the above statements are TRUE ?

a)

I, II, and III only

b)

II and III only

c)

I, II, and IV only

d)

I, II, III and IV only

7.

If the quantum time of round robin algorithm is very large, then it is equivalent to:

a)

First in first out

b)

Shortest Job Next

c)

Lottery scheduling

d)

None of the above

8.

The following postfix expression with single digit operands is evaluated using a stack:

8 2 3 ^ / 2 3 * + 5 1 - *

Note that ^ is the exponentiation operator. The top two elements of the stack after the first * is evaluated are:

a)

6, 1

b)

5, 7

c)

3, 2

d)

1, 5

9.

Assume that the operators +, -, × are left associative and ^ is right associative. The order of precedence (from highest to lowest) is ^, x , +, -. The postfix expression corresponding to the infix expression a + b × c - d ^ e ^ f is

a)

abc × + def ^ ^ -

b)

abc × + de ^ f ^ -

c)

ab + c × d - e ^ f ^

d)

- + a × bc ^ ^ def

10.

Suppose a stack is to be implemented with a linked list instead of an array. What would be the effect on the time complexity of the push and pop operations of the stack implemented using linked list (Assuming stack is implemented efficiently)?

a)

O(1) for insertion and O(n) for deletion

b)

O(1) for insertion and O(1) for deletion

c)

O(n) for insertion and O(1) for deletion

d)

O(n) for insertion and O(n) for deletion

11.

What will be the output of the following C function when EOF returns?

int fputs(char line, FILE fp)

a)

‘ ’ character of array line is encountered

b)

‘n’ character in array line is encountered

c)

‘t’ character in array line is encountered

d)

When an error occurs

12.

Which of the following is a correlated subquery?

a)

Uses the result of an inner query to determine the processing of an outer query.

b)

Uses the result of an outer query to determine the processing of an inner query.

c)

Uses the result of an inner query to determine the processing of an inner query.

d)

Uses the result of an outer query to determine the processing of an outer query.

13.

What is the main disadvantage of using a monolithic kernel compared to a microkernel?

a)

Poor performance

b)

Less modularity

c)

Decreased security

d)

More complex codebase

14.

Consider a node X in a Binary Tree. Given that X has two children, let Y be Inorder successor of X. Which of the following is true about Y?

a)

Y has no right child

b)

Y has no left child

c)

Y has both children

d)

None of the above

15.

Output of following program?

# include <stdio.h>

void fun(int *ptr)

{

*ptr = 30;

}

int main()

{

int y = 20;

fun(&y);

printf("%d", y);

return 0;

}

a)

20

b)

30

c)

Compiler Error

d)

Runtime Error

16.

Consider the following rooted tree with the vertex P labeled as root.

The order in which the nodes are visited during in-order traversal is

a)

SQPTRWUV

b)

SQPTURWV

c)

SQPTWUVR

d)

SQPTRUWV

17.

The in-order and pre-order traversal of a binary tree are d b e a f c g and a b d e c f g respectively. The post order traversal of a binary tree is

a)

e d b g f c a

b)

e d b f g c a

c)

d e b f g c a

d)

d e f g b c a

18.

SQL allows tuples in relations, and correspondingly defines the multiplicity of tuples in the result of joins. Which one of the following queries always gives the same answer as the nested query shown below

a)

select * from R where a in (select S.a from S)

b)

select R.* from R, S where R.a=S.a (D)

c)

select distinct R.* from R,S where R.a=S.a

d)

select R.* from R,(select distinct a from S) as S1 where R.a=S1.a

e)

select R.* from R,S where R.a=S.a and is unique R

19.

Suppose computers A and B have IP addresses 10.105.1.113 and 10.105.1.91 respectively and they both use the same netmask N. Which of the values of N given below should not be used if A and B should belong to the same network?

a)

255.255.255.0

b)

255.255.255.128

c)

255.255.255.192

d)

255.255.255.224

20.

How many networks and nodes per network, are allowed by the Class B network?

a)

127 networks and 16,777,216 nodes per network

b)

16,384 networks and 65,534 nodes per network

c)

2,097,125 networks and 254 nodes per network

d)

none of the above