Search Header Logo

DAY 2 - C& C++ Assessment _11th & 12th June 24

Authored by KVCH CORPORATE

Professional Development

University

Used 1+ times

DAY 2 - C& C++ Assessment _11th & 12th June 24
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following operators has the highest precedence in C?

+ (Addition)

* (Multiplication)

&& (Logical AND)

= (Assignment)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

will be the output of the following C code snippet?

30

25

20

15

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a bitwise operator in C?

&&

||

&

==

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following C code snippet?

Positive

Negative

Compilation error

No output

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following loops will execute at least once, regardless of the condition?

for loop

while loop

do-while loop

Infinite loop

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following C code snippet?

0 1 2 3

0 1 2

1 2 3

1 2

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements is true about the switch statement in C?

The switch statement can evaluate only integer expressions.

The switch statement can evaluate any type of expression.

The switch statement is limited to two cases.

The switch statement must always include a default case.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?