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

Computer Programming 2 Quiz

Quiz
•
Other
•
University
•
Medium

Monica Tolentino
Used 2+ times
FREE Resource
21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
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
Similar Resources on Wayground
20 questions
Understanding Functions in C

Quiz
•
University
20 questions
Java programming

Quiz
•
University
20 questions
UTS - Struktur Data

Quiz
•
University
25 questions
UNIT - 4 B Compiler Optimization Quiz

Quiz
•
University
25 questions
Introduction to Python and Data Analytics Basics

Quiz
•
University
20 questions
Quiz PL/SQL 21Juni2022

Quiz
•
University
20 questions
Kelas PHP

Quiz
•
University
25 questions
C++ Basics

Quiz
•
University
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade