What will be the output?
int i = 1;
int j = i--;
cout << "i is " << i;
cout << " and j is " << j;
Quiz 2 - CS110
Quiz
•
Computers
•
University
•
Easy
Avariella Lapuz
Used 54+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output?
int i = 1;
int j = i--;
cout << "i is " << i;
cout << " and j is " << j;
i is 1 and j is 1
i is 1 and j is 0
i is 0 and j is 1
i is 0 and j is 0
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of these data types requires the most amount of memory?
short
float
int
long
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of these data types requires the most amount of memory?
double
long double
short
long
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Solve the following problem
int X = 3;
int Y = x % 2 / 10+10 / 2
What does Y equal to?
3
1
5
6
8
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
is q6uub9TN a valid C++ Identifier?
True
False
6.
MULTIPLE SELECT QUESTION
1 min • 1 pt
What is a resonable constant value? (Choose 3)
Pi
Inflation
Speed of light
Gravity
Gas prices
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What header should be included to use advanced math functions?
#include <c++math>
#include <advmath>
#include <cmath>
#include <arithmathc>
10 questions
C Program Array and strings
Quiz
•
University
20 questions
C - Strings
Quiz
•
University
10 questions
Quiz 8: Arrays&Vector
Quiz
•
University
20 questions
Pointers
Quiz
•
University
15 questions
Java Programming
Quiz
•
University
11 questions
Quiz 2
Quiz
•
University
20 questions
INTRO TO C++
Quiz
•
12th Grade - University
20 questions
UAS Struktur Data 2022
Quiz
•
University
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade