
CPPS Quiz

Quiz
•
Computers
•
University
•
Hard
Harsh Kate
Used 1+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Жанар214

Quiz
•
9th Grade - University
8 questions
basesprog 1

Quiz
•
University
10 questions
Java Static

Quiz
•
University
15 questions
uNIT 11_14

Quiz
•
University
10 questions
Prob. prog 2

Quiz
•
University
12 questions
C Practice Test 1

Quiz
•
University
17 questions
Java Programming Quiz

Quiz
•
University
15 questions
UAS Prak Alpro IF A

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University