Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Faculty Interview MCQ

Total questions: 50

Worksheet time: 25mins

Name
Class
Date
1.

What will be the output of the following C code?

a)

Compile time error

b)

Hello World! 34

c)

Hello World! 1000

d)

Hello World! followed by a junk value

2.

What will be the output of the following C code?

a)

128

b)

-128

c)

Depends on the compiler

d)

None of the mentioned

3.

What will be the output of the following C code?

a)

1 2 3 4 5

b)

Segmentation fault

c)

Compilation error

d)

Undefined behaviour

4.

What will be the output of the following C code?

a)

True

b)

False

c)

No Output will be printed

d)

Run Time Error

5.

What are the elements present in the array of the following C code?

a)

5, 5, 5, 5, 5

b)

5, 0, 0, 0, 0

c)

5, (garbage), (garbage), (garbage), (garbage)

d)

(garbage), (garbage), (garbage), (garbage), 5

6.

What will be the output of the following C code?

a)

6 -6 0 0

b)

6 -5 0 1

c)

-6 -6 0 1

d)

6 -6 0 1

7.

Which storage engine enables to access tables from a MySQL server managed by another server?

a)

MyISAM

b)

FEDERATED

c)

EXAMPLE

d)

InnoDB

8.

Which data type is used to store data and time in MySQL?

a)

Temporal data type

b)

Char/Varchar

c)

Text data type

d)

Numeric data type

9.

To check how MySQL would execute a SELECT query, which statement is used?

a)

EXPLAIN

b)

SHOW

c)

DISPLAY

d)

TELL

10.

How do we write comments in HTML?

a)

 </…….>

b)

 <!……>

c)

</……/>

d)

<.......!>

11.

Which of the following extensions is used to save an HTML file?

a)

.html

b)

.htm

c)

Only A

d)

Both A and B

12.

What will be the output of the following C code?

a)

990

b)

9990

c)

999 -1

d)

99 -1

13.

What will be the output of the following C code?

a)

97

b)

98

c)

4

d)

Runtime Error

14.

What will be the output of the following C code ?

a)

Run time Error

b)

4

c)

Compile Time Error

d)

Syntax Error

15.

What will be the output of the following C code ?

a)

53 65

b)

65 65

c)

065 65

d)

Syntax Error

16.

What will be the output of the following C code ?

a)

10

b)

-10

c)

-11

d)

-9

17.

Which clause in SQL is used to restrict the rows returned by a query?

a)

WHERE

b)

ORDER BY

c)

HAVING

d)

GROUP BY

18.

What is the purpose of the GROUP BY clause in SQL?

a)

To sort records

b)

To filter records

c)

To group records based on one or more columns

d)

To combine records from multiple tables

19.

Which of the following is an example of an aggregate function in SQL?

a)

COUNT

b)

SUM

c)

AVG

d)

All of the above

20.

How many clustered indexes can be created on a single database table?

a)

None

b)

One

c)

Multiple

d)

Unlimited

21.

To access the services of the operating system, the interface is provided by the ___________

a)

Library

b)

System calls

c)

Assembly instructions

d)

API

22.

The priority of a process will ______________ if the scheduler assigns it a static priority.

a)

Depends on the operating system

b)

Change

c)

Remain unchanged

d)

None of the mentioned

23.

In the Memory, the Operating System is placed _____

a)

In the high-memory

b)

In the low-memory

c)

In both high and low memory

d)

Either low or high memory based on the interrupt vector location

24.

Which protocol does NOT guarantee packet delivery or order?

a)

TCP

b)

UDP

c)

HTTP

d)

FTP

25.

If a subnet mask is 255.255.255.224, how many usable IP addresses does the subnet provide?

a)

32

b)

30

c)

64

d)

62

26.

Which of the following is NOT true about HTTP/2?

a)

It uses binary framing

b)

It supports multiplexing over a single TCP connection

c)

It requires encryption via TLS

d)

It replaces TCP with QUIC

27.

Which strategy does the Rabin-Karp algorithm use for string matching?

