Pointers & Strings in C

Pointers & Strings in C

Professional Development

21 Qs

quiz-placeholder

Similar activities

CÂU LỆNH WHILE

CÂU LỆNH WHILE

Professional Development

21 Qs

SMR-RL-UT8-VLAN (nivel I)

SMR-RL-UT8-VLAN (nivel I)

Professional Development

16 Qs

Evaluacion de resultados - 1er ciclo

Evaluacion de resultados - 1er ciclo

Professional Development

20 Qs

Mobile Device

Mobile Device

Professional Development

20 Qs

Evaluacion de Procesos 01 - Septiembre 2024

Evaluacion de Procesos 01 - Septiembre 2024

Professional Development

20 Qs

Think it through

Think it through

University - Professional Development

16 Qs

IHDL_Semi-Final Quiz

IHDL_Semi-Final Quiz

Professional Development

20 Qs

Java Fundamentals

Java Fundamentals

Professional Development

20 Qs

Pointers & Strings in C

Pointers & Strings in C

Assessment

Quiz

Computers

Professional Development

Practice Problem

Hard

Created by

SOBHANBABU SOBHANBABU

Used 65+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

21 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 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

45 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

1 min • 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

1 min • 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

45 sec • 1 pt

Which of the following operators are not used with pointers

*

/

%

-

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?