Vocab Practice

Vocab Practice

12th Grade

6 Qs

quiz-placeholder

Similar activities

Coding 1 - Review 1

Coding 1 - Review 1

9th - 12th Grade

10 Qs

If-Else Statements in C++

If-Else Statements in C++

10th - 12th Grade

7 Qs

Python Data Types

Python Data Types

9th - 12th Grade

10 Qs

Intro to Programming: Tracy the Turtle 2

Intro to Programming: Tracy the Turtle 2

9th - 12th Grade

8 Qs

Introducción a la programación

Introducción a la programación

1st Grade - University

10 Qs

Entradas ADC de tarjeta ESP32

Entradas ADC de tarjeta ESP32

12th Grade

11 Qs

CodeHS 2.2 Variables and Types

CodeHS 2.2 Variables and Types

9th - 12th Grade

8 Qs

Loops

Loops

9th - 12th Grade

10 Qs

Vocab Practice

Vocab Practice

Assessment

Quiz

Computers

12th Grade

Hard

Created by

James Luong

Used 2+ times

FREE Resource

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.