CODE 4 KITSW ROUND - 2

CODE 4 KITSW ROUND - 2

University

25 Qs

quiz-placeholder

Similar activities

Lev6 Autumn 1 Week 4

Lev6 Autumn 1 Week 4

12th Grade - University

20 Qs

B1.1 (W4.2)

B1.1 (W4.2)

University

20 Qs

INGLÉS IV

INGLÉS IV

University

20 Qs

KuisTJKT 3

KuisTJKT 3

University

20 Qs

Kuis Pancasila

Kuis Pancasila

5th Grade - University

20 Qs

Rangking 1 Sejarah dan Ejaan Bahasa Indonesia

Rangking 1 Sejarah dan Ejaan Bahasa Indonesia

7th Grade - University

20 Qs

QUIZ KOMUNIKASI BISNIS

QUIZ KOMUNIKASI BISNIS

University

20 Qs

Valuable Wetlands

Valuable Wetlands

University

20 Qs

CODE 4 KITSW ROUND - 2

CODE 4 KITSW ROUND - 2

Assessment

Quiz

Others

University

Practice Problem

Hard

Created by

Siddartha vaitla

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

What is the output of the following code snippet?

int x = 10, y = 20;

x > y ? printf("X") : printf("Y");

A) 10

B) 20

C) Compilation error

D) Y

2.

MULTIPLE CHOICE QUESTION

10 sec • 10 pts

Which statement is used to exit a loop prematurely in C?

A) exit

B) break

C) continue

D) return

3.

MULTIPLE CHOICE QUESTION

10 sec • 10 pts

How many types of decision-making statements are there in C?

A) 2

B) 3

C) 4

D) 5

4.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

What is the output of the following code snippet?

int x = 5;

if (x > 5)

printf("A");

else if (x < 5)

printf("B");

else

printf("C");

A) A

B) B

C) C

D) No output

5.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

What is the output of the following code snippet?

int main() {

int x = 5;

while (x > 0) {

printf("%d ", x--);}

return 0; }

54321

12345

55555

4321

6.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

What is the output of the following code snippet?

int main() {

int i;

for (i = 0; i < 5; i++) {

if (i == 2)

continue;

printf("%d ", i);

}

return 0;

}

0123

01234

0134

1234

7.

MULTIPLE CHOICE QUESTION

10 sec • 10 pts

Which statement is used to terminate the program in C?

A) exit

B) break

C) terminate

D) return

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?