1D Array

Quiz
•
Computers
•
University
•
Medium
Abhishek Pandey
Used 21+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is Array?
A. Collection of different type of elements
B. Collectionof similar type of elements
C. None of the above
D. Both A and C
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is right way to Initialize array?
A. int num[6] = { 2, 4, 12, 5, 45, 5 };
B. int n{} = { 2, 4, 12, 5, 45, 5 };
C. int n{6} = { 2, 4, 12 };
D. int n(6) = { 2, 4, 12, 5, 45, 5 };
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the maximum number of dimensions an array in C may have?
A. Two
B. eight
C. sixteen
D. Theoratically no limit. The only practical limits are memory size and compilers
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the starting index of an array in C?
0
1
5
4
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare an array named "scores" that can store 5 integers in C
array scores = 5;
int scores[5];
scores = int[5];
int[] scores ;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In C, what function is used to input values into an array from the user
scan()
input()
scanf()
read()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you pass an array to a function in C?
By passing the array name
By passing the array size
By passing each element individually
Arrays cannot be passed to functions in C
Similar Resources on Wayground
12 questions
Archivos en JAVA

Quiz
•
University
10 questions
Array, Karakter dan String (BK) XI.B

Quiz
•
11th Grade - University
9 questions
Information Technology

Quiz
•
University
12 questions
Java quiz-2024-Sec-B

Quiz
•
University
10 questions
Komposter

Quiz
•
University
10 questions
Array in C

Quiz
•
University
10 questions
exception

Quiz
•
University
10 questions
Arrays

Quiz
•
11th Grade - 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