a)

Brute-force comparison

b)

Sliding window with hashing

c)

Prefix table

d)

Backtracking

28.

Which of the following is not a valid Big-O complexity?

a)

O(n!)

b)

O(n^n)

c)

O(log log n)

d)

O(n^-1)

29.

What is the main drawback of the Waterfall model?

a)

Too flexible for large teams

b)

Poor documentation

c)

Late discovery of problems

d)

Requires real-time collaboration

30.

Black Box testing is done

a)

To show that software is operational at its interfaces i.e. input and output

b)

To examine internal details of code

c)

At client side

d)

None of the above

31.

In a schedule where multiple transactions execute, two-phase locking protocol ensures serializability but may lead to:

a)

Non-repeatable reads

b)

Phantom reads

c)

Deadlocks

d)

Lost updates

32.

Which of the following is TRUE about multivalued dependencies (MVDs)?

a)

They always imply functional dependencies

b)

They only occur in binary relations

c)

They can be eliminated by 3NF

d)

They are addressed in 4NF

33.

Does the following MySQL statement belong to the “Inequality condition”?

a)

Yes

b)

No

c)

Depends

d)

None of the mentioned

34.

What is the time complexity of inserting an element into a red-black tree in the worst case?

a)

O(1)

b)

O(log n)

c)

O(n)

d)

O(n log n)

35.

Which of the following statements is TRUE for a min-heap?

a)

Every level is fully filled

b)

Each node’s key is less than or equal to its children’s

c)

It is always a complete binary search tree

d)

In-order traversal gives sorted order

36.

Choose the most appropriate answer from the statements: Statement I: In datagram networks - routers hold state information about connections Statement II: In virtual circuit network - each virtual circuit requires router table space per connection

a)

Both Statement I and Statement II are correct

b)

Both Statement I and Statement II are incorrect

c)

Statement I is correct but Statement II is incorrect

d)

Statement I is incorrect but Statement II is correct

37.

Which of the following statements about firewalls in computer networks are true?

a)

Firewalls are only available as hardware devices and only examine traffic entering a network

b)

Firewalls allow a user to set rules for network traffic

c)

Firewalls will automatically stop all malicious traffic

d)

Firewalls can be used to block access to certain websites

38.

What is the result of evaluating the postfix expression "43*25*+b-"?

a)

8

b)

14

c)

10

d)

5

39.

A system bus in which each data item is transferred during a time slice known in advance to both units (source and destination) is called:

a)

MIMD

b)

DMA

c)

Asynchronous bus

d)

Synchronous bus

40.

Which of the following statements are CORRECT regarding constructors?

a)

Constructors are invoked automatically when the objects are created

b)

Constructors do not have return types, not even void

c)

Constructors cannot be inherited, though a derived class can call base class constructors

d)

Constructors can be declared as virtual

41.

What is the output of the following code?

a)

AB

b)

B

c)

Compilation Error

d)

Run time Error

42.

What is the output of the following XOR operation?

a)

2

b)

10

c)

7

d)

3

43.

What is the output of the following bitwise shift operation?

a)

-6

b)

-8

c)

-2

d)

2

44.

What is the output of the following ternary operation?

a)

20

b)

30

c)

10

d)

Error

45.

What is the output of the following code?

a)

0

b)

1

c)

2

d)

Error

46.

What will be the output of the following code?

a)

10

b)

15

c)

11

d)

Compilation Error

47.

What is the output of the following code?

a)

100

b)

100

Hello

c)

Compilation Error

d)

Hello

48.

What is the output of the following code?

a)

False

True

b)

True

True

c)

False

False

d)

True

False

49.

What is the output of the following code?

a)

Animal eats
      Dog eats bones
  Cat eats fish

b)

Dog eats bones
      Animal eats
      Cat eats fish

c)

 Dog eats bones
      Cat eats fish

d)

Dog eats bones
      Cat eats fish
      Animal eats

50.

What is the output of the following code?

a)

A

b)

B

c)

Compile time Error

d)

Runtime Error