CSC126_Quiz9_Chapter6

CSC126_Quiz9_Chapter6

University

15 Qs

quiz-placeholder

Similar activities

Bài 25 tin 10

Bài 25 tin 10

9th Grade - University

10 Qs

STM 2013 : FORMATIF T3-FORM & REPORT

STM 2013 : FORMATIF T3-FORM & REPORT

University

20 Qs

MPB Week 7

MPB Week 7

University

10 Qs

BB

BB

University

10 Qs

Latex

Latex

University

11 Qs

Relational Algebra and Calculus

Relational Algebra and Calculus

University

20 Qs

Computational Thinking in Python[Quiz 3]

Computational Thinking in Python[Quiz 3]

University

15 Qs

CSC126_Quiz9_Chapter6

CSC126_Quiz9_Chapter6

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

TS ZAKARIA

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an array in C++?

A list of functions

A collection of variables of different types

A fixed-size collection of variables of the same type

A dynamic list of classes

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the index of the first element in an array?

1

-1

0

Depends on the compiler

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct array declaration?

int nums();

array int[10];

int nums[10];

int nums{};

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of cout << max[0]; if int max[5] = {10, 3, 2, 40, 1};?

3

0

10

1

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to declare an array of characters in C++?

string

str

text

char

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if the number of elements is less than the array size during initialization?

Compilation error

Remaining elements are garbage values

Remaining elements are filled with zeros

Only the specified elements are used

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an illegal declaration?

int arr[3] = {1, 2, 3, 4};

int arr[ ] = {5, 6, 7};

int arr[4] = {1, 2};

int arr[5];

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?