Search Header Logo

CSNP-04103 - Chapter 4 - Selection

Authored by Rafael Orta

Others

University

Used 137+ times

CSNP-04103 - Chapter 4 - Selection
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Select all the flow control structures in C++

selection

retrospection

forward

repetition

sequential

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What set of characters do you use to create a compound statement (block of code) in C++?

[ ]

( )

{ }

< >

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In C++ the else statement part of the if, is it required or optional?.

Required

Optional

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Please select from the list below the relational operators.

+ , - , * , /

{ }, [ ], ( )

< , >, <=, >=, ==, !=

?, &, %, $

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Please select from the list below the logical operators.

&&, ||, !

==, <=, >= , !=, <, >

{ }, [ ], < >, ( )

None of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Is the expression below true or false?.


bool character = ('a' < 'z');

False

True

It is not valid.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one is the correct syntax for C++?.

if [ gross > 100000 ] then

net = gross - tax;

if ( gross > 100000 )

net = gross - tax;

if { gross > 100000 } then

net = gross - tax;

if < gross > 100000 > then

net = gross - tax;

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?