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

Midterm CS 1

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

Midterm CS 1

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

Mid Term Examination 2024-2025

Sub Computer Science


(Paper-I) Marks -50
Std 11 th Time 2hr 30 Min
Instructions: 1) All questions are compulsory.
2) Figures to right indicate full marks.
3) Draw neat diagrams wherever necessary.
4) Calculators not allowed.

1. (A) Select the correct alternative and rewrite: 4M

a) The Radix of the octal system is

i) 2
ii) 16
iii) 10
iv) 8

b) Is a stream manipulator.

i) for
ii) while
iii) setw
iv)

c) In loop, condition is tested after first iteration.

i)
ii) while
iii) for
iv)

d) Min context with the pointers, is the de-reference operator.

i) /
ii) &
iii) *
iv) +

(B) Answer any two of the following


6M
a) Explain the difference in while and while loops.
b) Explain octal number system with example.
c) Draw flow chart and write syntax for
2.A) Answer any two of the following: 6M

a) Write program to calculate factorial using recursion.


b) Write complement subtraction procedure steps and Perform (14 - 9) using Complement
subtraction.
c) What is array? Explain advantages of arrays.

(B) Answer any one of the following: 4M

a) What is Dynamic Allocation write its Advantage and warning


b) Convert the following.
i) Hexadecimal To Decimal-(7AB) ii) Hexadecimal to Binary into BCD-(2AF)

3.A) Answer any two of the following: 6M

a) Explain octal number system with example.


b) What is function? Explain advantages of using function in your program.
c) Perform (12-9) by using complement.

(B) Answer any one of the following: 4M

a) Explain different rules for a valid identifier.


b) Explain and complement for subtraction with example.

4.A) Answer any two of the following: 6M


a) Explain logical operator with example.
b) Explain ladder with the example.
c) Convert following hex to octal and octal to hex.
i) (5CA) 16 ii) (537) 8

B) Answer any one of the following:

a) Perform binary Multiplication and Division.


i) (101 * 110) 2 = (5*6) 10 i) (1100 / 10) 2 = (12/2) 10

b) Explain Pointer Arithmetic.

5.A) Answer any two of the following: 10M

a) What are different operators dealing with streams?


b) Convert the following decimal number into binary.
Ii) (35) 10 ii) (88.625) 10 iii) (102) 10

OR

a) Write program to display area of circle (Using return type function).


b) Convert the following binary numbers into decimal number.
i) (111001) 2 ii) (110011)2 iii) (10101.101) 2

====================================END=======================================

You might also like