Uploaded by Hâmâd Bâlôçh

10TH CLASS COMPUTER SCIENCE GUESS PAPER

advertisement
ACCELERATED LEARNING PROGRAMME (ALP)
LAHORE, SAHIWAL, GUJRANWALA, FAISALABAD, MULTAN,
BHAWALPUR
RAWALPINDI, DERA GHAZI KHAN, AZAD KAHSMIR, SARGODHA
10th CLASS COMPUTER SCIENCE GUESS PAPERS
CHAPTER NO.1:
PROBLEM SOLVING
MULTIPLE CHOICE:
1. BASIC is a:
Most
Important
a) High Level Language
b) Low Level Language
c) Assembly language
d) Machine Language
2. Which of the following tasks are performed by most of the algorithms.
a) Input
b) Output
c) Processing
d) All of these
3. Typographical errors in BASIC statements are.
Most Important
a) Runtime errors
b) Logical errors
c) Syntax errors
d) Execution errors
4. Division by zero is.
Most
Important
a) Syntax error
b) Logical error
c) Runtime error
d) Not an error
SHORT QUESTIONS:
1. List steps that should be followed to solve a problem.
Most Important
2. What do you mean by syntax of a programming language? Is it necessary
Important
To know the syntax for solving a problem on computer.
3. Differentiate between Runtime errors and Logical Error
Most Important
4. Write purpose of the following flowchart symbols.(Page-12) Text Book
Most Important
5. Compare flowchart and algorithm.
Most
Important
LONG QUESTIONS:
1. What is debugging? How many types of errors can occur in a program
Most Important
Describe briefly.
2. Define algorithm. Write a step-form algorithm for making a telephone
Most Important
Call to friend
3. Draw a flowchart to find the larger of three number
Most Important
CHAPTER NO. 2
DATA TYPES, ASSIGNMENT AND INPUT/OUPTU STATEMENTS.
MULTIPLE CHOICE:
1. The maximum length of a variable name in GW-BASIC is.
Most Important
a) 31
b) 32
c) 40
d) 45
2. Which of the following is a short key to run a program in GW-BASIC :
Most Important
a) F4
b) F3
c) F2
d) F1
3. When a floating-point value is converted to an integer, the fractional part.
a) Truncated
b) Rounded off
c) May be truncated or rounded
d) Conversion is impossible.
4. What of the following statement temporarily stops the execution of a
program? Most Important
a) BREAK
b) END
c) PAUSE
d) STOP
SHORT QUESTIONS:
1. What does IDE stand for? Discuss features of GW-BASIC IDE.
Most Important
2. Briefly describe the structure of a BASIC program.
Most
Important
3. Differentiate variable and constant.
Most
Important
LONG QUESTIONS:
1. In how many modes, GW-BSIC can operate? Discuss briefly.
Most Important
2. Describe Rules of naming variable in GW-BASIC
Most
Important
3. What are type declaration characters? Explain their uses with examples
Most Important
4. Write a program to read ten value specified to DATA statement, and display
the sum of these values on the screen.
CHAPTER NO. 3
CONTROL STRUCTURE
MULTIPLE CHOCE:
1. Which of the following is not a logical operator
Most
Important
a) AND
b) OR
c) NETTHER
d) NOT
2. Which of the following cannot be used to exit from an error handling
routine.
a) RESUME
b) RESUME NEXT
c) END
d) STOP
3. Which one is a multiple branching statement?
Most
Important
a) IF………………………. ELSE
b) GOTO
c) ON…………….GOTO
d) ON ERROR GOTO line number.
4. If the integer value of the numeric expression following the keyword ON, in
ON………. GOTO Statement, is greater than 255, which type of error
occurs.
a) Syntax error
b) Logical error
c) Runtime error
d) It’s not an error
5. FOR……………..NEXT is used to implement.
Most
Important
a) Iteration
b) Selection
c) Sequence
d) All of the above
SHORT QUESTIONS:
1. Difference between sequence structure and selection structure.
Most
Important
2. Define control structure.
Most
Important
3. Explain the purpose of GOTO statement and write down its syntax.
OR
Difference between GOTO ………………….ONGOTO statement. Most
Important
4. How does IF-THEN-ELSE statement work in BASIC?
Most
Important
5. Describe the use of loop.
Most Important
6. Give the syntax of FOR……………NEXT loop.
Most
Important
7. Give the syntax of WHILE…………….. WEND loop.
Most
Important
8. What is the purpose of ON ERROR GOTO statement?
Most
Important
9. What is selection structure?
Most
Important
LONG QUESTIONS:
1. Difference between GOTO…………………………. ONGOTO.
Most Important
2. What does it mean by transfer of control Describe conditional and
Most Important
Unconditional transfer of control in Basic.
3. Define FOR…………………. NEXT Loop explain in detail.
Most Important
4. Define control Structure. How many control structure are available in
Most Important
In Basic. Briefly in detail.
5. What is loop and types of loop?
Most
Important
CHAPTER NO. 4
ARRAYS
MULTIPLE CHOICE:
1. Dimension statement uses the keyword
Important
a) DMS
b) DS
c) DIM
d) DM
2. Maximum number of elements per dimension is.
Important
a) 10
b) 255
c) 32767
d) None of them
Most
Most
SHORT QUESTIONS:
1. What is meant by DIM statement?
Most
Important
2. Describe the use of subscript variable in array.
Most
Important
3. How would you fill and Print the array?
4. Describe about printing two dimensional array with the help of an example.
5. Differentiate between simple and subscript variable.
Most
Important
6. Write a program to print a list of odd number from the given no.
6,42,2,77,32,9,21,22,8,45,15,46
7. Write a program to sort the list of 20 names in descending order.
Most
Important
LONG QUESTIONS:
NIL
CHAPTER NO. 5:
SUBPROGRAM AND FILE HANDLING
MULTIPLE CHOICE:
1. LEFT$ (‘Pakistan”,3) =
Most
Important
a) ‘PAK’
b) ‘Pak’
c) ‘Pa’
d) ‘kis’
2. The……….. Function is used to convert ASCII codes to its character
equivalent. Most Important
a) CHAR$( )
b) CHR ( )
c) CHAR.
d) CHR$ ( )
3. TAN (X) =
Most Important
a) SIN (x) / COT (x)
b) COT (x)
c) COS(x)/ SIN (X)
d) SIN (x)/ COS(x)
SHORT QUESTIONS:
1. What is the difference between User – defined function and built –in
functions. Most Important
2. Differentiate between Sub – Routine and Function.
Most
Important
3. Describe the use of GOSUB…………… RETURN statement.
Most Important
4. Differentiate between data file and program file
Most Important
5. Write a program to get full name of any person and return the number of
characters in his first name.
LONG QUESTIONS:
NIL
CHAPTER NO. 6
GRAPHICS IN BASIC.
MULTIPLE CHOICE:
1. The number background colors available in BASIC is.
Most
Important
2.
3.
4.
5.
6.
a) 4
b) 8
c) 12
d) 16
Normally the computer monitor screen is in.
important
a) Graphic mode
b) Text mode
c) Both a and b
d) None of them
A line can be draw with the following statement.
Important
a) LINE
b) DRAW
c) Both a and b
d) None of them
The set of colors RED, GREEN and Brown is given in.
Important
a) Palette 0
b) Palette 1
c) Both a and b
d) None of them
The CIRCLE statement can also be used to draw a/an
Important
a) Line
b) Box
c) Ellipse
d) Pset
In medium resolution screen mode colors for foreground are.
Important
a) 1
b) 2
c) 4
d) 16
SHORT QUESTIONS:
1. Define Graphic. Give the names of graphic modes.
Important
Most
Most
Most
Most
Most
Most
2. Write the syntax of CIRCLE statement. Also give example for Explanation.
Most Important
3. Compare and diffentiate LINE and DRAW statements.
Most Important
4. Write a program to draw a star.
Most
Important
5. Write a program to produce five concentric circles of different radii.
Most Important
LONG QUESTIONS:
1. Define Circle Statement. Also explain its syntax with the help of an
example. Most Important
2. What is SCREEN statement? Give its syntax. And give some its important
Most Important
modes with explanation.
3. Explain the Draw statement Explain with syntax and example
Most Important
4. Explain PSET and PALETTTE in GW.BASIC
Most Important
Related documents
Download