google.com, pub-6167773875660516, DIRECT, f08c47fec0942fa0 class 11 computer science chapter 5 mcq questions | getting started with python class 11 mcq - 2nd puc computer science

class 11 computer science chapter 5 mcq questions | getting started with python class 11 mcq

class 11 computer science chapter 5 mcq questions,getting started with python class 11 mcq,getting started with python class 11 mcq questions,getting started with python mcq,mcq on getting started with python class 11,Mcq on getting started with python class 11 with answers,Mcq on getting started with python class 11 pdf,Mcq on getting started with python class 11 online test

1. What is a program in computer science?





ANSWER= C) An ordered set of instructions to be executed by a computer

2. Which language is called machine language?





ANSWER=D) 0s and 1s

3. What is source code?





ANSWER=B) High-level language code

4. Which of the following uses an interpreter?





ANSWER=C) Python

5. Which quote is attributed to Donald Knuth in the textbook?





ANSWER= B) "Computer programming is an art."

6. Which of the following is NOT a feature of Python?





ANSWER= C) Platform-dependent

7. What is the symbol for the Python prompt in interactive mode?





ANSWER= D) >>>

8. What is the extension of Python source code files?





ANSWER= B) .py

9. Which mode in Python allows the execution of individual statements instantaneously?





ANSWER= B) Interactive mode

10. Which of the following is a Python keyword?





ANSWER= B) import

11. Which of the following is a valid identifier in Python?





ANSWER= B) abc123

12. What is a variable in Python?





ANSWER= C) An object uniquely identified by a name

13. Which symbol is used for comments in Python?





ANSWER= B) #

14. In Python, everything is treated as a(n):





ANSWER= C) Object

15. Which function returns the identity of an object in Python?





ANSWER= A) id()

16. What are the two execution modes in Python?





ANSWER= B) Interactive and Script

17. Which of the following is NOT a feature of Python?





ANSWER= D) Requires a compiler

18. Which of the following is NOT a keyword in Python?





ANSWER= C) print

19. What is the output of the following Python code: `print("Hello, World!")`?





ANSWER= A) Hello, World!

20. Which of the following statements is true about Python?





ANSWER= B) Python is case-sensitive.

21. What is the correct syntax for a single-line comment in Python?





ANSWER= C) # This is a comment

22. Which of the following is NOT a Python data type?





ANSWER= D) Character

23. How do you create a variable in Python?





ANSWER= B) By simply assigning a value to it

24. Which of the following is used for indentation in Python?





ANSWER= C) Tabs or spaces

25. What will be the output of the following code: `print(2 + 3 * 4)`?





ANSWER= B) 14

26. Which Python function is used to get input from the user?





ANSWER= A) input()

27. What does the following Python code do: `name = input("Enter your name: ")`?





ANSWER= C) Prompts the user to enter their name and stores it in the variable name

28. Which of the following is an invalid variable name in Python?





ANSWER= C) 1var

29. What is the output of the following code: `print(10 / 3)`?





ANSWER= A) 3.3333333333333335

30. Which of the following is NOT an arithmetic operator in Python?





ANSWER= D) &&

31. What is the correct way to create a string in Python?





ANSWER= B) `s = 'Hello'`

32. Which of the following methods can be used to convert a string to a list in Python?





ANSWER= B) split()

33. Which of the following is NOT a valid Python data type?





ANSWER= D) Array

34. What is the output of the following code: `print("Hello" + " " + "World")`?





ANSWER= A) Hello World

35. Which operator is used for exponentiation in Python?





ANSWER= B) **

36. Which of the following is a mutable data type in Python?





ANSWER= C) List

37. What is the output of the following code: `print(2**3)`?





ANSWER= C) 8

38. Which function is used to read input from the user in Python 3.x?





ANSWER= A) input()

39. Which of the following statements will create a tuple in Python?





ANSWER= C) t = (1, 2, 3)

40. What is the output of the following code: `print(type([]))`?





ANSWER= B) <class 'list'>

41. Which of the following operators is used for string concatenation in Python?





ANSWER= A) +

42. What is the correct way to declare a variable in Python?





ANSWER= D) x = 5

43. What will be the output of the following code: `print(10 % 3)`?





ANSWER= A) 1

44. Which method is used to remove an item from a list in Python by its value?





ANSWER= A) remove()

45. What is the output of the following code: `print(5 == 5)`?





ANSWER= A) True

46. Which method can be used to convert a list into a tuple in Python?





ANSWER= A) tuple()

47. Which of the following is used to define a block of code in Python?





ANSWER= A) Indentation

48. Which function is used to get the type of an object in Python?





ANSWER= A) type()

1st puc computer science chapter 5 getting started with python mcq
class 11 computer science chapter 5 mcq questions | getting started with python class 11 mcq class 11 computer science chapter 5 mcq questions | getting started with python class 11 mcq Reviewed by Vision Academy on September 17, 2024 Rating: 5

No comments:

CheckOut

Powered by Blogger.