Search Header Logo

Computer Programming 2 Quiz

Authored by Monica Tolentino

Other

University

Used 2+ times

Computer Programming 2 Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

21 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

It is a collection of data that holds fixed number of values of same type.

Array

Functions

Pointers

Program

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How to declare an array in C?

data_type array_name(array_size)

data_type array_name{array_size}

data_type array_name[array_size]

data_type array_name|array_size|

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What index does number 6 in this array?

int mark[5] = {9,4,6,3,5};

4

2

5

1

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output for this program?

int evenNumber[6] = {2, 4, 6, 8, 10, 12};

printf("%d", evenNumber[3]);

10

12

6

8

5.

MULTIPLE SELECT QUESTION

1 min • 3 pts

There are three types of array, what are those? Select 3 answers.

One-dimensional array

Five dimensional array

Two-dimensional array

Zero-dimensional array

Multidimensional array

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What do you call by the number 3 inside the square brackets?

int number[3] = {0, 5, 1};

index

size of the array

size of the variable

number

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

It is a block of code that performs a specific task, it will only run when it is called.

Array

Functions

Pointers

Program

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?