DAY 7 Pointer Structure & Union - 18th June 2024

DAY 7 Pointer Structure & Union - 18th June 2024

University

15 Qs

quiz-placeholder

Similar activities

1° EXAMEN SIMUALCRO ECOFIN - MATEMÁTICA UMSA/2024 CNEM

1° EXAMEN SIMUALCRO ECOFIN - MATEMÁTICA UMSA/2024 CNEM

University

10 Qs

Mô hình quản lí chương 1 - phần 2

Mô hình quản lí chương 1 - phần 2

University

20 Qs

Internet

Internet

9th Grade - Professional Development

12 Qs

Русский Свет

Русский Свет

1st Grade - Professional Development

10 Qs

Organização de Cozinha

Organização de Cozinha

10th Grade - Professional Development

10 Qs

Quiz sobre Lean 6 Sigma

Quiz sobre Lean 6 Sigma

University

10 Qs

Quiz dos Materiais

Quiz dos Materiais

University

10 Qs

Examen Final: Módulos y Paquetes para Machine Learning con Pytho

Examen Final: Módulos y Paquetes para Machine Learning con Pytho

University

20 Qs

DAY 7 Pointer Structure & Union - 18th June 2024

DAY 7 Pointer Structure & Union - 18th June 2024

Assessment

Quiz

Professional Development

University

Hard

Created by

KVCH CORPORATE

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a pointer in C programming?

variable that stores the address of another variable

A variable that stores multiple values

A data type that can hold characters

A function that returns a value

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare a pointer to an integer variable num in C?

int ptr = #

int *ptr = #

ptr int = #

int ptr = num;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following C code snippet?

10

&num

Compilation error

Garbage value

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the value of ptr after the following lines of code?

5

&num

Address of ptr

Garbage value

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following operators is used to access the value pointed to by a pointer in C?

&

*

%

->

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following C code snippet?

1

2

3

4

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a structure in C programming?

A way to organize multiple variables of the same type

A way to store only integers

A user-defined data type to store multiple variables of different types

A way to declare arrays

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?