
C Strings Quiz
Authored by Manoj R
Computers
12th Grade
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to declare a string in C?
char str = 'Hello';
char str[] = "Hello";
string str = 'Hello';
int str = 'Hello';
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to output a string in C?
print()
display()
printf()
printline()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to compare two strings in C?
compareStr()
strcomp()
strcmp()
stringCompare()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you concatenate two strings in C?
concat(string1, string2)
strcat(string1, string2)
strconcat(string1, string2)
strjoin(string1, string2)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the significance of the strcmp() function in C?
It is used to concatenate two strings in C.
It is used to find the length of a string in C.
It is used to convert a string to uppercase in C.
It is used to compare two strings in C.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Describe the role of strcat() function in C string manipulation.
The role of strcat() function in C string manipulation is to concatenate two strings.
The role of strcat() function is to split strings.
strcat() function reverses the order of strings.
strcat() function compares two strings.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the return type of strlen() function in C?
int
char
size_t
void
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
Pseudocode - OCR ERL
Quiz
•
9th - 12th Grade
12 questions
KUIZ SAINS KOMPUTER KARNIVAL STEM SMK KUALA KRAU 2018
Quiz
•
12th Grade
10 questions
Conhecimentos prévios em Java
Quiz
•
10th - 12th Grade
13 questions
Functions
Quiz
•
5th Grade - Professio...
15 questions
Program Implementation
Quiz
•
10th - 12th Grade
10 questions
Python Testing
Quiz
•
9th - 12th Grade
10 questions
Unit 23 - Pop Quiz
Quiz
•
12th Grade
10 questions
if/else statements quiz
Quiz
•
9th Grade - University
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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