What is the correct way to declare a string in C
Array and string unit 7

Quiz
•
Computers
•
University
•
Hard
Abhishek Pandey
Used 14+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
a. string name;
b. char name[];
c. char name();
d. string[] name;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which library is used for string manipulation functions in C
string.h
stdio.h
math.h
time.h
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function is used to find the length of a string in C
len()
length()
strlen()
strlength()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to concatenate two strings in C
strcat()
all
concat()
. append()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to compare two strings in C
strcompare()
compare()
strcmp()
str_equal()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to copy one string to another in C
copy()
strcopy()
strcpy()
duplicate()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which character is used to represent the end of a string in C
\n
0
\0
1
Create a free account and access millions of resources
Similar Resources on Quizizz
13 questions
Object oriented programming in java

Quiz
•
University
15 questions
Array Java

Quiz
•
University
10 questions
Workshop 2 Review

Quiz
•
University
10 questions
Moringa JavaScript Arrays

Quiz
•
5th Grade - Professio...
15 questions
Cybernaut Analysis

Quiz
•
University
14 questions
PHP Assessment 1

Quiz
•
University
15 questions
Computer Science Quiz

Quiz
•
University
10 questions
C Program Array and strings

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade