ICS part II Computer Science (Chap # 8, 9, 10, 11, 12, 13)

ICS part II Computer Science (Chap # 8, 9, 10, 11, 12, 13)

PAK FOUNDATION ACADEMY
ICS part II Computer (Chap # 8, 9, 10, 11, 12, 13)
Total Time: 2hr 30 min                                                                                                Total marks: 75
Objective
Time: 20 min                                                                                                                       Marks: 15
Q1.  MCQs                                                                                                 
1.      The extension of C source program is :
a) .b                 b) .c                 c) .obj              d) .exe
2.      A function does not return anything has return type:
a) nothing                    b) float            c) void              d) null
3.      In C, the maximum length of variable name is:
a) 25 character                       b) 255 character                     c) 55 character                        d) 31 character
4.      Which of the following operator has the lowest precedence?
a) !                   b) +                              c) = =               d) =
5.      Which function is used to input data in C-program?          
a)      Pow()                     b) sqrt()                                   c) printf()                                 d) scanf ()
6.      The header file that contains inputs and output functions is                                
a) math.h         b) graphic.h     c) stdio.h          d) conio.h
7.      The number of bytes used by char data type in C is:                                                                      
a) 2                  b) 1      c) 12                d) 16
8.      Which operator in C is called ternary operator                  
a) if                  b) ++                c) ?       d) ()
9.      How many times in the test expression of a switch statement evaluated
a) 0                    b) 1                   c) 3                  d) 2
10.  In which loop the condition comes after the body of the loop
a) while loop               b) do while                  c) for loop                    d) b&c
11.  This statement causes a loop to terminate early
a) break           b) terminate                c) exit             d) a & b
12.  If you want a user to enter exactly twenty values which loop would be the best to use
a) while                       b) do while                  c) for                d) infinite
13.  There are __________ expressions in for loop statement
a) 2                              b) 3                  c) 4                  d) 5
14.  A built in function
a) Can’t be redefined              b) can be redefined                 c) cannot be return                 d) none
15.  A value that can be sent to the function is known as:
a) Returned value       b) indicator                 c) argument                d) automatic variable
Subjective
Time: 2hr 10min                                                                                                                 Marks: 60
SHORT QUESTIONS
Q2.  Attempt any six questions [2*6=12]                                                                
1.      Define program?                    
2.      What is programming language?
3.      What is assembly language?
4.      What do you mean by delimiters? /define delimeters.
5.      What is an identifier? Give some example of identifier.
6.      How many types of identifiers are used in C language?
7.      What is keyword? Give some example.(list any four keyword)        
8.      What is variable? Why is it used in program?
9.      Declare two integer variable x & y in one declaration statement.                
Q3.  Attempt any six questions [2*6=12]                                                                
1.      Why is C known as strongly typed language?                       
2.      Differentiate b/w declaring & defining a variable?
3.      Define Range & precision.
4.      List some important functions of output.
5.      What is format specifier?
6.      Define escape sequence with example.
7.      What is the use of scanf() function? Write its syntax.
8.      How instructions are executed in sequence structure?        
9.      Define nested if statement?
Q4.  Attempt any six questions [2*6=12]                                                                
1.      Why break statement is used in switch structure?               
2.      What is conditional operator? /define conditional operator?
3.      Define infinite loop?
4.      Draw the flowchart of while loop?
5.      Briefly explain “for” statement/ Define for loop/ Define counter controlled loop?
6.      What is sentinel control loop?
7.      What is modular programing?
8.      What is meant by function declaration/function prototype?           
9.      What is life time of global variable?
LONG QUESTIONS
Q5.  Attempt any three questions [8*3=24]                                                           
1.      What necessary steps are taken to prepare a C program for execution? Explain with diagram.
2.      Describe different language processors & their uses? Discuss different types of language processors.
3.      What is if else if statement or if statement with multiple alternatives? Explain its working?         
4.      Write a program that display first five numbers & their square/cube using loop.

5.      Write a program that display first ten odd even numbers using loop.