C++ References

Quiz
•
Computers, Science
•
6th - 12th Grade
•
Medium
Natalia Fumero
Used 33+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
In C++ a variable that has an & appended is storing a(n):
value
address
integer
string
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
The "&" symbol is called a(n):
sandpaper
ampersand
percentage sign
andthisthat
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
I have a variable int a = 2;
then a variable int& b = a;
What happens if I change the value of b
Nothing
a changes as well
b gets bigger
a disappears
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Which of these looks like a possible output
int variable = 5;
cout<<&variable;
5
0x7ffc8d64e404
&5
this would throw an error
5.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
If the address of b is at 0x7ff.
What would the following code output?
int b = 160;
int &a = b;
int &c = a;
cout<<a <<endl;
cout<<&c;
160
160
0x7ff
160
160
0x7ff
0x7ff
0x7ff
6.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Given the function
int var(int& x){
x+= 10;
return 0;
};
What will this code output?
int main(){
int b = 160;
var(b);
cout<<b <<endl;
}
160 160
170
b
22xff
7.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Given the function
int var(int& a){
a*= 2;
return 0;
};
What will this code output?
int main(){
int b = 160;
int a = b - 60;
var(a);
cout <<b <<endl;
cout<< a <<endl;
}
160
200
160
320
320
160
160
80
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Coding C++ - X2

Quiz
•
10th Grade
15 questions
Latihan Pemrograman

Quiz
•
12th Grade
10 questions
Functions in C++

Quiz
•
9th - 12th Grade
10 questions
Introduction to C++ 2024/25

Quiz
•
12th Grade
10 questions
Quiz C++ Grade 10

Quiz
•
9th - 12th Grade
17 questions
Алгоритмы ветвления

Quiz
•
8th Grade
12 questions
ПШ_C++_#1

Quiz
•
10th Grade
10 questions
Programming with C++

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
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
typing

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
20 questions
Input, Output, Processing or Storage

Quiz
•
5th - 6th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade