
References in C++
Authored by RAGHUVEER KASYAP
Professional Development
Professional Development
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statement is true about the references?
Defining a reference variable allocates a separate memory.
Reference variable can point to any variable once it is initialized
Reference to an object creates a copy
Reference variable must be initialized to NULL
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A reference variable must be initialized to null
True
False
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
True Or False
A reference variable can point to any variable once initialized
True
False
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A reference variable must be initialized to ___________
null
0
variable
address of a variable
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the below code snippet?
int a=10;
int b=20;
int &ref=a;
int *ptr=&b;
ref += *ptr;
ref++;
cout<<a<<"\t"<<b;
10 20
20 10
31 20
20 31
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the below code snippet?
int a=1000;
float &b=a;
b++;
cout<<a;
1000
1001
Prints the address of the variable a
Compilation error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A friend function can be declared under which access specifier
Private
Protected
Public
All
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Basic JavaScript
Quiz
•
Professional Development
10 questions
PreTrainingClassesObjectsMethods
Quiz
•
Professional Development
12 questions
J2 validation acquis prérequis habitation
Quiz
•
Professional Development
10 questions
Code Blue
Quiz
•
Professional Development
10 questions
HTML5_S02
Quiz
•
Professional Development
10 questions
F-Distribution and ANOVA
Quiz
•
Professional Development
14 questions
TKT, Module 3, Semana 3
Quiz
•
Professional Development
15 questions
Programação Web - HTML 3
Quiz
•
7th Grade - Professio...
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Professional Development
15 questions
LOTE_SPN2 5WEEK3 Day 2 Itinerary
Quiz
•
Professional Development
6 questions
Copy of G5_U6_L5_22-23
Lesson
•
KG - Professional Dev...
10 questions
March Quiz
Quiz
•
Professional Development
5 questions
Copy of G5_U6_L8_22-23
Lesson
•
KG - Professional Dev...
10 questions
suffixes FUL OR LESS
Quiz
•
Professional Development