
C Strings Quiz
Authored by priyanka it
Computers
3rd Grade
Used 2+ 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
45 sec • 1 pt
What is the correct way to declare a string in C?
char myString[] = "Hello";
char myString[6] = 'Hello';
string myString = 'Hello';
char myString = 'Hello';
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which function is used to find the length of a string in C?
strlength()
strlen()
stringlength()
len()
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How do you concatenate two strings in C?
strcat(string1, string2)
concat(string1, string2)
strncat(string1, string2, n)
append(string1, string2)
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which function is used to compare two strings in C?
strcmp()
add()
multiply()
divide()
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the correct way to input a string in C?
input()
print()
cin >>
scanf()
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which function is used to find the first occurrence of a character in a string in C?
findchar()
strrchr()
strchr()
index()
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the correct way to copy one string to another in C?
moveString(destination, source)
copyString(destination, source)
duplicateString(destination, source)
strcpy(destination, source)
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
15 questions
Массивтер
Quiz
•
1st - 5th Grade
10 questions
Digital Citizenship
Quiz
•
3rd - 5th Grade
10 questions
Dasar C++
Quiz
•
KG - 3rd Grade
10 questions
Основы языка Паскаль
Quiz
•
1st - 5th Grade
10 questions
Pseudo code Practice 1
Quiz
•
1st - 3rd Grade
15 questions
แบบทดสอบ Scratch
Quiz
•
1st - 5th Grade
10 questions
Java Strings
Quiz
•
1st Grade - Professio...
10 questions
Python
Quiz
•
1st - 10th Grade
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