Pointers in C++

Pointers in C++

Assessment

Assessment

Created by

noore ilahi

Computers

University

11 plays

Hard

Student preview

quiz-placeholder

10 questions

Show all answers

1.

MULTIPLE CHOICE

1 min • 1 pt

In a C++ Program if

int a = 5;

Int *ptr = &a;

then the cout statement with

&a, a, ptr

2.

MULTIPLE CHOICE

1 min • 1 pt

In a C++ program,

int a = 20;

ptr = &a;

cout<<ptr<<endl;


output is:

3.

MULTIPLE CHOICE

30 sec • 1 pt

Media Image

What does this command do?.

4.

MULTIPLE CHOICE

30 sec • 1 pt

The process of assigning address of a variable to a pointer variable is known as___________

5.

MULTIPLE SELECT

45 sec • 1 pt

int *p; tell the compiler

6.

MULTIPLE CHOICE

30 sec • 1 pt

A pointer which is not initialized is called as ________pointer

7.

MULTIPLE CHOICE

30 sec • 1 pt

The pointer whose value is zero is called as ______pointer

8.

MULTIPLE CHOICE

30 sec • 1 pt

Void [pointer can pointed at objects of any data type.

9.

MULTIPLE SELECT

45 sec • 1 pt

Declaration of pointer can be done by

10.

MULTIPLE CHOICE

30 sec • 1 pt

Address of a pointer is same as Address of variable.

Explore all questions with a free account

or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?

Find a similar activity

Create activity tailored to your needs using

Quizizz AI