0% found this document useful (0 votes)
49 views4 pages

CS Xi

Class 11th

Uploaded by

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

CS Xi

Class 11th

Uploaded by

arjun37925112
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 4
AjunVeuma xB UNIT TEST-1 022-2923 7 CLASS : XI »YTHON)(SET-A) Sup, : c. SC P MM. : 50 TIME : 2 HRS. General Instructions : The question paper is divided into 3 section: ‘Section A, consists of 15 questions (1-15) eac! is - A, Band C. ‘h carries I mark. Section B, consists of 10 questions (16-25) each carries 2 marks. > Section C, consists of 5 questions (26-30) each carries 3 marks, SECTION - A Python is a free and open-source language. What do you understand by this feature? Python codes can run on a variety of platforms. This means that Python is a___ language. State True or False i) Character Data type values should be delimited by using the single quote. ii) None is one of the data type in python Write Python expression to represent the Integral paft of the quotient and remainder when 63 is divided by 29. Which symbol is used in Python for single line-comment? Give example to illustrate the same. Which of the following precedence order is correct in Python? (a) Parentheses, Exponential, Multiplication, Division, Addition, Subtraction (b) Multiplication, Division, Addition, Subtraction, Parentheses, Exponential (c) Division, Multiplication, Addition, Subtraction, Parentheses, Exponential (a) Exponential, Parentheses, Multiplication, Division, Addition, Subtraction The type of literal 24,657 is: Write a single Python statement to print the datatype of 5.6. XI/C.Sc-Python(A)/1 wyord arguments of print() function, et like 1="Python"? Justify your answer 9 Q.10 you make Name the ki c a w Python Sheit? vised in python? ywing declarations is correct in python language? ou me i do y bese jenn ri OT) tsindentat Q.l2 Q.13 '5000 6000 7000 8000 . sans 000, 6000, 7000, 8000 xyz 77 5:000,000 aia (2 Arbo the output produced by the following code statements? State reasons. a) _bool(0) b) bool(“0”) When will the “AND” operator will test the second operand? Observe the following script and enlist all the tokens used in it. For each token, write its category too: Hldentify tokens in the script name="Arjun" age=eval(input("Enter age: ")) Q.7 Write a program that asks the user to enter their name and age. Print a message addressed to the user that tells the user the year in which they will turn 100-years old. Q18 Write a program to repeat the string “GOOD MORNING” n times, Here ‘n’ is an integer entered by the user Q.19 Write logical expressions corresponding to the following statements in Python and evaluate the expressions (assuming variable num is already having meaningful value): a) The sum of 20 and —10 is less than 12. b) num is not more than 24 Q.20 Give the output of the following statements: a) print(‘Bye' = 'BYE') b) print(10 != 9 and 20 >= 20) c) not(-9) qd) 213==21//3 Categorize the following as syntax error, logical error or runtime error: Q2 XI/C. Sc-Python(A)/2 Q.22 Q23 Q.24 Q25 Q.26 Q.27 Q.28 a) 25/0 b) num! =25; num2=9: n2 ©) PRINT("tS Aumast ee d) _ int("fifty6r) WAP to input two numbers print their values swapping without using third variable. Write a program to find area and perimeter ofa Write a program to input 3 subject marks and compul average. BMI (Body Mass Index) of a person is u! indicate whether the person is underweight, a healthy weight for his/her height BMI is cal before and after rectangle. 3 ite their sed as a screening tool to overweight, obese or Iculated as follows: MASS (in xg) height? my Write Python script to calculate the BMI of a person BMI = SECTION - C A book publisher conducted a survey and found that 70% of the teenagers loved to read fiction novels. The population of the area that the publisher can cover is 500000, out of which 40% are teenagers. The publisher earns a profit of Rs10 on the sale of each copy of a fiction novel. Write Python script to find maximum profit that the publisher can earn by selling copies of one fiction novel to teenagers. An amount of P is deposited in a bank paying an annual interest rate of ™%, compounded annually. Find the balance after t years if the interest is compounded n times per year. Use the regular compound interest formula as given below: A=P(1-+41/ny" Write Python script to convert the given seconds to days, hours, minutes and seconds. For Example: XI/C.Sc-Python(A)/3 Q.29 Fenner time it $e cond 86485 No. of how No, of minut No. of remait va soc 2s Write a program fo input & & following format number and print in in the Input: 123, Output: calculate GST. Input selling price of item and Write a program t. from the user. GST rate percentage \ ee Ne

You might also like