Sei sulla pagina 1di 4

ARMY PUBLIC COLLEGE, SADDAR

1st TERM EXAMINATION ,2018


KARACHI BOARD
COMPUTER SCIENCE XII
SECTION A (Marks 15)

Q1. Circle the correct option i.e A/B/C/D. Each part carries equal mark.

SECTION “A” APC XII - A


1. The symbol ‘=’ represents:
A. Equal to Operator C. Comparison Operator
B. Assignment Operator D. None of these
2. A character constant is a single character, enclosed:
A. in double quotation B. in single quotation
C. in left and write braces D. without quotation marks
3. Loop within loop is called:
A. Nested Loop B. Continuous loop
C. Inner Loop D. Outer Loop
4. This is the output of 4%5:
A. 4 B. 1
C. 5 D. 0
5. This format specifier is used to print string:
A. %c C. %d
B. %s D. %o
6. The include <stdio.h> does not begin without a sign of:
A. # C. $
B. != D. @
7. Which of the following part is optional in switch statement?
A. Default C. Case
B. Switch D. None
8. A relational expression may return value:
A. True C. Both a & b
B. False D. None
9. Which of the following is not relational operator?
A. != C. =
B. == D. <=
10. Which of the following returns false if X=5 and Y=10?
A. X < Y C. X > Y
B. X <= Y D. X != Y
11. Which of the following operators are used to join two conditions?
A. Relational operators C. Assignment operators
B. Arithmetic operators D. Logical operators
12. Which of the following is a logical operator?
A. = C. %
B. == D. &&
13. The predefined function that are part if C language are called:
A. User defined C. Subroutines
B. Subprograms D. Built-in-functions
14. The format specifier starts with:
A. % C./
B. */ D. *#
15. The sqrt function is declared in the header file:
A. float.h C. math.h
B. stdio.h D. conio.h
ARMY PUBLIC COLLEGE, SADDAR
1st TERM EXAMINATION ,2018
KARACHI BOARD
COMPUTER SCIENCE XII
SECTION A (Marks 15)

Q1. Circle the correct option i.e A/B/C/D. Each part carries equal mark.

SECTION “A” APC XII - B

1. The sqrt function is declared in the header file:


A. float.h C. math.h
B. stdio.h D. conio.h
2 The format specifier starts with:
A. % C./
B. */ D. *#
3 The predefined function that are part if C language are called:
A. User defined C. Subroutines
B. Subprograms D. Built-in-functions
4 Which of the following is a logical operator?
A. = C. %
B. == D. &&
5 Which of the following operators are used to join two conditions?
A. Relational operators B. Assignment operators
C. Arithmetic operators D. Logical operators
6. Which of the following returns false if X=5 and Y=10?
A. X < Y C. X > Y
B. X <= Y D. X != Y
7. Which of the following is not relational operator?
A. != C. =
B. == D. <=
8. A relational expression may return value:
A. True C. Both a & b
B. False D. None
9. Which of the following part is optional in switch statement?
A. Default C. Case
B. Switch D. None
10. The include <stdio.h> does not begin without a sign of:
A. # C. $
B. != D. @
11. This format specifier is used to print string:
A. %c C. %d
B. %s D. %o
12. This is the output of 4%5:
A. 4 B. 1
C. 5 D. 0
13. Loop within loop is called:
A. Nested Loop B. Continuous loop
C. Inner Loop D. Outer Loop
14. A character constant is a single character, enclosed:
A. in double quotation B. in single quotation
C. in left and write braces D. without quotation marks
15. The symbol ‘=’ represents:
A. Equal to Operator C. Comparison Operator
B. Assignment Operator D. None of these
ARMY PUBLIC COLLEGE, SADDAR
1st TERM EXAMINATION ,2018
KARACHI BOARD
COMPUTER SCIENCE XII
SECTION A (Marks 15)

Q1. Circle the correct option i.e A/B/C/D. Each part carries equal mark.

SECTION “A” APC XII - C


1. This format specifier is used to print string:
A. %c C. %d
B. %s D. %o
2. The include <stdio.h> does not begin without a sign of:
A. # C. $
B. != D. @
3. Which of the following operators are used to join two conditions?
A. Relational operators B. Assignment operators
C. Arithmetic operators D. Logical operators
4. Which of the following returns false if X=5 and Y=10?
A. X < Y C. X > Y
B. X <= Y D. X != Y
5. The predefined function that are part if C language are called:
A. User defined C. Subroutines
B. Subprograms D. Built-in-functions
6.Which of the following is a logical operator?
A. = C. %
B. == D. &&
7.This is the output of 4%5:
A. 4 B. 1
C. 5 D. 0
8.Loop within loop is called:
A. Nested Loop B. Continuous loop
C. Inner Loop D. Outer Loop
9.The sqrt function is declared in the header file:
A. float.h C. math.h
B. stdio.h D. conio.h
10. A character constant is a single character, enclosed:
A. in double quotation B. in single quotation
C. in left and write braces D. without quotation marks
11. The symbol ‘=’ represents:
A. Equal to Operator C. Comparison Operator
B. Assignment Operator D. None of these
12. A relational expression may return value:
A. True C. Both a & b
B. False D. None
13.Which of the following part is optional in switch statement?
A. Default C. Case
B. Switch D. None
14. Which of the following is not relational operator?
A. != C. =
B. == D. <=
15. The format specifier starts with:
A. % C./
B. */ D. *#
ARMY PUBLIC COLLEGE, SADDAR
1st TERM EXAMINATION ,2018
KARACHI BOARD
COMPUTER SCIENCE XII
SECTION A (Marks 15)

Q1. Circle the correct option i.e A/B/C/D. Each part carries equal mark.

SECTION “A” APC XII - D


1. Which of the following is not relational operator?
A. != C. =
B. == D. <=
2. The format specifier starts with:
A. % C./
B. */ D. *#
3. The predefined function that are part if C language are called:
A. User defined C. Subroutines
B. Subprograms D. Built-in-functions
4.Which of the following is a logical operator?
A. = C. %
B. == D. &&

5.This is the output of 4%5:


A. 4 B. 1
C. 5 D. 0
6.Loop within loop is called:
A.Nested Loop B. Continuous loop
C. Inner Loop D. Outer Loop
7.The sqrt function is declared in the header file:
A. float.h C. math.h
B. stdio.h D. conio.h
8. A character constant is a single character, enclosed:
A. in double quotation B. in single quotation
C. in left and write braces D. without quotation marks
9. A relational expression may return value:
A. True C. Both a & b
B. False D. None
10.Which of the following part is optional in switch statement?
A. Default C. Case
B. Switch D. None
11.Which of the following returns false if X=5 and Y=10?
A. X < Y C. X > Y
B. X <= Y D. X != Y
12.The symbol ‘=’ represents:
A. Equal to Operator C. Comparison Operator
B. Assignment Operator D. None of these
13.Which of the following operators are used to join two conditions?
A. Relational operators B. Assignment operators
C. Arithmetic operators D. Logical operators
14.This format specifier is used to print string:
A. %c C. %d
B. %s D. %o
15.The include <stdio.h> does not begin without a sign of:
A. # C. $
B. != D. @

Potrebbero piacerti anche