
CPPS Quiz
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Harsh Kate
Used 1+ times
FREE Resource
Enhance your content in a minute
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. Which of these best describes an array?
a) A data structure that shows a hierarchical behavior
b) Container of objects of similar types
c) Arrays are immutable once initialised
d) Array is not a data structure
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2. How do you initialize an array in C?
a) int arr[3] = (1,2,3);
b) int arr(3) = {1,2,3};
c) int arr[3] = {1,2,3};
d) int arr(3) = (1,2,3);
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3) Choose a correct statement about C language arrays.
A) An array address is the address of first element of array itself
B) An array size must be declared if not initialized immediately
C) Array size is the sum of sizes of all elements of the array.
D) All the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4) What are the Types of Arrays.?
A) int, long, float, double
B) struct, enum
C) char
D) All the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5) An array Index starts with.?
A) -1
B) 0
C) 1
D) 2
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6) Choose a correct statement about C language arrays.
A) An array size can not changed once it is created.
B) Array element value can be changed any number of times
C) To access Nth element of an array students, use students[n-1] as the starting index is 0.
D) All the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
7) What is the output of C Program.? int main() { int a[]; a[4] = {1,2,3,4}; printf("%d", a[0]); }
A) 1
B) 2
C) 4
D) Compiler error
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
Server Administration- Quiz 1
Quiz
•
12th Grade - University
11 questions
Computer Science (1-9) - Identifying & Preventing Threats
Quiz
•
University
15 questions
Cuestionario sobre seguridad en línea
Quiz
•
2nd Grade - University
10 questions
Quiz Informatica Jornadas Orientación Asunción
Quiz
•
12th Grade - University
15 questions
Revisão - Arquitetura de Computadores
Quiz
•
University
8 questions
Cha-ching 2
Quiz
•
1st Grade - University
10 questions
Excel 2016 Formato de celda
Quiz
•
University
16 questions
Algo Quiz
Quiz
•
University
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
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
