pointers in C

pointers in C

University

20 Qs

quiz-placeholder

Similar activities

Technotsav'23

Technotsav'23

University

19 Qs

PRA UAS - Dasar Dasar Pemrograman 2023

PRA UAS - Dasar Dasar Pemrograman 2023

University

20 Qs

Prelims - LIST

Prelims - LIST

University

20 Qs

Java Programming I 3

Java Programming I 3

University

17 Qs

C - Strings

C - Strings

University

20 Qs

1st Year quiz

1st Year quiz

University

20 Qs

การเขียนโปรแกรมมาตรฐานเปิด

การเขียนโปรแกรมมาตรฐานเปิด

10th Grade - University

20 Qs

TECHNOWIZ'S QUIDDITCH

TECHNOWIZ'S QUIDDITCH

University

25 Qs

pointers in C

pointers in C

Assessment

Quiz

Computers

University

Hard

Created by

sathi v

Used 14+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following pointer is Wild

int *p;

int *q=&a;

int *v=NULL;

void *g;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main drawback of pointers

Complexity to mange pointers

Difficult to write program

They are not safe

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following Code:

#include <stdio.h>

int main()

{

int *p;

int a=10;

p=&a;

*p=34;

printf("%d,%d",a,*p);

return 0;

}

34,34

10,10

10,34

34,10

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code:

#include <stdio.h>

int main()

{

void *z;

float s=1.2;

z=&s;

printf("%f",*z);

return 0;

}

Compile time error

1.20000

1.2

Run time error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code:

#include <stdio.h>

int main()

{

int *p;

int a=20;

p=&a;

int **q;

**q=100;

q=&p;

*p=50;

printf("%d,%d,%d",**q,a,*p);

return 0;

}

50,50,50

20,20,50

100,50,20

100,20,50

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code snippet:


int a=45,b=67;

int *s,*q;

s=&a;q=&b;

printf("%d",s+q);

Compile time error

112

Garbage value

0

7.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of the following operators are not used with pointers

*

/

%

-

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?