
Vocab Practice

Quiz
•
Computers
•
12th Grade
•
Hard
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.
Similar Resources on Wayground
10 questions
Kuis1

Quiz
•
12th Grade
10 questions
Les variables sous Python

Quiz
•
10th - 12th Grade
10 questions
Recursion Contest

Quiz
•
10th - 12th Grade
10 questions
CodeHS 2.8 Functions to 2.12 User Input Review

Quiz
•
9th - 12th Grade
11 questions
Python Data Types Quiz

Quiz
•
10th Grade - University
9 questions
Java Basics

Quiz
•
10th - 12th Grade
10 questions
C Language Basic Quiz

Quiz
•
7th Grade - Professio...
10 questions
Session 1

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade