Sunteți pe pagina 1din 1

Programming in C (CS1101)

Tutorial 1
Q1. What is an operating system? What are the various categories of operating
systems?
Q2. Differentiate between primary memory and secondary memory.
Q3. What is the minimum number of bits that are required to uniquely represent
the characters of English alphabet? (Consider upper case characters alone)
Q4. Using 7 bits to represent each number, write the representations of 23 and -23
in signed magnitude and 2's complement integers.
Q5. What is the largest positive number and greatest magnitude negative number
one can represent in a 12-bit 2's complement code? Write your result in binary
and decimal.
Q6. How can one decorate a 31-year-old's birthday cake with only five candles?
Q7. Perform the following number system conversions:

(1101011)2 = ( )16 (174003)8 = ( )2


(174003)8 = ( )10 (F3A5)16 = ( )2
(11011001)2 = ( )8 (23851)10 = ( )16

Q8. Write an algorithm to find sum and mean of 3 numbers. Also draw flowchart
of the same.
Q9. In hexadecimal number system, Calculate
a) AC74 B3F
b) 2BFC + 54A7
Q10. Convert following 2s complement binary to decimal representation.
a) (010101)2 = ( )10
b) (1000000)2 = ( )10
c) (1001)2 = ( )10
d) (010101)2 = ( )10

S-ar putea să vă placă și