Search Header Logo

Revision C class

Authored by Abhishek Pandey

Computers

University

Used 3+ times

Revision C class
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

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?