C-Volution (Easy 2)

C-Volution (Easy 2)

University

30 Qs

quiz-placeholder

Similar activities

QUIZ

QUIZ

University

30 Qs

OS quiz

OS quiz

University

25 Qs

Y9 Python Review

Y9 Python Review

9th Grade - University

30 Qs

Codean - Java Data Types

Codean - Java Data Types

University

25 Qs

Review Python_G8

Review Python_G8

8th Grade - University

28 Qs

Python Básico

Python Básico

University

30 Qs

Quis Logika Pemprograman Komputer - 1

Quis Logika Pemprograman Komputer - 1

University

27 Qs

C-Volution (Easy 1)

C-Volution (Easy 1)

University

30 Qs

C-Volution (Easy 2)

C-Volution (Easy 2)

Assessment

Quiz

Information Technology (IT)

University

Medium

Created by

Sujal Bhagat

Used 3+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?