MCQsFoundry.com brings to you 500+ 10th Standard Computer Science Mcqs which are new and latest. These Mcqs are never published on internet so far. For full information about all PPSC / FPSC / CSS / PMS latest jobs visit theiteducation.com
Chapter No: 5
Subprogram and File Handling
Encircle the most appropriate answer among the following options
1 A structured program is written in
(c) OR gate
(d) Flow Chart
2 Which type of programs are difficult to debugs?
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
4 In structured or modular programming a large program is divided into smaller, manageable parts called
(a) Sub- programs
(d) Both a & b
5 How many types of subprograms in BASIC?
6 In the function ABS ( -2.2) becomes
7 General format of the function LEFT $
(a) LEFT $ (A, &, n)
(b) LEFT$( A$ )
(c) LEFT $( $, n)
8 A function is used to calculate and return
(a) 4 values
(b) 3 values
(c) 2 values
(d) 1 value
9 To extract any portion of a string in BASIC one would be
(a) MID $
(c) LEFT$ 0 1
10 A piece of data on which the function has to operate is called
(a) Data file
(b) Input data
(d) Return value
11 Built in functions are also known as
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
13 Output of CHR$(65)
14 Which of the following functions are written by the language developers?
(a) User defined
(c) Both a & b
15 BASIC library functions are divided into
(a) 4 types
(b) 3 types
(c) 2 types
(d) 1 types
16 Which BASIC function is used for generating numbers which are used in simulation problems?
17 Which of the following BASIC function returns the absolute value of given number or expression?
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?
19 Which of the following BASIC function returns the square root of any positive no.?
20 Output of the print VAL (“240- F Johar Town”)
(c) 240-F Johar Town
21 A file is activate with one of the following statement before its use
22 Which function skips x spaces in a print statement?
23 The solution to simplify the long and complex program is?
(b) Spaghetti code
(c) Sub program
(d) IF… THEN
24 Module is a
(a) Internal directory
(b) Complex program
(c) Complete a single value
(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
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
27 Which of the following BASIC statement is used to define your own function?
(a) DEF FN
(b) USER FN
28 The output of a function INT (-5.7 ) is
29 Which of the following BASIC function is used to print or insert the blank spaces?
(a) LEFT $
(b) RIGHT $
(c) STR $
(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 ()
31 PRINT SQR ( 4 ) would be
32 LEFT $ (“KIPS”, 3 ) =
33 Which of the following statement must be placed at the end of the main program?
34 Which of the following consists of alphabets, digits and special characters?
35 Which of the following is a group of related characters to have a unit of information?
(b) Data Fields
36 Which of the following is a collection of fields to provide information about an entity in a file?
37 Types of files in BASIC program
38 OPEN statement
(a) Prepare a file for processing
(b) Print the file
(c) Copy the file
(d) Delete the file
39 CHR$ can get the ASCII
(a) 255 values
(b) 250 values
(c) 256 values
(d) 254 values
40 Types of file access methods in BASIC
41 The extension of program file is
42 The extension of data file is
43 Which of the following statement is used to print values of a file in file handling?
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
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?
(c) Both a & b
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
47 Which of the following mode means that the data will be added to the end of an existing file on disk?
48 Which of the following mode means that the program will eventually write data to the file?
49 Which of the following BASIC statement disconnects the connection between the data file and the BASIC program?
50 A file is activated with one of the following statement before its use