Raju_Soop_1

Raju_Soop_1

University

34 Qs

quiz-placeholder

Similar activities

testCoding

testCoding

University

30 Qs

Java Control Flow and Collections

Java Control Flow and Collections

11th Grade - Professional Development

39 Qs

Coding Trivia

Coding Trivia

University

30 Qs

Technical Quiz WCC

Technical Quiz WCC

University

30 Qs

JAVA

JAVA

University

30 Qs

Structures and Pointers in C

Structures and Pointers in C

University

35 Qs

MID SEM COMPUTING SEM 2

MID SEM COMPUTING SEM 2

University

30 Qs

Think Tank Tuesday

Think Tank Tuesday

University

30 Qs

Raju_Soop_1

Raju_Soop_1

Assessment

Quiz

Computers

University

Hard

Created by

Palani Thanaraj K

Used 3+ times

FREE Resource

34 questions

Show all answers

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);

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?