10th Class Computer Science Chapter 05 MCQs with Answers

Welcome to the 10th Class Computer Science Chapter 05 MCQs Online Test. We are presenting you with top MCQ questions from the 10th Class Computer Science Chapter Subprogram and File Handling.

We want to tell you that you can find all the 10th Class Computer Science Chapter 05 MCQs online tests on our website. These online tests are great for learning and as well as for scoring maximum marks in your matriculation Exams. We are making these Class 10 Computer Science MCQs online tests for those who want full marks in their exams. Attempt all these Grade 10 Computer Science Online Multiple Choice Questions MCQs before going for the exam and it will be beneficial for you! These online tests contain all the important multiple choice questions in the important topics of the SSC Part-II Computer Science Chapter 05 Subprogram and File Handling

10th Class Computer Science Chapter 05 MCQs with Answers

Youth For Pakistan has provided an excellent opportunity for the students of the 10th class to prepare their Computer Science Chapter 05 Subprogram and File Handling online with MCQs test.

This is a free platform for students to prepare for Computer Science Exams for Class 10 to get the best accomplishments in annual exams. 10th class Students can analyze themself by attempting this online test system as many times as they want until they find themself fully prepared. 10th Class Computer Science Chapters include Ch#1 Problem Solving, Ch#2 Data Types, Assignment and I/O Statements, Ch#3 Control Structure, Ch#4 Arrays, Ch#5 Subprogram and File Handling, Ch#6 Graphics in Basic and Ch#7 Microsoft Word

MCQs Class 10 Computer Science with Answers

The purpose of these online MCQs tests is to help you evaluate your 10th Class Computer Science Chapter 05 MCQs. These Multiple Choice Questions (MCQs) will prepare you for your academic success in the 10th Class Exams.

What is Subprogram and File Handling?

A large program is divided into smaller, manageable parts called subprograms or modules. File Handling is a computer that can purpose a large amount of data. The process of writing and reading data into the computer system is known as file handling

Chapter No: 5 Subprogram and File Handling

1 A structured program is written in

(a) Gates

(b) Modules

(c) OR gate

(d) Flow Chart

Answer
(b) Modules

2 Which type of programs are difficult to debugs?

(a) Structured

(b) Unstructured

(c) OS

(d) Application

Answer
(b) Unstructured

3 The DEF statement in BASIC can be used to define a name of a

(a) built in library function

(b) Single line statement function

(c) Subroutine

(d)All

Answer
(b) Single line statement function

4 In structured or modular programming a large program is divided into smaller, manageable parts called

(a) Sub- programs

(b) Modules

(c) Files

(d) Both a & b

Answer
(d) Both a & b

5 How many types of subprograms in BASIC?

(a) 2

(b) 3

(c) 4

(d) None

Answer
(a) 2

6 In the function ABS ( -2.2) becomes

(a) 2.2

(b) -2.2

(c) 2

(d) None

Answer
(a) 2.2

7 General format of the function LEFT $

(a) LEFT $ (A, &, n)

(b) LEFT$( A$ )

(c) LEFT $( $, n)

(d) LEFT$(A$,n)

Answer
(d) LEFT$(A$,n)

8 A function is used to calculate and return

(a) 4 values

(b) 3 values

(c) 2 values

(d) 1 value

Answer
(d) 1 value

9 To extract any portion of a string in BASIC one would be

(a) MID $

(b) RIGHT$

(c) LEFT$ 0 1

(d) STRING$

Answer
(b) RIGHT$

10 A piece of data on which the function has to operate is called

(a) Data file

(b) Input data

(c) Argument

(d) Return value

Answer
(c) Argument

11 Built in functions are also known as

(a) Standard

(b) Library

(c) Intrinsic

(d) All

Answer
(d) All

12 Instructions that are written once in the main program or independently and can be called more than one time in the main program is called

(a) Control statement

(b) Loop

(c) Subprogram

(d) None

Answer
(c) Subprogram

13 Output of CHR$(65)

(a) A

(b) B

(c) C

(d) D

Answer
(a) A

14 Which of the following functions are written by the language developers?

(a) User defined

(b) Library

(c) Both a & b

(d) None

Answer
(b) Library

15 BASIC library functions are divided into

(a) 4 types

(b) 3 types

(c) 2 types

(d) 1 types

Answer
(c) 2 types

16 Which BASIC function is used for generating numbers which are used in simulation problems?

(a) INT

(b) RND

(c) ABS

(d) SGN

Answer
(b) RND

17 Which of the following BASIC function returns the absolute value of given number or expression?
(a) FIX

(b) SQR

(c) ABS

(d) ABC

Answer
(c) ABS

18 Which of the following BASIC function returns the integral part of real number or expression. It drops the decimal point and number to the right of it?

(a) FIX

(b) SQR

(c) ABS

(d) TAB

Answer
(a) FIX

19 Which of the following BASIC function returns the square root of any positive no.?

(a) FIX

(b) INT

(c) SQR

(d) ABS

Answer
(c) SQR

