
ARRAY C++

Quiz
•
Computers
•
University
•
Medium
MUSHAHADAH (PTSS)
Used 8+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Identify what do arrays do.
hold addresses
hold values under a single name
hold one value
hold values under a multiple name
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Select the valid indexes for the array shown below.
int myArray[25];
0-25
1-25
0-24
1-24
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Identify the correct way declaring an array "Arr" which is an integer array having 20 element.
Array [] =Arr[20];
int Arr[20];
int[20] Arr;
int Arr= new [20];
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify the statement that declare an array ABC of 5 elements of type int and initialize all elements to 100.
int ABC[5]= {100,100,100,100,100};
int ABC[ ]= {5,100};
int ABC[5]= {5,100};
int[5] ABC= {100,100,100,100,100};
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify statements correctly to declare an array Arr that have 5 elements and initialize it to 0 using for loop.
int Arr[20]; for(i=0; i<20 ; ++i) { myArr[i]=0; }
int Arr[5]; for(i=0, i<5, ++i) { myArr[i]=0; }
int Arr[5]; for(i=0; i<5 ; ++i) { myArr[i]=0; }
int Arr[5]; for(i=0; i<20 ; ++i) { myArr[i]=0; }
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
An entire array be printed out at once.
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Indicate the problem with the following code fragment.
Array indexes start at 1 not 0
Arrays must be integers
Should be cin >> scores[0];
Array indexes must be less than the size of the array
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
Lets explore Java

Quiz
•
University
8 questions
CPT027 Review Quiz 1

Quiz
•
University
10 questions
0xDebug - Python

Quiz
•
University
15 questions
DATA STRUCTURES QUIZ

Quiz
•
University
15 questions
BASIC C PROGRAMMING QUIZ

Quiz
•
University
12 questions
DS_NumPy_TEST1

Quiz
•
University
15 questions
Qûîz

Quiz
•
University
15 questions
Java

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