Search Header Logo

Mini Quiz on CDS

Authored by Y V D Chandra Sekhar

Computers

University

Used 2+ times

Mini Quiz on CDS
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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.

Access all questions and much more by creating a free account

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?