C++ Pointers

C++ Pointers

University

13 Qs

quiz-placeholder

Similar activities

Quiz 2

Quiz 2

University

12 Qs

Basics of Computers

Basics of Computers

University

10 Qs

Computer Science Quiz

Computer Science Quiz

University

15 Qs

Pointers

Pointers

University

11 Qs

C++ Pointers and Arrays

C++ Pointers and Arrays

University - Professional Development

10 Qs

Costruttori

Costruttori

University

9 Qs

C++ - Functions

C++ - Functions

University

14 Qs

C++ Functions

C++ Functions

University

10 Qs

C++ Pointers

C++ Pointers

Assessment

Quiz

Computers

University

Hard

Created by

Zalikha Zulkifli

Used 281+ times

FREE Resource

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

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?