
C Programming Array Quiz
Authored by Karen Tan
Computers
10th Grade
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What does the following C program do? Write a program in C to store elements in an array and print them.
Stores elements in a linked list
Stores elements in a queue
Stores elements in an array and prints them
Stores elements in a stack
2.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What is the expected output of the following C program? Write a program in C to read n number of values in an array and display them in reverse order.
The values store into the array are : 7 5 2 The values store into the array in reverse are : 2 5 7
The values store into the array are : 2 5 7 The values store into the array in reverse are : 2 5 7
The values store into the array are : 2 5 7 The values store into the array in reverse are : 7 5 2
The values store into the array are : 7 5 2 The values store into the array in reverse are : 7 5 2
3.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What is the purpose of the following C program? Write a program in C to find the sum of all elements of the array.
Finds the sum of all elements of the array
Finds the average of all elements of the array
Finds the maximum element of the array
Finds the minimum element of the array
4.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What does the following C program do? Write a program in C to copy the elements of one array into another array.
Copies the elements of one array into a stack
Copies the elements of one array into a queue
Copies the elements of one array into a linked list
Copies the elements of one array into another array
5.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What is the expected output of the following C program? Write a program in C to count the total number of duplicate elements in an array.
Total number of duplicate elements found in the array is : 1
Total number of duplicate elements found in the array is : 2
Total number of duplicate elements found in the array is : 3
Total number of duplicate elements found in the array is : 0
6.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What is the purpose of the following C program? Write a program in C to print all unique elements in an array.
Prints all even elements in an array
Prints all duplicate elements in an array
Prints all unique elements in an array
Prints all elements in an array
7.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What does the following C program do? Write a program in C to merge two arrays of the same size sorted in descending order.
Merges two arrays of the same size sorted in descending order
Merges two arrays of different sizes sorted in ascending order
Merges two arrays of the same size sorted in ascending order
Merges two arrays of different sizes sorted in descending order
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
20 questions
Google SketchUp Tool
Quiz
•
KG - University
10 questions
Cyber Security
Quiz
•
1st - 10th Grade
19 questions
UNIT 1.2 MEMORY
Quiz
•
10th Grade
11 questions
Access
Quiz
•
10th Grade - University
15 questions
After Effect Intoduction
Quiz
•
10th Grade - University
20 questions
HTML QUIZ # 3
Quiz
•
10th Grade
14 questions
Linux: Users and Groups
Quiz
•
9th Grade - University
10 questions
BÀI 8. SẮP XẾP VÀ LỌC DỮ LIỆU
Quiz
•
1st - 12th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade