SECTION - A (Marks-12) : 10 To 10 10 To 10 10 To 10 10 To 10
SECTION - A (Marks-12) : 10 To 10 10 To 10 10 To 10 10 To 10
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
A. A number B. Underscore
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?