COMPUTER SCIENCE 2013 PART II
FEDERAL BOARD
Circle the correct option. (15)
a) Von-Neumann
b) Al-Khuwarizmi
c) Dennis Ritchie
d) Charles Babbage
a) Linker
b) Loader
c) Compiler
d) Interpreter
- Mistakes that cause a running program to produce incorrect results are called
a) Syntax error
b) Logical error
c) Program error
d) None
- Order of precedence determines which operator…..
a) is most important
b) is used first
c) is faster
d) operator on the largest number
- Which of the following has the highest precedence?
a) +
b) ++
c) >=
d) -
- Comments are used to increase the of the program.
a) Visibility
b) Beauty
c) Readability
d) Complexity
- Which address operator indicates the address of a variable?
a) %
b) \a
c) #
d) *
- A while loop is more appropriate than a for loop when
a) The termination condition occurs unexpectedly
b) The body of the loop will be executed at least once
c) The program will be executed at least once
d) The number of times the loop is executed is not known before the loop is executed
- If v = 6 and y = 4 what will be the output of the following expression x>y? x+J.: x*y;
a) 2
b) 24
c) 10
d) None
- What does a compound condition use to join two conditions?
a) Relational operator
b) Logical operator
c) Relational results
d) Logical results
- Function prototype for built-in functions are specified
a) image file
b) Source file
c) Object file
d) Header file
- The scope of a variable refers to
a) Name
b) Life time
c) Data type
d) None
- On successfully closing a file, the fcloseo returns....
a) Null
b) ZERO
c) One
d) File pointer
- Which data type can be used to vine a field that consists of a maximum of 256 characters?
a) Memo
b) Number
c) Text
d) Auto number
- Which of the following is used to retrieve data from database and represent it to the user in a formatted way?
a) Report
b) Form
c) Query
d) Table
2. Attempt any Thirteen parts. (39)
The answer to each part should not exceed 5 to 6 lines.
- Write a short note on Machine Language.
- Write any 3 characteristics of High Level Languages.
- Distinguish between # include and # define directives.
- What is a Data type? List its various types in C.
- What are Logical operators?
- Describe briefly the field width specifier.
- Define Compiling.
- What is the use of "else-if" statement?
- Why should programmer use a default label in a switch statement?
- What is the output of the following code:
int = 1;
int h;
printf riod",a);
eIse
print f("%d" ,a 1));
- Define Loop.
- Explain briefly the “do-while "statement, Also write its syntax.
- What is Function? Write briefly its importance.
- Write any three differences between local and N$44, global variable.
- Write any three advantages of using a form.
- Write briefly any three drawbacks of the traditional file approach.
- What is meant by Normalization?
Attempt any Three questions. (21)
3. Explain various file Access Modes in which data files are opened in C.
4. Write a program to print the table of a number on the screen. Input a number from the keyboard and print its table using the function.
5. Write a program that inputs a character from the user and checks whether it is a vowel or a consonant, using switch statement.
6. Write detailed notes on the following:
a) Queries b) Reports