Buddhanagar, Kathmandu
First Mid Term Exam - 2077
Subject: Computer Science
Class: X (Ten) Full Marks: 20
Pass Marks: 08
Time: 50 Min
Class: X (Ten) Full Marks: 20
Pass Marks: 08
- Answer the following questions. [10*1=10]
- What are arguments and parameters.
- Why QBASIC is called modular programming?
- What are global and local variable.
- List the two types of procedures.
- Differentiate between Sub and Function Procedure.
- Differentiate between QBASIC and C language.
- Write down the functions of printf and scanf.
- List unary operator with their meaning and example.
- List three types of logical operator used in C Language.
- Convert following algebraic expression into C expression.
- a x b – c
- (a + b) (c + d)
- Write C program for the following: [5*2=10]
- To input number of days and convert it into years, months and days.
- To input selling price and cost price and calculate whether there is profit or loss.
- To display whether the supplied number is positive,negative or zero.
- To display the middle number among three different numbers.
- To display 999,728,511 ... up to 10th terms
The End