An array in C is:
A
A collection of different data types
B
A collection of same-type elements
Correct answer
C
A type of loop
D
A function
Correct answer
B. A collection of same-type elements
12 views
⚔️
Challenge a friend on Computer Science FBISE Class 10
Same MCQs, timed, live leaderboard. Send the link on WhatsApp – no sign-up needed.
Create challenge
Explanation
An array is a collection of elements of the same data type stored in contiguous memory. Each element is accessed by an index starting at 0. Arrays make it easy to handle lists of values.
Reference
Asked in: Matric,FBISE
Doubts & discussionNot sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ
‹ Previous MCQ The process of finding and fixing errors in a program is called: Next MCQ › In an array declared as int a[5];, the valid indices are: