
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 Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
40 questions
2ºDAW - Desarrollo Web Ent.Cliente - Trim.2 - Prof. C. Boni
Quiz
•
University - Professi...
44 questions
SEMI-FINAL EXAMINATION IN TTL 2
Quiz
•
University
38 questions
U7 Vocab
Quiz
•
University
44 questions
LATIHAN PYTHON
Quiz
•
10th Grade - University
40 questions
MSP430
Quiz
•
12th Grade - Professi...
47 questions
CSC 209 Graphics and Visual Computing MIDTERM EXAM
Quiz
•
University
40 questions
2nd Grade Roman Numerals
Quiz
•
2nd Grade - University
40 questions
Eng-103 Vocab 2
Quiz
•
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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade