C - Strings

Quiz
•
Computers
•
University
•
Medium
Ise Jnnce
Used 95+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the return value of the following statement if it is placed in C program? strcmp(“ABC”,”ABC”);
33
-1
1
0
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which built in function is used to convert string to lowercase
strlen()
strlwr()
strcmp()
strrev()
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which is not a built in function
string()
strlen()
strcat()
strrev()
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
String is an array of characters with …….. character as the last element of array.
Null
Empty
0
1
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the format specifier used to print or read a character in an array in Printf or Scanf function?
%C
%f
%w
%c
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following function is more appropriate for reading in a multi-word string?
scanf()
gets()
printf()
puts()
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The library function used to copy a string to another is
strncpy()
strcmp()
strcpy()
strchr()
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
DSA quiz

Quiz
•
University
16 questions
C-Extended

Quiz
•
University
15 questions
ARRAYS AND FUNCTIONS

Quiz
•
University
15 questions
C++ Final Quiz 2 - String & Character Functions

Quiz
•
University
20 questions
Java - Revisão I

Quiz
•
University
25 questions
Quiz 1 Review - CS125

Quiz
•
University
20 questions
Quiz

Quiz
•
University
20 questions
C - Structures

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University