Array and string unit 7

Quiz
•
Computers
•
University
•
Hard
Abhishek Pandey
Used 15+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to declare a string in C
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 Wayground
10 questions
BCSC0006 - Quiz 1 - Arrays

Quiz
•
University
15 questions
C Programming Array Concepts

Quiz
•
University
10 questions
The OOP Quiz

Quiz
•
University
15 questions
Exploring Python Fundamentals

Quiz
•
12th Grade - University
10 questions
Q2 - Python

Quiz
•
University
6 questions
String3

Quiz
•
University
10 questions
Puzzle Quiz

Quiz
•
University
15 questions
Interactivity with JavaScript

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University