ARRAY C++

ARRAY C++

University

10 Qs

quiz-placeholder

Similar activities

DCN5511: Chapter 5 - 7

DCN5511: Chapter 5 - 7

University

15 Qs

Bài tập trắc nghiệm C++(tiếp)

Bài tập trắc nghiệm C++(tiếp)

3rd Grade - University

10 Qs

 QUIZ  MS Core Java Quiz-3 2023

QUIZ MS Core Java Quiz-3 2023

University

11 Qs

HTML Tag

HTML Tag

University

15 Qs

Computers

Computers

12th Grade - University

15 Qs

Inteligencia de Negocios

Inteligencia de Negocios

University

10 Qs

PWM y ADC con el MSP430F5529

PWM y ADC con el MSP430F5529

University

13 Qs

Tes Awal Modul 5

Tes Awal Modul 5

University

10 Qs

ARRAY C++

ARRAY C++

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

MUSHAHADAH (PTSS)

Used 9+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Media Image

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers