C Program Day 2

C Program Day 2

University

17 Qs

quiz-placeholder

Similar activities

KUIS INTERAKTIF P5 "SENI BUDAYA"

KUIS INTERAKTIF P5 "SENI BUDAYA"

7th Grade - University

12 Qs

Songs & Song Artists

Songs & Song Artists

3rd Grade - Professional Development

20 Qs

Five Nights At Freddy's: Security Breach Quiz

Five Nights At Freddy's: Security Breach Quiz

KG - Professional Development

13 Qs

Unit 2 Body of Presentation

Unit 2 Body of Presentation

University

12 Qs

Interpretasi EKG Hipertrofi dan Intoksikasi Obat

Interpretasi EKG Hipertrofi dan Intoksikasi Obat

University

20 Qs

French Review

French Review

KG - University

20 Qs

BEEE Pre-test Assessment

BEEE Pre-test Assessment

University

20 Qs

PENILAIAN PENGETAHUAN - OUTGOING COMMUNICATION

PENILAIAN PENGETAHUAN - OUTGOING COMMUNICATION

University

14 Qs

C Program Day 2

C Program Day 2

Assessment

Quiz

Other

University

Practice Problem

Medium

Created by

ALAN SANTO

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...

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the purpose of the else if statement in C?

To define a default case in a switch statement.
To create an infinite loop condition.
To provide additional conditional branches in a control flow.
To terminate a loop prematurely.

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Choose the correct syntax to while loop in C

while { condition; // code }
while(condition) // code;
while: condition { code }
while(condition) { // code }

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What does "i++" in C Means?

The expression 'i++' increments the value of 'i' by 1.

The expression 'i++' multiplies the value of 'i' by 2.
The expression 'i++' decrements the value of 'i' by 1.

The expression 'i++' assigns the value of 'i' to 0.

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the main use of a for loop in C?

To handle exceptions in C.
To define a function in C.

To loop through a block of code a specific number of times

To create a single-use variable.

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

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

What is the role of i here?

The role of 'i' is to store the final result.
The role of 'i' is to represent an array element.

The role of 'i' is to act as a loop counter.

The role of 'i' is to define a function parameter.

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is a nested loop in C?

A nested loop in C is a loop that cannot contain any other loops.
A nested loop in C is a loop that exists within another loop.
A nested loop in C is a loop that runs only once.
A nested loop in C is a loop that executes in parallel with another loop.

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the output of the following code snippet: for(int i = 0; i < 3; i++) { printf("%d ", i); }

3 2 1

0 1 2

1 2 3

0 1 2 3

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?