C Pointers

C Pointers

University

18 Qs

quiz-placeholder

Similar activities

2TK - Review Dinamik Routing - 091219

2TK - Review Dinamik Routing - 091219

University

20 Qs

Atividade de Fixação - Python

Atividade de Fixação - Python

University

20 Qs

GameQuiz Jarkom

GameQuiz Jarkom

University

20 Qs

c.i.s.c.o

c.i.s.c.o

University

20 Qs

EC8393_FDS_MODEL EXAM_3_PART B

EC8393_FDS_MODEL EXAM_3_PART B

University

15 Qs

ITN_Explore the networks_1.1 Globally connected

ITN_Explore the networks_1.1 Globally connected

11th Grade - University

20 Qs

Computational Thinking in Python[Quiz 3]

Computational Thinking in Python[Quiz 3]

University

15 Qs

Micro Arch - CPUs & Fetch-Execute

Micro Arch - CPUs & Fetch-Execute

University

20 Qs

C Pointers

C Pointers

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

sathi v

Used 80+ times

FREE Resource

AI

Enhance your content in a minute

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

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What do the following declaration signify?


char *arr[10];

arr is a array of 10 character pointers.

arr is a array of function pointer.

arr is a array of characters.

arr is a pointer to array of characters.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of C Program.?

int main()

{

char grade[] = {'A','B','C'};

printf("GRADE=%c, ", *grade);

printf("GRADE=%d", grade);

}

GRADE=some address of array, GRADE=A

GRADE=A, GRADE=some address of array

GRADE=A, GRADE=A

Compiler error

3.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

What is the output of C program.?

int main()

{

char grade[] = {'A','B','C'};

printf("GRADE=%d, ", *grade);

printf("GRADE=%d", grade[0]);

}

A A

65 A

65 65

None of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of C program with arrays and pointers.?

int main()

{

int a[3] = {20,30,40};

printf("%d", *(a+1));

}

20

30

40

Compiler error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of following program?

# include <stdio.h>

void fun(int x)

{

x = 30;

}

int main()

{

int y = 20;

fun(y);

printf("%d", y);

return 0;

}

30

20

Compiler Error

Runtime Error

6.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Output of following program?

# include <stdio.h>

void fun(int *ptr)

{

*ptr = 30;

}

int main()

{

int y = 20;

fun(&y);

printf("%d", y);

return 0;

}

20

30

Compiler Error

Runtime Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Pointers refer to

Memory Address

Value in Memory

All the above

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?

Discover more resources for Computers