C-Volution (Easy 2)

C-Volution (Easy 2)

University

30 Qs

quiz-placeholder

Similar activities

Seatwork #4

Seatwork #4

12th Grade - University

25 Qs

Quiz on Arrays and Structs

Quiz on Arrays and Structs

University

27 Qs

Fundamentals of programming Quiz

Fundamentals of programming Quiz

University

25 Qs

UTS Struktur dan Organisasi Data

UTS Struktur dan Organisasi Data

University

25 Qs

Warmup - Python - Machine Learning

Warmup - Python - Machine Learning

University

30 Qs

Types of Research

Types of Research

University

31 Qs

Basics of C

Basics of C

University

30 Qs

2nd Year Data Structures Quiz Qn

2nd Year Data Structures Quiz Qn

University

35 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?