Reference and Pointers in C++

Reference and Pointers in C++

6th - 8th Grade

10 Qs

quiz-placeholder

Similar activities

Test Cls 7 Sem I

Test Cls 7 Sem I

6th Grade

12 Qs

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

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

3rd - 12th Grade

10 Qs

Eval. 1BIM -  1ro B

Eval. 1BIM - 1ro B

7th Grade - University

15 Qs

Vòng lặp for

Vòng lặp for

7th Grade - University

10 Qs

Buổi 2 C++ Cơ bản

Buổi 2 C++ Cơ bản

6th Grade

10 Qs

Passing Pointers C++

Passing Pointers C++

6th - 8th Grade

10 Qs

C++ Operators

C++ Operators

6th - 8th Grade

12 Qs

KS4 Programming Techniques (1)

KS4 Programming Techniques (1)

8th - 10th 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 115+ 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?