20 Output of the print VAL (“240- F Johar Town”)

(a) F

(b) 240

(c) 240-F Johar Town

(d) None

Answer
(b) 240

21 A file is activate with one of the following statement before its use

(a) WRITE

(b) READ

(c) PRINT

(d) None

Answer
(d) None

22 Which function skips x spaces in a print statement?

(a) INT

(b) FIX

(c) SPC

(d) RND

Answer
(c) SPC

23 The solution to simplify the long and complex program is?

(a) GOTO

(b) Spaghetti code

(c) Sub program

(d) IF… THEN

Answer
(c) Sub program

24 Module is a

(a) Internal directory

(b) Complex program

(c) Complete a single value

(d) Small part

Answer
(d) Small part

25 Library functions in BASIC are

(a) Generally supplied by the computer manufacturer

(b) Developed by the programmer

(c) Supplied as part of the BASIC system

(d) In built in every computer system

Answer
(b) Developed by the programmer

26 When RETURN is encountered in a BASIC subroutine, the program returns to the statement?

(a) Immediately following GOSUB

(b) Immediately preceding GOSUB

(c) at the beginning of the subroutine

(d) at the beginning of the main program

Answer
(b) Immediately preceding GOSUB

27 Which of the following BASIC statement is used to define your own function?

(a) DEF FN

(b) USER FN

(c) DEF

(d) FN

Answer
(a) DEF FN

28 The output of a function INT (-5.7 ) is

(a) -5

(b)-4

(c) -6

(d) 5

Answer
(a) -5

29 Which of the following BASIC function is used to print or insert the blank spaces?

(a) LEFT $

(b) RIGHT $

(c) STR $

(d) SPACE $

Answer
(d) SPACE $

30 Which of the following functions is used to return the trigonometric ratio called sin of angle X?

(a) ANGLE ().

(b) SINE ()

(c) COS ()

(d) SIN()

Answer
(d) SIN()

31 PRINT SQR ( 4 ) would be

(a) 4

(b)-2

(c) 2

(d) 16

Answer
(c) 2

32 LEFT $ (“KIPS”, 3 ) =

(a) IPS

(b) kip

(c) KI

(d) KIP

Answer
(d) KIP

33 Which of the following statement must be placed at the end of the main program?

(a) END

(b) STOP

(c) RETURN

(d) CLOSE

Answer
(a) END

34 Which of the following consists of alphabets, digits and special characters?

(a) Record

(b) Field

(c) Character

(d) File

Answer
(d) File

35 Which of the following is a group of related characters to have a unit of information?

(a) Record

(b) Data Fields

(c) Character

(d) File

Answer
(a) Record

36 Which of the following is a collection of fields to provide information about an entity in a file?

(a) Record

(b) Field

(c) Character

(d) File

Answer
(a) Record

37 Types of files in BASIC program

(a) 5

(b) 4

(c) 3

(d) 2

Answer
(d) 2

38 OPEN statement

(a) Prepare a file for processing

(b) Print the file

(c) Copy the file

(d) Delete the file

Answer
(a) Prepare a file for processing

39 CHR$ can get the ASCII

(a) 255 values

(b) 250 values

(c) 256 values

(d) 254 values

Answer
(c) 256 values

40 Types of file access methods in BASIC

(a) 2

(b) 3

(c) 4

(d) 5

Answer
(a) 2

41 The extension of program file is

(a) .DAT

(b) .EXE

(c).BAS

(d).COM

Answer
(c).BAS

42 The extension of data file is

(a) .DAT

(b) .EXE

(c).BAS

(d).COM

Answer
(a) .DAT

43 Which of the following statement is used to print values of a file in file handling?

(a) INPUT

(b) READ

(c) OPEN

(d) WRITE

Answer
(d) WRITE

44 To read information from a file, it must be opened for

(a) Input Mode

(b) Output Mode

(c) Append Mode

(d) Both a & b

Answer
(b) Output Mode

45 Which of the following is a reserved section of primary storage used for storing temporary data being written to or read from a file?

(a) Register

(b) Buffer

(c) Both a & b

(d) None

Answer
(b) Buffer

46 In BASIC you can use a file in

(a) 5 Modes I I

(b) 4 Modes II

(c) 3 Modes 1

(d) 2 Modes

Answer
(c) 3 Modes 1

47 Which of the following mode means that the data will be added to the end of an existing file on disk?

(a) INPUT

(b) OUTPUT

(c) APPEND

(d) All

Answer
(c) APPEND

48 Which of the following mode means that the program will eventually write data to the file?

(a) INPUT

(b) OUTPUT

(c) APPEND

(d) All

Answer
(b) OUTPUT

49 Which of the following BASIC statement disconnects the connection between the data file and the BASIC program?

(a) CLOSE

(b) CREATE

(c) OPEN

(d) WRITE

Answer
(a) CLOSE

50 A file is activated with one of the following statement before its use

(a) WRITE

(b) READ

(c) PRINT

(d) None

Answer
(d) None

Leave a Comment