Computer Programming 2 Quiz

Computer Programming 2 Quiz

University

21 Qs

quiz-placeholder

Similar activities

HRM

HRM

University

20 Qs

Minerals and Their Importance Quiz

Minerals and Their Importance Quiz

University

20 Qs

PLANTS AND THEIR ENVIRONMENT

PLANTS AND THEIR ENVIRONMENT

University

20 Qs

Exploring Data Structures and Analysis

Exploring Data Structures and Analysis

University

20 Qs

Microsoft excel quizes

Microsoft excel quizes

10th Grade - University

16 Qs

Week 3 Pass

Week 3 Pass

University

18 Qs

SQL Data Manipulation

SQL Data Manipulation

University

17 Qs

Algoritma Sorting

Algoritma Sorting

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?