Search Header Logo

Raju_Soop_1

Authored by Palani Thanaraj K

Computers

University

34 Questions

Used 3+ times

Raju_Soop_1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How many different types of pointers exist?

One type only (for integers)

Two types (one for integers, one for floats/doubles)

Three types (pointers, arrays, dynamic allocation)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is related to pointer to an array concept in C

int a[]={1,2,2,22};

int *p;

p=a;

int (*p)[3];

int a[]={1,2,3};

p=*a;

int *p[3];

int a[]={1,2,2};

p=a;

int **a[];

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Is the NULL pointer same as an uninitialised pointer?

TRUE

FALSE

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

What does this command do?.

Creates a pointer of type integer that is initially pointing to null.

Creates a pointer of type integer that is initially pointing to 0.

Creates a pointer in the heap

None of the answers are valid

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int main()

{

int arri[] = {1, 2 ,3};

int *ptri = arri;

printf("%d ", sizeof(arri));

printf("%d ", sizeof(ptri));

return 0;

}

3 3

12 12

12 4

4 4

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

     What is the return type of malloc() or calloc()?

int *  

int **

void *

void **

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following will copy the null-terminated string that is in array src into array dest?

dest = src;

dest == src;

strcpy(dest, src);

strcpy(src, dest);

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?