FCPC-MidtermExam-DSA

FCPC-MidtermExam-DSA

University

70 Qs

quiz-placeholder

Similar activities

PF-IAS-3102

PF-IAS-3102

University

65 Qs

Midterm_Exam_INTER_PROG_251

Midterm_Exam_INTER_PROG_251

University

72 Qs

reviewerr nyetnyorking

reviewerr nyetnyorking

University

65 Qs

GPHS_G10_EOY_2025_WALLACE

GPHS_G10_EOY_2025_WALLACE

10th Grade - University

70 Qs

KELAS 1-REVIEW MATERI INFORMATIKA SM2

KELAS 1-REVIEW MATERI INFORMATIKA SM2

1st Grade - University

65 Qs

Algorithmization and Programming Quiz

Algorithmization and Programming Quiz

University

71 Qs

Python

Python

8th Grade - University

72 Qs

BSOA 1 - Keyboarding Quiz 1

BSOA 1 - Keyboarding Quiz 1

University

71 Qs

FCPC-MidtermExam-DSA

FCPC-MidtermExam-DSA

Assessment

Quiz

Information Technology (IT)

University

Practice Problem

Medium

Created by

ALVIN CERTEZA

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

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

70 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is the correct syntax for a while loop in C?

while (condition) { statement; }

while condition { statement; }

while (statement) { condition; }

while [condition] { statement; }

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following code? int i = 0; while(i < 5) { printf("%d", i); i++; }

12345

01234

1 2 3 4 5

5

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following loops will always execute at least once?

for

while

do-while

All loops can execute at least once

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the following program? int i; for(i = 1; i <= 3; i++) { printf("%d ", i); }

1 2 3

0 1 2

1 2 3 4

3 2 1

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is the correct syntax for a do-while loop?

do { statement; } while (condition);

do statement while (condition);

while (condition) do { statement; };

do statement until (condition);

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the correct way to declare a function that returns an integer in C?

function int() {}

int function() {}

int function {}

int function(void) {}

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is true about the function prototype in C?

It is required for all functions.

It must be placed before the function definition.

It can be omitted if the function definition is provided before the function call.

It must include the function body.

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?