Reference and Pointers in C++

Reference and Pointers in C++

6th - 8th Grade

10 Qs

quiz-placeholder

Similar activities

Bài tập trắc nghiệm C++

Bài tập trắc nghiệm C++

3rd - 12th Grade

10 Qs

C++ Quiz 6: Advanced Features

C++ Quiz 6: Advanced Features

7th - 12th Grade

8 Qs

C++ Quiz 2: Logic and Flow Controls

C++ Quiz 2: Logic and Flow Controls

7th - 12th Grade

7 Qs

SC C++ Quiz 2

SC C++ Quiz 2

7th - 12th Grade

15 Qs

Classes in C++

Classes in C++

6th - 9th Grade

14 Qs

Wprowadzenie do C++

Wprowadzenie do C++

8th Grade

10 Qs

C++

C++

7th - 8th Grade

10 Qs

Variables in C++

Variables in C++

6th Grade

10 Qs

Reference and Pointers in C++

Reference and Pointers in C++

Assessment

Quiz

Computers, Science

6th - 8th Grade

Medium

Created by

Natalia Fumero

Used 114+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What does this symbol allow for in C++? -> *

De-refrencing

Summing numbers

Making text more sparkly

Performing modular operations

2.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What is the operator used for dereferencing or indirection?

*

&

%

&&

3.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Specify whether the statement below is valid or invalid.


int i;

double * dp = &i;

Valid

Invalid

4.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

A pointer variable store a/an

value of another value.

value of another variable.

address of another pointer.

address of another variable.

5.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Given the following declarations:


int i;

int *pi;

double d;

double *pd;


Specify whether the statements below is valid or invalid.


pi = &i;

Valid

Invalid

6.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

The __________, also known as the address operator, returns the memory address of a variable.

asterisk (* )

ampersand ( & )

percent sign ( % )

exclamation point ( ! )

7.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What does the following statement do?

double *num2;

Declares a double variable named num2

Declares and initializes a pointer variable named num2

Initializes a pointer variable named num2

Declares a pointer variable named num2

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?