Pointers from data structures and algorithms

Pointers from data structures and algorithms

University

25 Qs

quiz-placeholder

Similar activities

Tema 5: TORSIÓN

Tema 5: TORSIÓN

University

28 Qs

Quiz Protokol Komunikasi IoT

Quiz Protokol Komunikasi IoT

University

20 Qs

ANN Part 4 - Part 6 Quiz

ANN Part 4 - Part 6 Quiz

University

20 Qs

CUDA Programming Quiz

CUDA Programming Quiz

University

20 Qs

LECTURE 04 (24.11.2025)

LECTURE 04 (24.11.2025)

University

20 Qs

MCA Quiz 1

MCA Quiz 1

University

22 Qs

Industrial Engineering Quiz

Industrial Engineering Quiz

University

23 Qs

Test 4

Test 4

University

25 Qs

Pointers from data structures and algorithms

Pointers from data structures and algorithms

Assessment

Quiz

Engineering

University

Hard

Created by

Keertipriya Bellary

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does a pointer in C/C++ store?

Data value

Memory address

Variable name

Function name

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to access the value stored at the address a pointer points to?

&

*

%

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will happen if you dereference a NULL pointer?

Program runs normally

Access violation error (segmentation fault)

Returns 0

Memory is allocated automatically

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In dynamic memory allocation, which function is used in C to allocate memory?

alloc()

malloc()

new

calloc()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a dangling pointer?

Pointer initialized to zero

Pointer that points to freed memory

Pointer pointing to a global variable

Pointer used for dynamic allocation

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you obtain the memory address of a variable in C?

Using * operator

Using & operator

Using → operator

Using % operator

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following snippet? int a = 10; int *p = &a; printf("%d", *p);

Address of a

Garbage value

10

Compile-time error

Create a free account and access millions of resources

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?