Mini Quiz on CDS

Mini Quiz on CDS

University

20 Qs

quiz-placeholder

Similar activities

Data Structure Unit-1

Data Structure Unit-1

12th Grade - University

20 Qs

c++

c++

University

22 Qs

004_Java Instance Variables

004_Java Instance Variables

12th Grade - University

15 Qs

Memory Allocation in C

Memory Allocation in C

University

17 Qs

Operating System Memory Management

Operating System Memory Management

University

20 Qs

Challenging C Programming Concepts

Challenging C Programming Concepts

University

20 Qs

Filas

Filas

University

25 Qs

C Programming Output Quiz

C Programming Output Quiz

University

15 Qs

Mini Quiz on CDS

Mini Quiz on CDS

Assessment

Quiz

Computers

University

Hard

Created by

Y V D Chandra Sekhar

Used 2+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the Result ?

10

0

Address of 'p'

0

10

Address of 'p'

10

10

Address of 'p'

0

0

Address of 'p'

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Guess the Result ?

20

10

Address of 'p'

10

20

Address of 'p'

Compile Time Error

Runt Time Error

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Guess the Result ?

10

10

10

20

10

11

11

10

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Guess the Result ?

11

1

1

00

0

0

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the correct way to allocate memory for an array of integers in C?

A . int arr[10];

B. int arr = (int )malloc(10 * sizeof(int));

C. int arr = malloc(10 sizeof(int));

Both B and C are correct.

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Guess the Result ?

10

20

30

40

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Declares a pointer to a structure Point and prints its memory address.

Declares a pointer to a structure Point and initializes its members x and y

Declares a pointer to a structure Point, assigns the address of p1 to it, and prints the values of p1 using the pointer.

Declares a structure Point, initializes its members x and y, and prints their values using a pointer.

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?