Question 1

Time: 00:00:00
What is the output of the following C code?
int x = 10;
printf("%d", ++x + x++);

21

21

22

22

23

23

Undefined behavior

Undefined behavior

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 2

Time: 00:00:00
What is the time complexity of inserting an element at the beginning of a linked list?

O(1)

O(1)

O(n)

O(n)

O(log n)

O(log n)

O(n²)

O(n²)

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 3

Time: 00:00:00
Which scheduling algorithm can cause starvation?

First Come First Serve (FCFS)

First Come First Serve (FCFS)

Round Robin

Round Robin

Shortest Job First (SJF)

Shortest Job First (SJF)

Priority Scheduling

Priority Scheduling

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 4

Time: 00:00:00
Which normal form eliminates transitive dependencies?

First Normal Form (1NF)

First Normal Form (1NF)

Second Normal Form (2NF)

Second Normal Form (2NF)

Third Normal Form (3NF)

Third Normal Form (3NF)

Boyce-Codd Normal Form (BCNF)

Boyce-Codd Normal Form (BCNF)

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 5

Time: 00:00:00
What is the decimal equivalent of binary number 1101?

11

11

13

13

12

12

14

14

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 6

Time: 00:00:00
Which of the following is NOT a feature of Java?

Platform independent

Platform independent

Object-oriented

Object-oriented

Supports pointers

Supports pointers

Automatic memory management

Automatic memory management

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 7

Time: 00:00:00
In a binary search tree, what is the worst-case time complexity for searching an element?

O(1)

O(1)

O(log n)

O(log n)

O(n log n)

O(n log n)

O(n)

O(n)

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 8

Time: 00:00:00
What is a deadlock?

A process that runs indefinitely

A process that runs indefinitely

A situation where processes wait for each other indefinitely

A situation where processes wait for each other indefinitely

A process that consumes too much CPU

A process that consumes too much CPU

A terminated process

A terminated process

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 9

Time: 00:00:00
Which SQL command is used to remove all records from a table but keep the table structure?

DROP

DROP

TRUNCATE

TRUNCATE

DELETE

DELETE

REMOVE

REMOVE

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 10

Time: 00:00:00
What is the size of 'int' data type in C on a 32-bit system?

2 bytes

2 bytes

4 bytes

4 bytes

8 bytes

8 bytes

Depends on compiler

Depends on compiler

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

["0","40","60","80","100"]
["Need more practice!","Keep trying!","Not bad!","Good work!","Perfect!"]

Personalized Analytics only Availble for Logged in users

Analytics below shows your performance in various Mocks on PrepInsta

Your average Analytics for this Quiz

Rank

-

Percentile

0%

Get over 200+ Courses under One Subscription

mute

Don’t settle Learn from the Best with PrepInsta Prime Subscription

Learn from Top 1%

One Subscription, For Everything

The new cool way of learning and upskilling -

Limitless Learning

One Subscription access everything

Job Assistance

Get Access to PrepInsta Prime

Top Faculty

from FAANG/IITs/TOP MNC's

Get over 200+ course One Subscription

Courses like AI/ML, Cloud Computing, Ethical Hacking, C, C++, Java, Python, DSA (All Languages), Competitive Coding (All Languages), TCS, Infosys, Wipro, Amazon, DBMS, SQL and others.