0% found this document useful (0 votes)
54 views2 pages

SECTION - A (Marks-12) : 10 To 10 10 To 10 10 To 10 10 To 10

This document contains a computer science exam with multiple choice and written response questions. Section A contains 12 multiple choice questions testing concepts like floating point values, control codes, loop types, operators, and flowchart symbols. Section B asks students to answer 9 out of 12 short answer questions testing variable naming rules, loops, switch statements, functions, operators precedence, and evaluating expressions. Section C contains 3 longer answer questions asking students to write programs to find the smallest of two numbers using a loop, print a decreasing sequence of numbers, print the factorial of 9 and its flowchart, and convert between temperature scales and print characters using a loop.

Uploaded by

Ameer Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views2 pages

SECTION - A (Marks-12) : 10 To 10 10 To 10 10 To 10 10 To 10

This document contains a computer science exam with multiple choice and written response questions. Section A contains 12 multiple choice questions testing concepts like floating point values, control codes, loop types, operators, and flowchart symbols. Section B asks students to answer 9 out of 12 short answer questions testing variable naming rules, loops, switch statements, functions, operators precedence, and evaluating expressions. Section C contains 3 longer answer questions asking students to write programs to find the smallest of two numbers using a loop, print a decreasing sequence of numbers, print the factorial of 9 and its flowchart, and convert between temperature scales and print characters using a loop.

Uploaded by

Ameer Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

COMPUTER SCIENCE SSC-II

SECTION – A(Marks- 12)


Time allowed: 20 Minutes
NOTE: Section—A is compulsory. All parts of this section are to be answered on the question
paper itself. It should be completed in the first 20 minutes end handed over to the
Duty staff. Deleting/overwriting is not allowed. Do not use lead pencil.
Q.1 Circle the correct option i.e. A/B/C/ D. Each part carries one mark.
1 . WHA T I S THE RA NG E O F FL OA TI NG PO I NT V AL UE S :

A. 10 -3 8 to 10 28 B. 10 -3 8 to 10 3 8

C. 10 -3 8 to 10 3 1 D. 10 -38 to 10 3 6

2. 0 to 31 numbers use for :

A. control codes B. usual printing character

C. Uniform Reference Link d. control the values

3. Which of the following is also called counter loop?


A. do while B. while C. for D. continue
4. Which of the following is the symbol for AND operator?
A I] B. & C. && D. I
5. Which of the following functions all C-programs MUST contain?
A. main() B. system() C. scanf() D. getche()
6. In 'C' a variable name CANNOT start with':

A. A number B. Underscore

C. Small alphabet D. Capital alphabet

7. What does a small circle represent in a flowchart?

A. Start/stop B. Decision C. Processing D. Connector

8. A loop is a _______________?
A. point B. structure C. program D. language
9. The case block ends with:
A. end select B. end case C. break D. case close
10. What will be the output of the expression 5-3*4+5/5?

A. 9 B.. 8

C. 10 D. 13

11. Which escape sequence is used to move cursor to the beginning of current line?
A. \a B. \r C. \n D. \b
12. How many reserved words are used.
A. 30 B. 32 C. 36 D. 31
COMPUTER SCIENCE SSC-II
Time allowed: 2:40 Hours Total Marks Sections
B and C: 43

NOTE: Answer any nine parts from Section 13 and any two questions from Section 'C' on the
separately provided answer book. Use supplementary answer sheet i.e. Sheet--B if required,
Write your answers neatly and legibly.
Section -B
Answer any NINE parts. The answer to each part should be 3 to 4 lines. (9 x3=27)
1. Describe any three rules for specifying a variable name in C language?
2. Write a program that read a number and print its table by using while loop?
3. Write a program prints even integer by using switch statement?
4. What is difference between syntax and semantic with example?
5. Define Printf and scanf with example?
6. Draw the flow chart of factorial no 5?
7. Write a program which prints a 2-digit number in reverse order.
8. Compare while and do-while loops with example.
9. Write down the use of following functions in C-programming_
a) Printf() b) gets() c ) getche()
10. What will be the output of following:
void main(){{
char grade;
Printf(“Enter the grade of a student from A—C”);
If (grade== ‘A’) && (grade ==‘a’)
printf(“\n Excellent);
else if (grade==’B’)&&
(grade==’b’)
Printf(“Well done”);
else if (grade-='C' I[ grade ='c')
printr(\n poor performance");
else
printf("\nEnter Letter'):
11. List the order of precedence of operators in C- Programming
12. Find errors in the following code?
int a, h = 1.2;
for (b=1: bd:10; b--);
{ printf("1r%clu,b); } getch();
13. Evaluate the following expressions:
(a) 7*(3-4-4)/50
(b) 1,94,5 + 5 % 24.3 –7
Section- C
Note: Attempt any TWO questions. All questions carry equal marks.
(2 x 8 16)
(c) Q. 3 a) write a program that read a two number and print smallest no by using while
loop?
(d) b) write a program to print the following sequence of the number
(e) 30,27,24,21,18,15,12,9,6,3,0,-3,-6
(f) Q. 4 a) write an algorithm to print the factorial no 9?
(g) b) write the flow chart of even numbers?
(h) Q. 5 a) write a program that read a temperature in Fahrenheit and prints in Celsius?
(i) b) write a program to print the characters by using while loop?

You might also like