Search Header Logo

C++ Pointers

Authored by Zalikha Zulkifli

Computers

University

Used 284+ times

C++ Pointers
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

13 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

The statement :


remove p;


deallocates the dynamic variable that is pointed to by p.

True

False

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the operator used for dereferencing or indirection?

*

&

%

&&

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Specify whether the statement below is valid or invalid.


int i;

double * dp = &i;

Valid

Invalid

4.

MULTIPLE CHOICE QUESTION

30 sec • 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

30 sec • 1 pt

A variable pointed to by xAddr is

*ptr

*xAddr

&xAddr

+xAddr

6.

MULTIPLE CHOICE QUESTION

30 sec • 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

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does this command do?.

Creates a pointer of type integer that is initially pointing to null.

Creates a pointer of type integer that is initially pointing to 0.

Creates a pointer in the heap

None of the answers are valid

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