Array C++

Array C++

11th Grade

11 Qs

quiz-placeholder

Similar activities

Quiz on Array

Quiz on Array

11th - 12th Grade

10 Qs

C Programming - Dia Aberto - EPC

C Programming - Dia Aberto - EPC

9th - 12th Grade

10 Qs

ARRAYS

ARRAYS

11th - 12th Grade

10 Qs

C++ Array

C++ Array

11th Grade

11 Qs

C++ Arrays

C++ Arrays

8th - 12th Grade

12 Qs

Unit 8 - Searching and Sorting

Unit 8 - Searching and Sorting

9th - 12th Grade

15 Qs

Advanced Java Study Guide

Advanced Java Study Guide

11th - 12th Grade

10 Qs

Unit 6 Computer Science Arrays

Unit 6 Computer Science Arrays

10th - 12th Grade

14 Qs

Array C++

Array C++

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Computer Teacher

Used 142+ times

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is 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];

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is the correct way declaring an Array "MyArr" which is an integer array having 10 element.?
Array [] =MyArr[10];
int MyArr[10];
int[10] MyArr;
int MyArr= new [20];

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is the correct way declaring an Array "MyArr" which is an double array having 10 element.?
Array [] =MyArr[10];
double MyArr[10];
double[10] MyArr;
int MyArr= new [10];

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is the correct way declaring an Array "Arr" which is an integer array having 20 element.?

array <int,20> Arr

array<20,int> Arr

array Arr

array<20,double> Arr

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is the correct way declaring an Array "MyArr" which is an integer array having 10 element.?

array<int,10> MyArr

array<20,int> Arr

array Arr

array<20,double> Arr

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is the correct way declaring an Array "MyArr" which is an double array having 10 element.?

array<double,10> MyArr

array<20,int> Arr

array Arr

array<20,double> Arr

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following statement Declare an array called ABC of 5 elements of type int and initialize all the 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};

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?