CSNP-04103 - Chapter 4 - Selection

CSNP-04103 - Chapter 4 - Selection

University

10 Qs

quiz-placeholder

Similar activities

Understanding Taxable Income

Understanding Taxable Income

University

10 Qs

Matchday 3

Matchday 3

University

10 Qs

Quiz Hari Prematur Sedunia

Quiz Hari Prematur Sedunia

University

10 Qs

Business Tax

Business Tax

University

10 Qs

Cardiovascular & Lymphatic systems

Cardiovascular & Lymphatic systems

University

5 Qs

Pilih GRADE yang BENAR

Pilih GRADE yang BENAR

University

12 Qs

CSNP-04103 C++ Chapter 8 - Get & Put

CSNP-04103 C++ Chapter 8 - Get & Put

University

10 Qs

KARGIN HAXORDUM 1

KARGIN HAXORDUM 1

University

15 Qs

CSNP-04103 - Chapter 4 - Selection

CSNP-04103 - Chapter 4 - Selection

Assessment

Quiz

Created by

Rafael Orta

Others

University

137 plays

Medium

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;

Explore all questions with a free account

or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?