
EESE125 Quiz: Characters and Strings
Authored by Nangamso Duku
Information Technology (IT)
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a string in C?
A boolean value
A floating-point number
A series of characters
A type of integer
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which character is used to denote the end of a string in C?
$
@
#
\0
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function is used to print a string in C?
write()
print()
printf()
output()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the first character of a string in C?
string.first()
string[0]
string.get(0)
string[1]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the
To handle strings
To perform mathematical operations
To manage memory
To classify and manipulate characters
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function checks if a character is a digit?
isalpha()
isalnum()
isupper()
isdigit()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the function atoi() do?
Converts a string to a float
Converts a string to an integer
Converts a string to a long integer
Converts a string to a double
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?