Class XI Test

 

Q1. Write the length of following strings.

(a) ‘Hello \n is a newline character’

(b) ‘raj\t  is a good boy’

(c) ‘Hello\

World\

Thank you’

Q2. Find valid and invalid identifier with reason

For

While

Sr no

Sr no.

_Roll_No

Mark1

Q3.Write a program to obtain temperature  in Celsius and convert it into Fahrenheit.

Q4. Write the value of expression  (i)3+2**4/2   (ii) 7*8/5//2

Q5.Write output (i) 87//5  (ii) 87//5.0     (iii) 17%5   (iv) 9%12