This quiz works best with JavaScript enabled. Home > Class 11 > Class 11 Computer Science Chapter 2 Introduction To Python – Quiz 8 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 11 Computer Science Chapter 2 Introduction To Python Quiz 8 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. Python is A) Interpreted language. B) High level language. C) Easy in syntax. D) All of the above. Show Answer Correct Answer: D) All of the above. 2. What data type is used to represent whole numbers in Python? A) Int. B) Boolean. C) Float. D) String. Show Answer Correct Answer: A) Int. 3. A program written in a high-level language is called ..... code A) None of the above. B) Machine. C) Source. D) Object. Show Answer Correct Answer: C) Source. 4. What is the output of the expression 20-7 in Python? A) 13. B) 12. C) 14. D) 15. Show Answer Correct Answer: A) 13. 5. How do you call a function named hello()? A) Call hello. B) Hello(). C) Say hello. D) Run hello. Show Answer Correct Answer: B) Hello(). 6. What type of loop is a 'while' loop in repetition constructs? A) Condition-controlled loop. B) Count-controlled loop. C) An infinite loop. D) None of the above. Show Answer Correct Answer: A) Condition-controlled loop. 7. What is a statement in programming? A) A complete instruction that tells the computer what to do. B) A loop structure. C) A comment in the code. D) A variable declaration. Show Answer Correct Answer: A) A complete instruction that tells the computer what to do. 8. The punctuation requirements for printing a string in Python are: A) ( ), ! and '' ''. B) ( ) and !. C) ( ) and '' ''. D) '' '' and !. Show Answer Correct Answer: C) ( ) and '' ''. 9. For i in range(-3), how many times this loop will run and print the next statement? A) 0. B) 1. C) Infinite. D) Will not print. Show Answer Correct Answer: D) Will not print. 10. Which of the following is a correct for loop in Python to iterate over a list called numbers? A) For i in numbers:. B) For i to numbers:. C) For i from numbers:. D) For i of numbers:. Show Answer Correct Answer: A) For i in numbers:. 11. Which statement about computer memory is correct? A) RAM is volatile. B) ROM is volatile. C) Secondary Memory is volatile. D) RAM always retains its data. Show Answer Correct Answer: A) RAM is volatile. 12. What is the purpose of PyCharm? A) To draw images. B) To create videos. C) To write and run Python code. D) To play music. Show Answer Correct Answer: C) To write and run Python code. 13. The shortcut for integer is ..... ? A) Imt. B) Ibt. C) Int. D) Iit. Show Answer Correct Answer: C) Int. 14. What does the print() function do? A) Reads input from the user. B) Saves data to a file. C) Displays text on the screen. D) Runs a Python program. Show Answer Correct Answer: C) Displays text on the screen. 15. What is the correct way to get input from a user? A) Input(). B) Scan(). C) Read(). D) Get(). Show Answer Correct Answer: A) Input(). 16. What does Python's "interpreted language" feature mean? A) Python code must be converted to machine code before running. B) Python executes code line by line without compiling. C) Python is only used for web development. D) Python cannot run on multiple platforms. Show Answer Correct Answer: B) Python executes code line by line without compiling. 17. What is the difference between '==' and '!=' in Python? A) '==' checks for inequality, while '!=' checks for equality. B) '==' is used for assignment, while '!=' is used for comparison. C) '==' checks for equality, while '!=' checks for inequality. D) Both '==' and '!=' are used to check for equality. Show Answer Correct Answer: C) '==' checks for equality, while '!=' checks for inequality. 18. What does the logical/Boolean operator 'and' do? A) Returns true if either side of the test is true. B) Inverts the result of the test. C) Returns true if both sides of the test are true. D) Compares two values to see if they are less than or equal. Show Answer Correct Answer: C) Returns true if both sides of the test are true. 19. Print(~~~~~5) A) 5. B) -6. C) 10. D) -10. Show Answer Correct Answer: B) -6. 20. This operator means that one value is the same as the other value A) ==. B) !=. C) >. D) <. Show Answer Correct Answer: A) ==. 21. What is the minimum passing mark for the Continuous Internal Evaluation (CIE) as a percentage of the maximum marks? A) 40%. B) 50%. C) 35%. D) 30%. Show Answer Correct Answer: A) 40%. 22. Is a, b = 6 statement will return an error (T/F) A) Not applicable. B) Depends on the context. C) False. D) True. Show Answer Correct Answer: D) True. 23. What is a tuple in Python? A) A tuple is defined by items in square brackets. B) A tuple can be modified after creation. C) A tuple is a mutable sequence type in Python. D) A tuple is an immutable sequence type in Python, defined by items in parentheses. Show Answer Correct Answer: D) A tuple is an immutable sequence type in Python, defined by items in parentheses. 24. What will be the output of the following code? "'pythonprint(7 + 3 * 2) "' A) 20. B) 26. C) 13. D) 17. Show Answer Correct Answer: C) 13. 25. What would print (10 + 16) produce? A) 10. B) 16. C) 24. D) 26. Show Answer Correct Answer: D) 26. ← PreviousNext →Related QuizzesClass 11 Computer Science Chapter 2 Introduction To Python Quiz 1Class 11 Computer Science Chapter 2 Introduction To Python Quiz 2Class 11 Computer Science Chapter 2 Introduction To Python Quiz 3Class 11 Computer Science Chapter 2 Introduction To Python Quiz 4Class 11 Computer Science Chapter 2 Introduction To Python Quiz 5Class 11 Computer Science Chapter 2 Introduction To Python Quiz 6Class 11 Computer Science Chapter 2 Introduction To Python Quiz 7Class 11 Computer Science Chapter 2 Introduction To Python Quiz 9Class 11 Computer Science Chapter 2 Introduction To Python Quiz 10Class 11 Computer Science Chapter 2 Introduction To Python Quiz 11 🏠 Back to Homepage 📘 Download PDF Books 📕 Premium PDF Books