Raju_Soop_1

Raju_Soop_1

University

34 Qs

quiz-placeholder

Similar activities

CCP1102-Java Programming-Prelim

CCP1102-Java Programming-Prelim

University

30 Qs

PHP

PHP

University

31 Qs

PL101 MIDTERM Long Quiz

PL101 MIDTERM Long Quiz

University

35 Qs

Tema 5 Programación Básica

Tema 5 Programación Básica

University

35 Qs

TARANG C-COLLEGIUM ROUND-2

TARANG C-COLLEGIUM ROUND-2

University

30 Qs

2.1 - Algorithms OCR

2.1 - Algorithms OCR

KG - University

34 Qs

OCS752_CP_WEEKLY_TEST4 (08.09.2020)

OCS752_CP_WEEKLY_TEST4 (08.09.2020)

University

30 Qs

Test_Array&String

Test_Array&String

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?