Question Paper 1

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

All saint's church sr. Sec.

School
Class- X-A and X-B
Subject: Computer Application
Date: Duration: MM: 100 marks

General Instructions:
1. Read all Questions carefully for each section.

2. Question Paper has 2 sections; Section-A and Section- B

3. Attempt all questions.

4. Answer should be given in python language only

5. Part [C],[D],[E] having choice in questions.

Section-A

[A] Multiple Choice Questions: (1 x 10 = 10 Marks)

Q1. Which arithmetic operator cannot be used with strings?


(a) + (b) * (c) ** (d) None of these

Q2. Which of the following is not a valid variable name?


(a) Num (b) temp (c) javascript (d) 7flag

Q3. Which of the following is not a comment?


(a) “”This is comment”” (b) # This is comment
(b) // This is comment (d) “This is comment”

Q4. Which of the following statements about Python dictionaries is true?


(a) Dictionaries are ordered collections of items.
(b) Dictionary keys must be immutable objects.
(c) Dictionaries can only store numeric data.
(d) Dictionary values must be unique.

Q5. Which of the following print statement is correct?


(a) _print “9” + “9” (b) _print int(“nine”) (c) printf 9 + 9 (d) print (9)

Q6. Which keywords is used to define function?


(a) Fun (b) def (c) define (d) function

Q7. The functions are used in a program:


(a) To help avoiding repeating a set of statements many times.
(b) To enhance the logical clarity of the program.
(c) To help avoiding repeated programming across programs.
(d) All of the above.

Q8. Which of the following data type is not supported in Python?


(a) Number (b) String (c) List (d) Slice

Q9. Which of the following operation result in 8?


(a) 65 // 8 (b)16 % 9 (c) 2**4 (d) 65**0.5

Q10. The function max(10,5,8,7,6) will return:

(a) 6 (b) 8 (c) 10 (d) 5

[B] Fill in the Blanks: (1 x 10 = 10 Marks)

Q11. The output of (10.0==10) will be ______________________________


Q12. The operators that are used to compare two operands are called
______________________ operators.
Q13. The output of (5>5 and 50<80) will be ___________________
Q14. Python is a _________ and _____________ language.
Q15. The function which you create are called ________________.
Q16. Python files are saved with _________________ extensions.
Q17. Python supports _____________ and _____________ comments.
Q18. Python variables has two different scopes ____________ and _____________.
Q19. ___________ and ____________ are types of python conversion.
Q20. In Python, which function is used to check if a key exists in a dictionary is __________.

[C] Very short questions: (2 x 5 = 10 Marks)

Q21. What are two key features of Python that make it popular for beginners and professionals
alike?
Q22. What operator is used for exponentiation in Python. Give examples?
Q23. What are identifiers in Python?
Q24. Explain the purpose of comments in Python code. Give an example of a single-line and a multi-
line comment.
Q25. What are the various types of operators in Python?
OR
Q24. What is meant by input and output in Python?
Q25. Describe the syntax used to define a function in Python. Provide an example.

[D] Short questions: (4 x 5 = 20 Marks)

Q26. Explain why indentation is important in Python code. How does Python use indentation to
define blocks of code?
Q27. You are explaining to a friend who is new to programming why Python is often recommended
as a first language to learn. Discuss Python's readability, simplicity, and versatility, and provide
examples of industries or applications where Python is heavily used.
Q28. Explain the difference between = and == operators in Python with examples.
Q29. What are identifiers in Python? Provide rules for naming identifiers in Python.
Q30. What is type conversion? Explain with the help of example?
OR
Q29. How keywords are different from the variable names?
Q30. Write a python program to find circumference of circle by taking user input (Hint: Use
input() function for taking value)

[E] Long questions: (5 x 4 = 20 Marks)

Q31. Describe the purpose of the if, elif, and else statements in Python. Provide an
example of using these statements in a program.
Q32. Describe the concept of Python's string operators. Provide examples of string
concatenation?
Q33. Briefly explain why Python is often called a high-level programming language. How
does it compare to low-level languages like assembly?
Q34. You are mentoring a junior developer who is new to Python and frequently encounters
indentation errors. Explain the importance of consistent indentation in Python code and
provide tips on how to avoid common indentation pitfalls
OR
Q33. Explain the significance of the colon ( :) in Python code. Where and how is it typically
used with examples?
Q34. Suppose a person want to do an addition but don’t know about operators and
operands in python. He taken a one number 30 and string “world”. Justify your answer that
what is wrong with this if that person add 30 and string “world”.

You might also like