Revision C class

Revision C class

University

11 Qs

quiz-placeholder

Similar activities

Unit -1 Assignment -2

Unit -1 Assignment -2

University

10 Qs

constants

constants

University

10 Qs

C Program Array and strings

C Program Array and strings

University

10 Qs

Python - Functions

Python - Functions

University

10 Qs

OOP - Java Classes

OOP - Java Classes

12th Grade - University

15 Qs

C++ Quiz-1

C++ Quiz-1

University

15 Qs

C programming

C programming

University

15 Qs

C Programming Quiz-1

C Programming Quiz-1

University

10 Qs

Revision C class

Revision C class

Assessment

Quiz

Computers

University

Easy

Created by

Abhishek Pandey

Used 2+ times

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a bitwise operator in C?

<<

|

^

/

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an example of explicit type casting in C?

int x = 10.5;

float y = 10;

int x = (int) 10.5;

double z = 100;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which loop is guaranteed to execute at least once?

while

for

do while

for each

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

__________ involves a function calling itself repeatedly until a specified condition is met.

User defined function

Reiteration

Library function

Recursion

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to declare a constant in C?

int constant x = 3;

const int x = 3;

constant int x = 3;

#constant 3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the expression a *= 2 do in C?

a += 2

a = 2 / a

a = a * 2

a = a * a

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is used to skip the current iteration of a loop in C?

break

continue

goto

for

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?