Explore topic-wise MCQs in General Awareness.

This section includes 3 Mcqs, each offering curated multiple-choice questions to sharpen your General Awareness knowledge and support exam preparation. Choose a topic below to get started.

1.

Which of the following code will give an error?

A. a)
Answer» B.
2.

Which of the following code will generate unique random numbers every time?

A. a)
Answer» C.
3.

What is the correct formula for generating random numbers in the range (lower,upper) using rand()?

A. rand() % (upper – lower)
B. rand() + lower
C. (rand()%(upper-lower)) + lower
D. (rand()%(upper-lower+1)) + lower
Answer» E.