basic operations c++

Quiz
•
Computers
•
•
Hard
Standards-aligned
Rizal Firdaus
FREE Resource
206 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these characters is used for multiplication?
+
-
*
/
x
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
int c = 4;
int d = 2;
cout << c*d;
6
2
8
16
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this code output?
int g = 2;
int h = 2;
int j = 3;
cout << (g + j) * h;
10
8
12
6
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this code output?
int r = 2;
int s = 3;
int t = 5;
cout << r + s * t;
11
17
25
10
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
int x = 5;
x = 3;
cout << x;
3
5
15
2
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
int x = 3;
x = x + 2;
cout << x;
5
2
3
1
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
int x = 4;
int y = 2;
y = x * y;
cout << y;
8
16
2
4
Create a free account and access millions of resources
Similar Resources on Wayground
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
Discover more resources for Computers
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade