Revision C class

Revision C class

University

11 Qs

quiz-placeholder

Similar activities

IPC144 SLG -- Week2

IPC144 SLG -- Week2

University

9 Qs

DataStructure

DataStructure

University

15 Qs

Functions

Functions

University

14 Qs

Arrays and Pointers in C

Arrays and Pointers in C

University

15 Qs

Basics of C

Basics of C

University

10 Qs

ARRAYS AND FUNCTIONS

ARRAYS AND FUNCTIONS

University

15 Qs

C++ Workshop 2021 [Quiz-2]

C++ Workshop 2021 [Quiz-2]

University

10 Qs

Arrays C++

Arrays C++

University

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