Question 1

Time: 00:00:00
Which of the following is a valid data type in C/C++ used to store whole numbers without decimal points?

float

float

double

double

int

int

char

char

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 result of the expression 10 / 3 in C/C++?

3.33

3.33

3

3

3.0

3.0

3.3333

3.3333

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

Please login to submit your explanation

Question 3

Time: 00:00:00
Which operator is used to determine if two values are equal in C/C++?

==

==

=

=

!=

!=

===

===

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

Please login to submit your explanation

Question 4

Time: 00:00:00
In C/C++, which loop is executed at least once even if the condition is initially false?

for loop

for loop

do-while loop

do-while loop

while loop

while loop

switch loop

switch loop

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

Please login to submit your explanation

Question 5

Time: 00:00:00
Which data type in C/C++ is used to store single characters?

int

int

float

float

double

double

char

char

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

Please login to submit your explanation

Question 6

Time: 00:00:00
What is the operator used for the modulus operation in C/C++?

^

^

%

%

/

/

&

&

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

Please login to submit your explanation

Question 7

Time: 00:00:00
In C/C++, which operator is used to access the value stored at a memory address?

*

*

&

&

->

->

#

#

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

Please login to submit your explanation

Question 8

Time: 00:00:00
Which control structure in C/C++ allows the execution of a block of code only if a specified condition is true?

do-while loop

do-while loop

switch statement

switch statement

if statement

if statement

for loop

for loop

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

Please login to submit your explanation

Question 9

Time: 00:00:00
What is the result of the expression 5 + 3 * 2 in C/C++?

16

16

11

11

13

13

26

26

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

Please login to submit your explanation

Question 10

Time: 00:00:00
Which data type in C/C++ is used to store decimal numbers with single precision?

float

float

double

double

long double

long double

decimal

decimal

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.