
Pointers & Strings in C
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Hard
SOBHANBABU SOBHANBABU
Used 65+ times
FREE Resource
Enhance your content in a minute
21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following pointer is Wild
int *p;
int *q=&a;
int *v=NULL;
void *g;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main drawback of pointers
Complexity to mange pointers
Difficult to write program
They are not safe
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following Code:
#include <stdio.h>
int main()
{
int *p;
int a=10;
p=&a;
*p=34;
printf("%d,%d",a,*p);
return 0;
}
34,34
10,10
10,34
34,10
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following code:
#include <stdio.h>
int main()
{
void *z;
float s=1.2;
z=&s;
printf("%f",*z);
return 0;
}
Compile time error
1.20000
1.2
Run time error
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code:
#include <stdio.h>
int main()
{
int *p;
int a=20;
p=&a;
int **q;
**q=100;
q=&p;
*p=50;
printf("%d,%d,%d",**q,a,*p);
return 0;
}
50,50,50
20,20,50
100,50,20
100,20,50
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code snippet:
int a=45,b=67;
int *s,*q;
s=&a;q=&b;
printf("%d",s+q);
Compile time error
112
Garbage value
0
7.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of the following operators are not used with pointers
*
/
%
-
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
ASK : : KOD ARAHAN
Quiz
•
10th Grade - Professi...
20 questions
Linguaxes de marcas: HTML
Quiz
•
Professional Development
21 questions
丙軟學科-電腦概論
Quiz
•
Professional Development
16 questions
Cyber Resilience Training
Quiz
•
Professional Development
20 questions
Exam1-CISCO2
Quiz
•
Professional Development
20 questions
Avaliação - HTML e CSS
Quiz
•
Professional Development
20 questions
Internet dan Komputer
Quiz
•
Professional Development
18 questions
DECI - Week 14 - Time Machine
Quiz
•
Professional Development
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
Discover more resources for Computers
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
