
DS - Chapter 4 - Strings
Authored by Cayden Henderson
Computers
University
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
42 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
s1 = “HI”, s2 = “HELLO”, s3 = “BYE”. How can we concatenate the three strings?
strcat(s1,s2,s3)
strcat(s1,(strcat(s2,s3)))
strcpy(s1, strcat(s2,s3)
strcpy(s1, strcat(s3,s2)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
strlen(“Oxford University Press”) is?
22
24
23
25
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function adds a string to the end of another string?
stradd()
strcat()
strtok()
strcpy()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
String Hello World can be read using scanf().
True
False
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A string when read using scanf() needs an ampersand character.
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The gets() function takes the starting address of a string which will hold the input.
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
tolower() is defined in ctype.h header file.
True
False
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 Microsoft
or continue with
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?