Reference and Pointers in C++

Reference and Pointers in C++

6th - 8th Grade

10 Qs

quiz-placeholder

Similar activities

Arduino

Arduino

7th - 9th Grade

15 Qs

HTML

HTML

8th - 12th Grade

15 Qs

Табличні величини та алгоритми їх опрацювання.

Табличні величини та алгоритми їх опрацювання.

5th - 11th Grade

14 Qs

Y10M2A2 - Selection

Y10M2A2 - Selection

6th - 10th Grade

15 Qs

break цикілі

break цикілі

8th Grade

10 Qs

EVS

EVS

6th Grade

15 Qs

Quiz HTML

Quiz HTML

8th Grade

10 Qs

Word

Word

3rd - 7th Grade

15 Qs

Reference and Pointers in C++

Reference and Pointers in C++

Assessment

Quiz

Computers, Science

6th - 8th Grade

Medium

Created by

Natalia Fumero

Used 115+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?