Arrays in Programming

Arrays in Programming

University

15 Qs

quiz-placeholder

Similar activities

Array and Loops in C#

Array and Loops in C#

University

20 Qs

Computer Programming (Lab)

Computer Programming (Lab)

University

10 Qs

Array in C

Array in C

University

10 Qs

Arrays and pointers quiz

Arrays and pointers quiz

University

20 Qs

Quiz I - Programming in C

Quiz I - Programming in C

University

20 Qs

Arrays

Arrays

University

20 Qs

Arrays

Arrays

11th Grade - University

10 Qs

TECHNICAL C PROGRAM

TECHNICAL C PROGRAM

University

10 Qs

Arrays in Programming

Arrays in Programming

Assessment

Quiz

Computers

University

Medium

Created by

ZPPSU VLs

Used 2+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an array in programming?

A type of function

A loop that repeats

An ordered collection of elements stored in consecutive memory

A random group of values

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of arrays does C++ support?

Heterogeneous

Homogeneous

Mixed-type

Dynamic only

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a homogeneous array?

[1, "two", 3.0]

[‘a’, 2, 4.5]

[10, 20, 30]

["apple", 3.14, false]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does this declare: int scores[5];?

A pointer

An array with 4 elements

An array of 5 integers

An array with default values

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of array allows elements of different data types?

Integer arrays

Multi-dimensional arrays

Heterogeneous arrays

Constant arrays

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does float temps[7] = {30.5, 31.0}; represent?

Full initialization

Partial initialization

Invalid declaration

String array

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the total memory allocation of an array int data[4]; on most systems?

2

4

8

16

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?