What does the following C program do? Write a program in C to store elements in an array and print them.
C Programming Array Quiz

Quiz
•
Computers
•
10th Grade
•
Medium
Karen Tan
Used 4+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
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
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
CSP Unit 6: Algorithms

Quiz
•
9th - 12th Grade
18 questions
National 4/5 Programming (VB)

Quiz
•
9th - 11th Grade
18 questions
COMPUTER 10 FINALS :(

Quiz
•
10th Grade
20 questions
APCSA Arrays

Quiz
•
9th - 12th Grade
18 questions
STATIC KEYWORD IN JAVA

Quiz
•
9th - 12th Grade
20 questions
Debugging

Quiz
•
10th Grade
20 questions
8525 AQA GCSE 3.2.6 Data Structures

Quiz
•
10th Grade
20 questions
Java Arrays

Quiz
•
9th - 12th Grade
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
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

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

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University