CP-UNIT5

CP-UNIT5

12th Grade

11 Qs

quiz-placeholder

Similar activities

Segunda Evaluación de Matemática de 6* grado

Segunda Evaluación de Matemática de 6* grado

KG - University

10 Qs

Evaluasi Pertemuan 1

Evaluasi Pertemuan 1

10th - 12th Grade

10 Qs

ICS - Bellwork - 8/25/25 - 8/29/25

ICS - Bellwork - 8/25/25 - 8/29/25

3rd Grade - University

12 Qs

Barcelona cuanto sabes

Barcelona cuanto sabes

1st - 12th Grade

15 Qs

zima

zima

2nd Grade - Professional Development

10 Qs

9.6 & 9.7 Leasing & Renting a Car

9.6 & 9.7 Leasing & Renting a Car

12th Grade

16 Qs

SCIENCE!

SCIENCE!

KG - University

10 Qs

Computer Ethics

Computer Ethics

9th - 12th Grade

11 Qs

CP-UNIT5

CP-UNIT5

Assessment

Quiz

Other

12th Grade

Medium

Created by

K vijina

Used 1+ times

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output? int x, arr[5] = {1}; for (x = 0; x < 5; x++) printf("%d ", arr[x]);
1 followed by four garbage values
0 0 0 0 0
1 1 1 1 1
1 0 0 0 0

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

char name[9]="Ramkumar"; What is stored in name[7] and name[8]?
'a' and ’r’
'r' and ’\0’
’\n’
'r' and garbege value

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How are the array of elements always stored in the memory locations?
continuous
contiguous
unceasing
unbroken

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to reverse the given string?
strrev()
strev()
streverse()
strreverse()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Array and Structure are group of elements. But they differ from each other by one of the reasons listed. Choose the right option
Array has hetrogenous group of elements, whereas structure has homogenous group of elements.
Structure has hetrogenous group of elements, whereas Array has homogenous group of elements.
Array and Structure differ by their name only.
There is no significant difference

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the advantages of arrays?
Objects of mixed data types can be stored
Elements in an array cannot be sorted
Index of first element of an array is 1
Easier to store elements of same data type

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What values will be stored in the elements of a static array, if it is not initialized?
0
an undetermined value
a floating point value
\0

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?