C - Parithabangal

C - Parithabangal

University

15 Qs

quiz-placeholder

Similar activities

CMDP2063 Unix and C Programming (Revision)

CMDP2063 Unix and C Programming (Revision)

University

15 Qs

Java Basics, operators and variables (CH/PT)

Java Basics, operators and variables (CH/PT)

University

16 Qs

Asesmen Sumatif PHP

Asesmen Sumatif PHP

10th Grade - University

20 Qs

Quiz Java y Python

Quiz Java y Python

University

18 Qs

Logic Building Using C - Unit 1

Logic Building Using C - Unit 1

University

15 Qs

Operasi Input & Output C++

Operasi Input & Output C++

University

10 Qs

VBA Quiz

VBA Quiz

University

16 Qs

Вопросы по массивам в C++

Вопросы по массивам в C++

University

20 Qs

C - Parithabangal

C - Parithabangal

Assessment

Quiz

Information Technology (IT)

University

Medium

Created by

Ajith Ajith

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of:

int a = 5, b = 2;

printf("%d", a / b);

2.5

2

3

Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Expression 5 > 3 && 2 < 4 will return?

0

1

Error

Garbage

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be printed?

int x = 10;

if (x = 0)

printf("Zero");

else

printf("Non-Zero");

Zero

Non-Zero

Error

Nothing

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output?

int x = -5;

if (x > 0)

printf("Positive");

else

printf("Negative");

Positive

Negative

Error

None

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many times will this loop execute?

for(int i=1; i<=5; i++);

0

4

5

6

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which loop executes at least once even if condition is false?

for

while

do-while

None

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be printed?

int i=1;

while(i<3) {

printf("%d", i);

i++;

}

12

123

1

Error

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?