PPS Quiz 2 - Google Forms
PPS Quiz 2 - Google Forms
PPS Quiz 2
* Indicates required question
1. Roll No *
2. Name *
3. Section *
Sec B
Sec G
#include main()
{
int a[3] = {2,1};
printf("%d", a[a[1]]);
https://docs.google.com/forms/d/1O1kYUiCTmhRDxNpmGFKRQpGGq3jsxt56f1khjrBRaFI/edit 1/5
6/5/24, 10:27 AM PPS Quiz 2
Compile Error
Garbage Value
https://docs.google.com/forms/d/1O1kYUiCTmhRDxNpmGFKRQpGGq3jsxt56f1khjrBRaFI/edit 2/5
6/5/24, 10:27 AM PPS Quiz 2
7. How many times the given below program will print "India"? * 1 point
#include<stdio.h>
int main ()
{
int x;
for(x=-1; x<=20; x++)
int i;
{
if(x < 10)
continue;
else
break;
printf("India");
}
Infinite
21 times
0 times
20 times
#include <stdio.h>
int main()
{
int i = 5;
printf("%d %d %d", i++, i++, i++);
return 0;
}
765
567
777
Compiler Dependent
https://docs.google.com/forms/d/1O1kYUiCTmhRDxNpmGFKRQpGGq3jsxt56f1khjrBRaFI/edit 3/5
6/5/24, 10:27 AM PPS Quiz 2
True
False
Preprocessor directive
Inclusion directive
for
while
do-while
stdlib. h
ctype. h
stdio. h
stdarg. h
https://docs.google.com/forms/d/1O1kYUiCTmhRDxNpmGFKRQpGGq3jsxt56f1khjrBRaFI/edit 4/5
6/5/24, 10:27 AM PPS Quiz 2
13. What are the elements present in the array of the following C code? * 1 point
5, 5, 5, 5, 5
5, 0, 0, 0, 0
Forms
https://docs.google.com/forms/d/1O1kYUiCTmhRDxNpmGFKRQpGGq3jsxt56f1khjrBRaFI/edit 5/5