
C Programming: Arrays and Strings Quiz
Authored by Ed Sepulveda
Computers
9th - 12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function is used to find the length of a string in C?
sizeof()
strcpy()
strcat()
strlen()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the first element of an array in C?
arr[1]
arr[0]
arr[first]
arr[-1]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What character is used to terminate all strings in C?
'\n'
'\a'
'\t'
'\0'
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to concatenate two strings in C?
strcat()
strlen()
strcomp()
strcpy()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen if you try to access an array element at an index greater than the length of the array?
The program will automatically resize the array
The program will print an error message
The program will behave unpredictably
The program will terminate normally
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?
Similar Resources on Wayground
10 questions
PERANGKAT UNTUK MENGAKSES INTERNET - KELAS IX
Quiz
•
9th Grade
10 questions
MACAM-MACAM IKON PAINT
Quiz
•
5th - 12th Grade
10 questions
UH EXCEL TIK
Quiz
•
10th Grade
10 questions
Lesson 2 - CPU
Quiz
•
9th Grade
10 questions
Fun with Paint and Storage
Quiz
•
1st Grade - University
9 questions
1.5.1 - Starter Task/Social Engineering Starter (Dg)
Quiz
•
11th Grade
10 questions
Computer Aided Design
Quiz
•
11th Grade
10 questions
Sistemi e reti: CPU, von neumann
Quiz
•
12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade