Search Header Logo

Vocab Practice

Authored by James Luong

Computers

12th Grade

Used 2+ times

Vocab Practice
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

if (i > 0) {}

is considered a...

conditional statement

input statement

output statement

variable declaration

Answer explanation

if statements are called conditional statements because they define a block of code that runs depending on a CONDITION

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int i = 1 is an example of...

ONLY a variable declaration

ONLY a variable initialization

BOTH a variable declaration and initialization

NEITHER a variable declaration or initialization

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will this output......................

int num1 = 2.2;

int num2 = 2;

cout << num1/num2;

This code will produce an error

1

1.1

2

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

For a small decimal number (~3 digits) I will declare a ________ type variable

float

double

int

char

string

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int x = 5;

int y = 2;

cout << x%y;

2

1

5

2.5

Answer explanation

Remember that % means to get the remainder after division

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

cout << "Please type something in: " is considered a...

input statement

output statement

conditional statement

variable initialization

Answer explanation

All cout statements are output statements.

Even if they ask you to type something in, you can't type something in unless there is in a cin.

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?