C String
Quiz
•
English
•
University
•
Practice Problem
•
Medium
Azrinna Muhamad
Used 20+ times
FREE Resource
Enhance your content in a minute
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to read a string from the user?
gets()
puts()
printf()
scanf()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the puts() function do?
Reads a string from the user
Displays a string
Concatenates two strings
Reverses a string
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
Prints the entered string
Prints "Enter a string:"
Compilation error due to gets()
Runtime error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which header file is required for string handling functions in C?
stdio.h
stdlib.h
string.h
ctype.h
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
#include <stdio.h>
int main() {
char line[100];
printf("Enter a line of text: ");
_____(line);
printf("You entered: %s\n", line);
return 0;
}
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
10 questions
Overdraft
Quiz
•
University
10 questions
Places of Work (7A - Starter)
Quiz
•
University
10 questions
Week 6 Unit 19
Quiz
•
University
10 questions
Unlock 3 - RW Unit 7 - Vocabulary Game
Quiz
•
University
10 questions
B2-M2-Vocabulary Quiz-Chapter 7
Quiz
•
University - Professi...
10 questions
Hunger Games - Ch. 11
Quiz
•
8th Grade - University
10 questions
Unit 4.1
Quiz
•
University
10 questions
ZARA
Quiz
•
University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
