Question 1
Which character is the NULL TerminatorCharacter?
‘n’
”
‘1’
‘ ‘
Question 2
What is the right include file to includewhen using the isupper library function?
stdio.h
string.h
ctype.h
chars.h
Question 3
Which string library function is used tocompare two strings to determine if they are equal?
strlen
strcmp
strcpy
strcat
Question 4
A string is a series ofcharacters that ends with what character?
blank
tab
new line
null terminator
Question 5
To determine if two strings (string1 andstring2) are equal, just say: if(string1 == string2)
True
False
Question 6
What is the right file to include to work withC String Library Functions
stdlib.h
str.h
stdio.h
string.h
Question 7
In C, each character is translated to whattype so the computer can better understand the character
value:
real
float
int
double
Question 8
What letter is printed by: printf (“%c n”, char_val = ‘a’ +6);
d
e
f
g
Question 9
A string is an array of what type?
floats
characters
reals
doubles