
C Program
Quiz
•
World Languages
•
University
•
Practice Problem
•
Hard
SUDHARSAN P
Used 5+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the Format specifier used to print a String or Character array in C Printf or Scanf function.?
%c
%C
%s
%w
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the Output for the Following code:
#include <stdio.h>
void main()
{
printf("""Hello World""");
}
""Hello World""
Hello World
"Hello World"
error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you convert this char array to string.?
char str[]={'g','l','o','b','y'};
A) str[5] = 0;
B) str[5] = '\0'
C) str[]={'g','l','o','b','y','\0'};
D) All the above
D
A
B
C
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the Output for the Following code:
#include <stdio.h>
int main()
{
int c=5,s=0;
while(c<10)
{
c=c+1;
s=s-2;
}
printf("%d",s);
return 0;
}
10
5
-10
0
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Find how many stars will be printed for below code:
#include <stdio.h>
int main()
{
int a=0;
while(a<25){
if(a>0 || a<=10)
{
printf("*");
}
else if(a>10 || a<=20)
{
printf("*");
}
else if(a>20 || a<=30)
{
printf("*");
}
a++;
}
return 0;
}
35 stars
25 stars
30 stars
20 stars
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the maximum length of a C String.?
A) 32 characters
B) 64 characters
C) 256 characters
D) None of the above
A
B
C
D
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the Output for the Following code:
#include <stdio.h>
int main()
{
int a=0,b=1;
while(a<=10)
{
printf("%d",a);
a=a+2;
a=a-b;
}
return 0;
}
012345678910
12345678910
0123456789
error
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
21 questions
4.2 vocabulario enfermedades, partes del cuerpo
Quiz
•
7th Grade - University
15 questions
Pretérito Indefinido
Quiz
•
University
18 questions
Bien Dit 2 Chapitre 3.1
Quiz
•
KG - University
20 questions
Preterit or Imperfect??
Quiz
•
KG - University
20 questions
Spanish Direct and Indirect Object Pronouns.
Quiz
•
University
15 questions
Avancemos 4, Cap. 2-1: Práctica de vocabulario
Quiz
•
10th Grade - University
15 questions
La France - Géographie, emblèmes, politique
Quiz
•
University
19 questions
L'École en France
Quiz
•
7th Grade - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for World Languages
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
18 questions
Realidades 2 2A reflexivos
Quiz
•
7th Grade - University
20 questions
SER vs ESTAR
Quiz
•
7th Grade - University
10 questions
U1 Mi rutina diaria - los verbos reflexivos (español 2)
Quiz
•
9th Grade - University
7 questions
Reflexive Verbs in Spanish
Lesson
•
9th Grade - University
20 questions
Los pasatiempos
Quiz
•
9th Grade - University
