Reference and Pointers in C++

Reference and Pointers in C++

6th - 8th Grade

10 Qs

quiz-placeholder

Similar activities

Programs and Variables in Code and Play

Programs and Variables in Code and Play

5th - 9th Grade

7 Qs

B Words GCSE Computer Science

B Words GCSE Computer Science

1st - 10th Grade

15 Qs

Google Aptitude Test

Google Aptitude Test

KG - University

10 Qs

JPI L6 Q1

JPI L6 Q1

7th Grade

15 Qs

Excel Test Eins

Excel Test Eins

5th - 9th Grade

13 Qs

Adolygu graffiau

Adolygu graffiau

1st - 11th Grade

12 Qs

BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ

BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ

6th Grade - University

14 Qs

Designing a Laboratory Experiment

Designing a Laboratory Experiment

7th - 8th Grade

15 Qs

Reference and Pointers in C++

Reference and Pointers in C++

Assessment

Quiz

Computers, Science

6th - 8th Grade

Practice Problem

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

Access all questions and much more by creating a free account

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

Already have an account?

Discover more resources for Computers