Punjab 12th Class Computer Chapter 5 Arrays and Strings Mcqs Test Online
Questions 20
Total Marks 40
Time 20 Mins

Punjab 12th Class Computer Chapter 5 Arrays and Strings Mcqs Test Online

Punjab 12th Class Computer Chapter 5 Arrays and Strings Mcqs Test Online

 

Question 1 of 20

Computer Science

1. There are many problems in which the data being processed can be naturally organized as a ___________.
1.
2.
3.
4.

Question 1 of 20

Question 2 of 20

2. If the matrix has the same number of rows and columns it is called a:
1.
2.
3.
4.

Question 2 of 20

Question 3 of 20

3. The last array element will have subscript one less than the _________ of the array.
1.
2.
3.
4.

Question 3 of 20

Question 4 of 20

4. What is the length of following array “int a[] = {4, 20, 45, 24, 56}”.
1.
2.
3.
4.

Question 4 of 20

Question 5 of 20

5. The basic idea behind and exchange sort algorithm is to continually _________ adjacent pairs of array elements.
1.
2.
3.
4.

Question 5 of 20

Question 6 of 20

6. You refer to the individual item in an array by using an integer that is known as __________.

1.
2.
3.
4.

Question 6 of 20

Question 7 of 20

7. A _________ array requires two separate subscript values to access an element.
1.
2.
3.
4.

Question 7 of 20

Question 8 of 20

8. An ________ can store several data items of the same type.
1.
2.
3.
4.

Question 8 of 20

Question 9 of 20

9. If the size of the array is not supplied, the compiler will _________ the number of items in the initialization list.
1.
2.
3.
4.

Question 9 of 20

Question 10 of 20

10. { } is known as
1.
2.
3.
4.

Question 10 of 20

Question 11 of 20

11. If the number of values supplied are greater than the actual number of items then compiler will give an _________ message.
1.
2.
3.
4.

Question 11 of 20

Question 12 of 20

12. If the marks of ten students are to be processed in a program we might use an array to ________ them.
1.
2.
3.
4.

Question 12 of 20

Question 13 of 20

13. To refer to an individual element of the array, we use ________.
1.
2.
3.
4.

Question 13 of 20

Question 14 of 20

14. In C language, a comment begins with the _________ slash.

1.
2.
3.
4.

Question 14 of 20

Question 15 of 20

15. __________ is a sequence of characters used fo storing and processing words, names, addresses etc.
1.
2.
3.
4.

Question 15 of 20

Question 16 of 20

16. In C all the array elements are number starting at __________.
1.
2.
3.
4.

Question 16 of 20

Question 17 of 20

17. C language uses the library function __________ to read a string from the keyboard and store it in a string variable.
1.
2.
3.
4.

Question 17 of 20

Question 18 of 20

18. The assignment statement marks[4] = 83; stores the value in the ________ location of the array.
1.
2.
3.
4.

Question 18 of 20

Question 19 of 20

19. The old fashioned comment style is useful for __________ comments.
1.
2.
3.
4.

Question 19 of 20

Question 20 of 20

20. Simple data types present _________ values.
1.
2.
3.
4.

Question 20 of 20


 

Prepare Subjective:
Read Short Questions
Test By Class
Test By Subject

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button
error: