DFC20113 Chapter 3

DFC20113 Chapter 3

University

11 Qs

quiz-placeholder

Similar activities

DSA- Activity 1

DSA- Activity 1

University

10 Qs

WEEK 10 - JAVA

WEEK 10 - JAVA

University

10 Qs

JavaScript - WAC (Day 2)

JavaScript - WAC (Day 2)

10th Grade - University

8 Qs

Module 1-Flow Control_5th_Semseter

Module 1-Flow Control_5th_Semseter

University

10 Qs

Python Turtle

Python Turtle

KG - Professional Development

11 Qs

C program

C program

University

10 Qs

Workshop Day 2

Workshop Day 2

University

10 Qs

JAVA FUNDAMENTALS

JAVA FUNDAMENTALS

University

12 Qs

DFC20113 Chapter 3

DFC20113 Chapter 3

Assessment

Quiz

Education

University

Hard

Created by

MUNIRAH (PMJ)

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify the syntax for an 'if' statement

if expression

if { expression }

if (expression)

if {expression]

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select the control structure that will execute the loop bogy at least once although the condition is not fulfilled.

for

if ... else

do ... while

while

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

identify the CORRECT statement to write the condition statement in C++ based on the statement in Figure below.

if (sum <=70) || (average = 25)

if (sum <=70) || (average == 25)

if (sum <=70) &&(average = 25)

if (sum <=70) &&(average == 25)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify which is NOT a type of selection control structure.

if

nested if

do ... while

switch case

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify a CORRECT type of looping control structure.

for

if ... else

switch case

break

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify a statement that must be used in switch case control structure.

continue;

break;

exit;

return 0;

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In while loop the loop counter must be initialized ____________.

Within the loop

Before entering the loop

at the end of the loop

None of the given answer

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?