C Pointers

C Pointers

University

18 Qs

quiz-placeholder

Similar activities

Introduction to Networking

Introduction to Networking

University

15 Qs

Spreadsheet

Spreadsheet

8th Grade - University

20 Qs

Microsoft Excel

Microsoft Excel

KG - Professional Development

20 Qs

Web Development and Programming

Web Development and Programming

University

20 Qs

GIT Básico

GIT Básico

University

18 Qs

data structures1

data structures1

University

20 Qs

IAS CH4

IAS CH4

University

20 Qs

UTS Praktikum SDA KOM B

UTS Praktikum SDA KOM B

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