
Quiz of Array

Quiz
•
Computers
•
University
•
Hard
Neetu Faujdar
Used 5+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of these best describes an array?
Which of these best describes an array?
Container of objects of similar types
Arrays are immutable once initialised
Array is not a data structure
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How do you initialize an array in C?
int arr[3] = (1,2,3);
int arr(3) = {1,2,3};
int arr[3] = {1,2,3};
int arr[3] = {1,2,3};
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Elements in an array are accessed
randomly
sequentially
exponentially
logarithmically
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following operations is not O(1) for an array of sorted data. You may assume that array elements are distinct.
Find the ith largest element
Delete an element
Find the ith smallest element
All of the above
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of C Program.? int main() { int a[]; a[4] = {1,2,3,4}; printf("%d", a[0]); }
1
2
4
compile error
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of C Program.? int main() { int a[] = {1,2,3,4}; int b[4] = {5,6,7,8}; printf("%d,%d", a[0], b[0]); }
1,5
2,6
0,0
Compiler Error
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of C program.? int main() { char grade[] = {'A','B','C'}; printf("GRADE=%d, ", *grade); printf("GRADE=%d", grade[0]); }
A A
65 A
65 65
None of the above
Create a free account and access millions of resources
Similar Resources on Wayground
18 questions
Programming in C language

Quiz
•
12th Grade - University
20 questions
Zenorix 2023

Quiz
•
University
10 questions
Array in C

Quiz
•
University
10 questions
Arrays

Quiz
•
11th Grade - University
20 questions
CCE-III Programming in C Language

Quiz
•
University
13 questions
C programming-1

Quiz
•
University
17 questions
Coding Titans

Quiz
•
University
20 questions
C programming syntax quiz

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