
Pointers_Structures
Quiz
•
Computers
•
University
•
Medium
ALDO STALIN J L
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In a C Program if
int a = 5;
Int *ptr = &a;
then the printf statement with
&a, a, *ptr , ptr
adrress, Value, Value, Adress
address, value, value, value
all address
All values
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If ptr is a pointer variable pointing to an array, then
"printf("%d",*(ptr++)) ;"
statement will print :
Next location address
Next location index value
Next location value
Compile time error
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What will be output?
int i=10;
int *p;
p=&i;
i+=5;
printf("\n i=%d *p=%d", i,*p)
i=10, *p=10
i=10, *p=15
i=15, *p=15
i=15, *p=10
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Code to change the 3rd array value to 50 using pointers
int main(){
int a[] = {10,20,30};
int *p = a;
----------------------;
}
p+3 = 50
*(p+3) = 50
*p+2 = 50
*(p+2) = 50
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
1. Prior to using a pointer variable it should be
Declared
Initialized
Both declared and initialized
None of these
6.
MULTIPLE CHOICE QUESTION
2 mins • 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
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If a variable is a pointer to a structure, then which of the following operator is used to access data members of the structure through the pointer variable?
.
&
*
->
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
N4 Theory - 2
Quiz
•
12th Grade - University
20 questions
Regular expression Session 2020-21
Quiz
•
University
20 questions
Lớp 5. Định dạng và bố trí hình ảnh trong văn bản
Quiz
•
5th Grade - University
25 questions
C PROGRAMMING
Quiz
•
University
20 questions
Web Development and Programming
Quiz
•
University
15 questions
មេរៀនទី០៣ Microsoft Word 2019
Quiz
•
University
20 questions
Ms word Quiz
Quiz
•
University
20 questions
Basic Python
Quiz
•
University
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
Discover more resources for Computers
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
7 questions
Central Idea of Informational Text
Interactive video
•
4th Grade - University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
39 questions
Unit 7 Key Terms
Quiz
•
11th Grade - University
7 questions
Transition Words and Phrases
Interactive video
•
4th Grade - University
18 questions
Plotting Points on the Coordinate Plane
Quiz
•
KG - University
5 questions
Declaration of Independence
Interactive video
•
4th Grade - University
