Arrays in CQuiz

Quiz
•
Information Technology (IT)
•
1st Grade
•
Hard
Panha Panha
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the general form of a single-dimension array declaration?
type name[size];
array name[type];
name[size] type;
size[type] name;
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the index of the first element in an array?
2
-1
0
1
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How many elements can a single-dimension array hold?
Only one
From one to several
Exactly ten
Unlimited
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the total bytes calculation for an integer array of size 5?
15
10
25
20
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the program that prints array A with elements (-1, 33, 26, -5, 9)?
1 2 3 4 5
-1 0 33 26 9
0 1 2 3 4
-1 33 26 -5 9
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the correct syntax to declare an array of floats with 8 elements?
float a(8);
a[8] float;
float[8] a;
float a[8];
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the sorting program for the array {4.3, -2.2, 33, 51, -39.5, 2.9, 6.5, 78}?
-39.5 -2.2 2.9 4.3 6.5 33 51 78
4.3 33 51 78 -39.5 -2.2 2.9 6.5
78 51 33 4.3 2.9 -2.2 -39.5
33 51 78 4.3 2.9 -2.2 -39.5 6.5
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Aula07 - Matrizes

Quiz
•
University
15 questions
Understanding Loops in C Programming

Quiz
•
1st Grade - University
10 questions
Quis code blocks

Quiz
•
11th Grade
13 questions
_06_03__Réalisation d'un site web dynamique avec PHP

Quiz
•
6th Grade
10 questions
Lego Spike & Python - Challenge 3 Quiz

Quiz
•
6th - 8th Grade
10 questions
Abstracciones procedimentales

Quiz
•
University
10 questions
Asesmen Algoritma dan Pemogramanan

Quiz
•
11th Grade
8 questions
GO! Quizz Zeriusz Day 9

Quiz
•
10th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade