
C Pointers
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
sathi v
Used 80+ times
FREE Resource
Enhance your content in a minute
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
Responsi PL 2021/2022
Quiz
•
University
20 questions
Basics of programming - Quiz - 01
Quiz
•
University - Professi...
15 questions
DCN1A - OSI & TCP/IP MODEL
Quiz
•
University
18 questions
Programming in C language
Quiz
•
12th Grade - University
20 questions
ADMINISTRASI SISTEM JARINGAN
Quiz
•
University
18 questions
CP-String
Quiz
•
University
17 questions
Java Collection Framework
Quiz
•
University
20 questions
PreTest Matakuliah Sysadmin
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
