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

Start your preparation for Punjab 12th Class Computer Chapter 5 Arrays and Strings Mcqs Test Online. This online test contains 20 MCQs and you have 20 Minutes to complete it. The total marks for this test are 40. This test is valid for students of All Punjab Boards (Lahore, Gujranwala, Multan, etc.) following the PCTB Syllabus. Read the questions carefully and select the correct option below to see your result.

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

 

Question 1 of 20

Computer Science

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

Question 1 of 20

Question 2 of 20

2. 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 2 of 20

Question 3 of 20

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

Question 3 of 20

Question 4 of 20

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

Question 4 of 20

Question 5 of 20

5. 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 5 of 20

Question 6 of 20

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

Question 6 of 20

Question 7 of 20

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

1.
2.
3.
4.

Question 7 of 20

Question 8 of 20

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

Question 8 of 20

Question 9 of 20

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

1.
2.
3.
4.

Question 9 of 20

Question 10 of 20

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

Question 10 of 20

Question 11 of 20

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

Question 11 of 20

Question 12 of 20

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

Question 12 of 20

Question 13 of 20

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

Question 13 of 20

Question 14 of 20

14. 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 14 of 20

Question 15 of 20

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

Question 15 of 20

Question 16 of 20

16. 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 16 of 20

Question 17 of 20

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

Question 17 of 20

Question 18 of 20

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

Question 18 of 20

Question 19 of 20

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

Question 19 of 20

Question 20 of 20

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

Question 20 of 20


 

Guide for Punjab Board Students

Students of BISE Lahore, Gujranwala, Multan, and other Punjab boards must follow the SLO based pattern.

Top Scoring Tips for Punjab:

  • Textbook Reading: The paper is 100% derived from PCTB books. Do not rely only on keybooks.
  • Objective Paper (20%): Practice these online MCQs repeatedly as they are taken from 5-Year Past Papers.
  • Bubble Sheet: Ensure you know how to fill the OMR sheet correctly.

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