C Pointers

C Pointers

University

18 Qs

quiz-placeholder

Similar activities

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

Chap 1: What is a program made of?

Chap 1: What is a program made of?

University

13 Qs

ARKOM 2_INS

ARKOM 2_INS

University

15 Qs

IP ADDRESS

IP ADDRESS

University

20 Qs

Revisão 2ª AV - Sistemas Operacionais

Revisão 2ª AV - Sistemas Operacionais

University

20 Qs

C - Structures

C - Structures

University

20 Qs

DreamWeaver CS6

DreamWeaver CS6

University

20 Qs

Lập trình C++

Lập trình C++

University

18 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