Quiz PF 1 (W4)

Quiz PF 1 (W4)

Professional Development

22 Qs

quiz-placeholder

Similar activities

Brother Valencia - Taller

Brother Valencia - Taller

Professional Development

17 Qs

Harry Potter

Harry Potter

3rd Grade - Professional Development

17 Qs

Mid year Project Q&A

Mid year Project Q&A

Professional Development

20 Qs

Kudos

Kudos

Professional Development

17 Qs

among us 1

among us 1

KG - Professional Development

18 Qs

Little Singham quiz 2

Little Singham quiz 2

10th Grade - Professional Development

25 Qs

IEI Awareness Quiz - IEI Salem Local Centre

IEI Awareness Quiz - IEI Salem Local Centre

10th Grade - Professional Development

20 Qs

Quiz PF 1 (W4)

Quiz PF 1 (W4)

Assessment

Quiz

Other

Professional Development

Medium

Created by

Yosi Kristian

Used 2+ times

FREE Resource

22 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following data types has the smallest size?

char

int

long

double

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code snippet?

A

B

AB

None

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following conditions is equivalent to !(a > b)?

a < b

a <= b

a == b

a >= b

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In C++, what will happen if you do not provide an else block for an if statement?

Syntax error

The code inside the if block will not execute

The program will terminate

The program will continue to execute the next statements

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

To execute a block of code if the if condition is false

To execute a block of code if the if condition is true

To declare variables

None of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many else blocks can an if statement have?

0

1

2

Unlimited

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct syntax for an else if statement in C++?

else if (condition) { /* code */ }

elif (condition) { /* code */ }

elseif (condition) { /* code */ }

else (condition) { /* code */ }

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?