Search Header Logo

C-Volution (Easy 2)

Authored by Sujal Bhagat

Information Technology (IT)

University

Used 3+ times

C-Volution (Easy 2)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to terminate a switch statement case?

stop

end

break

exit

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the default case in a switch statement?

To define a loop.

To execute code when no other case matches.

To print output.

To read input.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of printf("%d", 20 / 3);?

6.66

6

7

0

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used for bitwise AND in C?

&&

&

||

|

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the == operator do?

Assigns a value.

Checks for equality.

Checks for inequality.

Performs logical NOT.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid character constant in C?

123

"A"

'A'

3.14

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code snippet? C int x = 10; if (x >= 10) { printf("Equal or greater");}

Equal or greater

No output

Error

10

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?