Computer Programming 2 Quiz

Computer Programming 2 Quiz

University

21 Qs

quiz-placeholder

Similar activities

Quiz for E415 batch

Quiz for E415 batch

University

20 Qs

Virtual Instrumentation

Virtual Instrumentation

University

20 Qs

Review in Programming

Review in Programming

University

20 Qs

Techwiz - ICL2.0 Quiz

Techwiz - ICL2.0 Quiz

University

20 Qs

C Programming

C Programming

12th Grade - University

25 Qs

Python 3

Python 3

University

21 Qs

BOCA

BOCA

University

20 Qs

QUIZERIA

QUIZERIA

University

20 Qs

Computer Programming 2 Quiz

Computer Programming 2 Quiz

Assessment

Quiz

Other

University

Medium

Created by

Monica Tolentino

Used 2+ times

FREE Resource

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

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?