Reference and Pointers in C++

Reference and Pointers in C++

6th - 8th Grade

10 Qs

quiz-placeholder

Similar activities

C++ References

C++ References

6th - 12th Grade

12 Qs

C++ Operators

C++ Operators

6th - 8th Grade

12 Qs

PSeint Informatica

PSeint Informatica

8th Grade

12 Qs

KS4 Programming Techniques (1)

KS4 Programming Techniques (1)

8th - 10th Grade

10 Qs

BÀI THỰC HÀNH 2

BÀI THỰC HÀNH 2

7th - 8th Grade

13 Qs

ESTRUCTURAS DE CONTROL PRIMER PARCIAL

ESTRUCTURAS DE CONTROL PRIMER PARCIAL

8th Grade

13 Qs

Test Cls 7 Sem I

Test Cls 7 Sem I

6th Grade

12 Qs

C++ Arrays

C++ Arrays

8th - 12th Grade

12 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?