Edzy
AI TutorResourcesToolsCompareBuy
SearchDownload AppLogin
Edzy

Edzy for Classes 6-12

Edzy is a personal AI tutor for CBSE and State Board students, with curriculum-aligned guidance, practice, revision, and study plans that adapt to each learner.

  • Email: always@edzy.ai
  • Phone: +91 96256 68472
  • WhatsApp: +91 96256 68472
  • Address: Sector 63, Gurgaon, Haryana

Follow Edzy

Browse by Class

  • CBSE Class 6
  • CBSE Class 7
  • CBSE Class 8
  • CBSE Class 9
  • CBSE Class 10
  • CBSE Class 11
  • CBSE Class 12
Explore the CBSE resource hub

Explore Edzy

  • Study Resources
  • Free Study Tools
  • Best Apps for Board Exams
  • Edzy vs ChatGPT
  • About Us
  • Why We Built Edzy
  • Blog
  • CBSE AI Tutor

Support & Legal

  • Help & FAQs
  • Accessibility
  • Privacy Policy
  • Terms & Conditions
  • Refund Policy
  • Cookie Policy
  • Site Directory

© 2026 Edzy. All rights reserved.

Curriculum-aligned learning paths for students in Classes 6-12.

CBSE
Class 11
Computer Science
Computer Science
Getting Started with Python
Question Bank

Question Bank - Getting Starte...

Practice Hub

Question Bank: Getting Started with Python

This chapter introduces Python, a high-level programming language. It highlights its key features and importance in programming.

Structured practice

Question Bank - Getting Started with Python

Q1.

What is a programming language?

Single Answer MCQ
Q-00067458
View explanation
Q2.

Which of the following is a feature of Python?

Single Answer MCQ
Q-00067459
View explanation
Q3.

How does Python execute a program?

Single Answer MCQ
Q-00067461
View explanation
Q4.

Which symbol indicates the Python prompt in the interpreter?

Single Answer MCQ
Q-00067463
View explanation
Q5.

What is the role of a compiler in programming?

Single Answer MCQ
Q-00067465
View explanation
Q6.

Which of the following best describes the term 'source code'?

Single Answer MCQ
Q-00067467
View explanation
Q7.

What feature of Python aids readability through indentation?

Single Answer MCQ
Q-00067469
View explanation
Q8.

Which of the following is a benefit of Python being an interpreted language?

Single Answer MCQ
Q-00067471
View explanation
Q9.

What does Python primarily use to execute its programs?

Single Answer MCQ
Q-00067473
View explanation
Q10.

Which of the following statements about Python's portability is correct?

Single Answer MCQ
Q-00067475
View explanation
Q11.

What do you call the collection of keywords in Python?

Single Answer MCQ
Q-00067477
View explanation
Q12.

Which statement is true about identifiers in Python?

Single Answer MCQ
Q-00067479
View explanation
Q13.

In Python, what is a common misconception regarding comments?

Single Answer MCQ
Q-00067481
View explanation
Q14.

What is the significance of using whitespace in Python code?

Single Answer MCQ
Q-00067483
View explanation
Q15.

Which of the following best describes Python's approach to data types?

Single Answer MCQ
Q-00067485
View explanation
Q16.

What is the primary purpose of a Python interpreter?

Single Answer MCQ
Q-00067487
View explanation
Q17.

Which of the following is a reserved keyword in Python?

Single Answer MCQ
Q-00067488
View explanation
Q18.

What will happen if a keyword is used as an identifier in Python?

Single Answer MCQ
Q-00067489
View explanation
Q19.

Which of the following keywords indicates a conditional statement in Python?

Single Answer MCQ
Q-00067490
View explanation
Q20.

Which Python keyword is used to define a function?

Single Answer MCQ
Q-00067491
View explanation
Q21.

What is the purpose of the 'return' keyword in a function?

Single Answer MCQ
Q-00067492
View explanation
Q22.

Which of the following keywords would be used to handle exceptions?

Single Answer MCQ
Q-00067493
View explanation
Q23.

What does the 'global' keyword do in Python?

Single Answer MCQ
Q-00067494
View explanation
Q24.

Which keyword is used for iterating over a sequence in Python?

Single Answer MCQ
Q-00067495
View explanation
Q25.

Which of the following is NOT a Python keyword?

Single Answer MCQ
Q-00067496
View explanation
Q26.

What keyword is used to terminate a loop prematurely?

Single Answer MCQ
Q-00067497
View explanation
Q27.

Which keyword is used to declare a block of code to execute in case of exception?

Single Answer MCQ
Q-00067498
View explanation
Q28.

Which keyword signifies a boolean value of false in Python?

Single Answer MCQ
Q-00067499
View explanation
Q29.

Which of the following is a keyword to bring in libraries or modules?

Single Answer MCQ
Q-00067500
View explanation
Q30.

What does the 'None' keyword represent in Python?

Single Answer MCQ
Q-00067501
View explanation
Q31.

Which keyword is used to create an anonymous function in Python?

Single Answer MCQ
Q-00067502
View explanation
Q32.

What is the purpose of the 'nonlocal' keyword?

Single Answer MCQ
Q-00067503
View explanation
Q33.

Which of the following is a valid identifier in Python?

Single Answer MCQ
Q-00067504
View explanation
Q34.

Which of the following identifiers follows the naming convention rules in Python?

Single Answer MCQ
Q-00067505
View explanation
Q35.

Which of the following options represents an invalid identifier?

Single Answer MCQ
Q-00067506
View explanation
Q36.

How long can an identifier be in Python?

Single Answer MCQ
Q-00067507
View explanation
Q37.

Which of the following best describes the case sensitivity of Python identifiers?

Single Answer MCQ
Q-00067508
View explanation
Q38.

If 'myVar' and 'MyVar' are both identifiers in a Python program, what does this imply?

Single Answer MCQ
Q-00067509
View explanation
Q39.

Which of these identifiers follows the best practice for naming in Python?

Single Answer MCQ
Q-00067510
View explanation
Q40.

Identifying an identifier that is composed only of alphanumeric characters and underscores is an example of:

Single Answer MCQ
Q-00067511
View explanation
Q41.

In the expression 'area = length * breadth', which terms are identifiers?

Single Answer MCQ
Q-00067512
View explanation
Q42.

Why should Python identifiers not start with a digit?

Single Answer MCQ
Q-00067513
View explanation
Q43.

What will happen if an identifier has a reserved keyword?

Single Answer MCQ
Q-00067514
View explanation
Q44.

What is a common mistake made when naming identifiers?

Single Answer MCQ
Q-00067515
View explanation
Q45.

If 'tempValue' is an identifier, what does its name suggest about its usage?

Single Answer MCQ
Q-00067516
View explanation
Q46.

Identify the best identifier that communicates its purpose effectively.

Single Answer MCQ
Q-00067517
View explanation
Q47.

Which of the following is true about Python identifiers?

Single Answer MCQ
Q-00067518
View explanation
Q48.

Among the following, which would create a syntax error during execution?

Single Answer MCQ
Q-00067519
View explanation
Q49.

What term describes variables that can be changed after their creation in Python?

Single Answer MCQ
Q-00067520
View explanation
Q50.

Which of the following is an immutable data type in Python?

Single Answer MCQ
Q-00067521
View explanation
Q51.

What happens when you try to change a value of an immutable variable?

Single Answer MCQ
Q-00067522
View explanation
Q52.

If `num1 = 300` and `num2 = num1`, what value does `num2` hold?

Single Answer MCQ
Q-00067523
View explanation
Q53.

What is the primary purpose of using variables in programming?

Single Answer MCQ
Q-00067524
View explanation
Q54.

Which statement is true regarding Python variables?

Single Answer MCQ
Q-00067525
View explanation
Q55.

What will be the output of `x = 5; y = x; x = 10; print(y)`?

Single Answer MCQ
Q-00067526
View explanation
Q56.

In the expression `num1 + num2`, if `num1 = 10` and `num2 = 20`, what will be the result?

Single Answer MCQ
Q-00067527
View explanation
Q57.

In Python, which symbol is used for assignment?

Single Answer MCQ
Q-00067528
View explanation
Q58.

Which of the following will create a variable that holds a floating-point number?

Single Answer MCQ
Q-00067529
View explanation
Q59.

What type of error will occur when trying to access a variable that has not been defined?

Single Answer MCQ
Q-00067530
View explanation
Q60.

Which of the following variables follows proper naming conventions in Python?

Single Answer MCQ
Q-00067531
View explanation
Q61.

After executing `x = [1, 2, 3]`, which statement is true for `x`?

Single Answer MCQ
Q-00067532
View explanation
Q62.

If a variable holds an integer and is later assigned a string, what will happen?

Single Answer MCQ
Q-00067533
View explanation
Q63.

What is the result of the expression `type(3.5)` in Python?

Single Answer MCQ
Q-00067534
View explanation
Q64.

What will the following code print? `x = [1, 2, 3]; x.append(4); print(x)`

Single Answer MCQ
Q-00067535
View explanation
Q65.

What is the primary purpose of comments in Python code?

Single Answer MCQ
Q-00067536
View explanation
Q66.

Which symbol is used to denote a single-line comment in Python?

Single Answer MCQ
Q-00067537
View explanation
Q67.

What will be the output of the following code? # This line is a comment print('Hello World')

Single Answer MCQ
Q-00067538
View explanation
Q68.

Which of the following statements is true about comments in Python?

Single Answer MCQ
Q-00067539
View explanation
Q69.

How can you add a comment that spans multiple lines in Python?

Single Answer MCQ
Q-00067540
View explanation
Q70.

What happens if you mistakenly place code in a comment line?

Single Answer MCQ
Q-00067541
View explanation
Q71.

Why is it recommended to use meaningful comments in Python programs?

Single Answer MCQ
Q-00067542
View explanation
Q72.

In Python, which of the following is NOT a good practice for writing comments?

Single Answer MCQ
Q-00067543
View explanation
Q73.

Given the code: # Calculate the circumference circumference = 2 * pi * radius What will happen if 'pi' is not defined?

Single Answer MCQ
Q-00067544
View explanation
Q74.

What is the recommended way to comment on a function's purpose?

Single Answer MCQ
Q-00067545
View explanation
Q75.

What is a possible drawback of not using comments in your Python code?

Single Answer MCQ
Q-00067546
View explanation
Q76.

In which scenario might excessive comments be harmful?

Single Answer MCQ
Q-00067547
View explanation
Q77.

Which of the following practices is NOT recommended for writing comments?

Single Answer MCQ
Q-00067548
View explanation
Q78.

What type of comment should be preferred for documentation purposes in Python?

Single Answer MCQ
Q-00067549
View explanation
Q79.

When using multi-line comments in Python, what is a common pitfall?

Single Answer MCQ
Q-00067550
View explanation
Q80.

In Python, what is every value or data item treated as?

Single Answer MCQ
Q-00067551
View explanation
Q81.

What does the id() function in Python return?

Single Answer MCQ
Q-00067552
View explanation
Q82.

Which of the following statements about Python objects is correct?

Single Answer MCQ
Q-00067553
View explanation
Q83.

What happens when you assign one variable to another in Python?

Single Answer MCQ
Q-00067554
View explanation
Q84.

Which of the following is NOT an object in Python?

Single Answer MCQ
Q-00067555
View explanation
Q85.

What type of programming paradigm does Python follow concerning objects?

Single Answer MCQ
Q-00067556
View explanation
Q86.

In object-oriented programming in Python, what are objects usually composed of?

Single Answer MCQ
Q-00067557
View explanation
Q87.

How does Python treat the number 10 in the following statement: num = 10?

Single Answer MCQ
Q-00067558
View explanation
Q88.

Which keyword is used to define a function in Python that can be considered as an object?

Single Answer MCQ
Q-00067559
View explanation
Q89.

In Python, can functions be passed as arguments to other functions?

Single Answer MCQ
Q-00067560
View explanation
Q90.

What is the primary reason Python is described as 'everything is an object'?

Single Answer MCQ
Q-00067561
View explanation
Q91.

Which of the following objects does not have attributes in Python?

Single Answer MCQ
Q-00067562
View explanation
Q92.

What is the result of id(x) if x = [1, 2, 3] and you create a copy y = x?

Single Answer MCQ
Q-00067563
View explanation
Q93.

Why can Python be considered a dynamically typed language in terms of object handling?

Single Answer MCQ
Q-00067564
View explanation
Q94.

Which of the following is an example of a valid Python statement?

Single Answer MCQ
Q-00067565
View explanation
Q95.

How is a print statement written in Python?

Single Answer MCQ
Q-00067566
View explanation
Q96.

What type of data does the input function return in Python?

Single Answer MCQ
Q-00067567
View explanation
Q97.

Which of the following statements is true about keywords in Python?

Single Answer MCQ
Q-00067568
View explanation
Q98.

What will be the output of the statement: print(type(3.14))?

Single Answer MCQ
Q-00067569
View explanation
Q99.

What is the purpose of the assignment statement in Python?

Single Answer MCQ
Q-00067570
View explanation
Q100.

What will be the output of the following code: print('Hello' + 'World')?

Single Answer MCQ
Q-00067571
View explanation
Q101.

Why do we need to convert input data to another type when using the input function?

Single Answer MCQ
Q-00067572
View explanation
Q102.

If you execute the statement: num1 = input('Enter a number: '), what data type will num1 be?

Single Answer MCQ
Q-00067573
View explanation
Q103.

What will be the result of executing 20 - 30 + 40 in Python?

Single Answer MCQ
Q-00067574
View explanation
Q104.

Which statement correctly illustrates the precedence of operations in Python?

Single Answer MCQ
Q-00067575
View explanation
Q105.

What is the output of the following code: print('2' * 3)?

Single Answer MCQ
Q-00067576
View explanation
Q106.

How would you change a variable value from a string to an integer?

Single Answer MCQ
Q-00067577
View explanation
Q107.

If a user inputs 'abc' for an integer conversion, what will happen?

Single Answer MCQ
Q-00067578
View explanation
Q108.

What is the purpose of the finally keyword in Python?

Single Answer MCQ
Q-00067579
View explanation
Q109.

What type of data does the 'int' data type in Python represent?

Single Answer MCQ
Q-00067580
View explanation
Q110.

Which of the following is an example of a float in Python?

Single Answer MCQ
Q-00067581
View explanation
Q111.

What is the correct way to define a dictionary in Python?

Single Answer MCQ
Q-00067582
View explanation
Q112.

What does the None data type signify in Python?

Single Answer MCQ
Q-00067583
View explanation
Q113.

Which of the following data types is mutable?

Single Answer MCQ
Q-00067584
View explanation
Q114.

What type of operation can be performed on a boolean variable?

Single Answer MCQ
Q-00067585
View explanation
Q115.

What will be the output of the following code? 'print(type(5.0))'

Single Answer MCQ
Q-00067586
View explanation
Q116.

When trying to access a dictionary value using a non-existing key, what happens?

Single Answer MCQ
Q-00067587
View explanation
Q117.

Which of these data types can hold multiple values?

Single Answer MCQ
Q-00067588
View explanation
Q118.

What happens if you assign a new value to an immutable variable?

Single Answer MCQ
Q-00067589
View explanation
Q119.

Which of the following is NOT a valid variable name in Python?

Single Answer MCQ
Q-00067590
View explanation
Q120.

What is represented by the value True in the boolean data type?

Single Answer MCQ
Q-00067591
View explanation
Q121.

How are complex numbers expressed in Python?

Single Answer MCQ
Q-00067592
View explanation
Q122.

What data type would the expression 'name = "John"' create for the variable 'name'?

Single Answer MCQ
Q-00067593
View explanation
Q123.

What does the operator '==' do in Python?

Single Answer MCQ
Q-00067594
View explanation
Q124.

Which of the following correctly represents a complex number in Python?

Single Answer MCQ
Q-00067595
View explanation
Q125.

Which operator would you use to determine if one variable is not equal to another in Python?

Single Answer MCQ
Q-00067596
View explanation
Q126.

Which data type is primarily used in conditional statements to perform logical comparisons?

Single Answer MCQ
Q-00067597
View explanation
Q127.

If num1 = 8 and num2 = 5, what is the result of num1 > num2?

Single Answer MCQ
Q-00067598
View explanation
Q128.

What does the '<=' operator do?

Single Answer MCQ
Q-00067599
View explanation
Q129.

In Python, what will 10 >= 10 evaluate to?

Single Answer MCQ
Q-00067600
View explanation
Q130.

What is the result of the expression 15 < 10?

Single Answer MCQ
Q-00067601
View explanation
Q131.

Which of the following operators is used for logical AND in Python?

Single Answer MCQ
Q-00067602
View explanation
Q132.

What will the output of 'num1 = True; num2 = False; result = num1 and num2' be?

Single Answer MCQ
Q-00067603
View explanation
Q133.

If 'x' is 7 and 'y' is 2, what is 'x % y'?

Single Answer MCQ
Q-00067604
View explanation
Q134.

Which of the following is a valid assignment operation?

Single Answer MCQ
Q-00067605
View explanation
Q135.

If a = 10, what will be the outcome of a += 5?

Single Answer MCQ
Q-00067606
View explanation
Q136.

What does 'not True' evaluate to?

Single Answer MCQ
Q-00067607
View explanation
Q137.

What will the expression (10 > 5) or (5 > 10) yield?

Single Answer MCQ
Q-00067608
View explanation
Q138.

How does the `**` operator function in Python?

Single Answer MCQ
Q-00067609
View explanation
Q139.

If num1 = 2 and num2 = 3, what is the result of num1 ** num2?

Single Answer MCQ
Q-00067610
View explanation
Q140.

If a = 5, what does 'a == 5' check?

Single Answer MCQ
Q-00067611
View explanation
Q141.

What will the following expression return: '20 // 3'?

Single Answer MCQ
Q-00067612
View explanation
Q142.

What does the input() function do in Python?

Single Answer MCQ
Q-00067613
View explanation
Q143.

If user inputs '123' using input(), what type is the result?

Single Answer MCQ
Q-00067614
View explanation
Q144.

Which symbol is used for comments in Python?

Single Answer MCQ
Q-00067615
View explanation
Q145.

How does Python handle user input from the input() function?

Single Answer MCQ
Q-00067616
View explanation
Q146.

What is the purpose of the prompt parameter in the input() function?

Single Answer MCQ
Q-00067617
View explanation
Q147.

What will the following code output? print(int(input('Enter a number: ')))

Single Answer MCQ
Q-00067618
View explanation
Q148.

What happens if you enter non-numeric input into the above code? print(int(input('Enter a number: ')))

Single Answer MCQ
Q-00067619
View explanation
Q149.

How can multiple inputs be taken from a single line in Python?

Single Answer MCQ
Q-00067620
View explanation
Q150.

Which of the following statements about input() is true?

Single Answer MCQ
Q-00067621
View explanation
Q151.

Which of the following will produce an error when run in Python?

Single Answer MCQ
Q-00067622
View explanation
Q152.

What does it mean for Python to be case-sensitive?

Single Answer MCQ
Q-00067623
View explanation
Q153.

What will this code output: a = input('Enter name: '); print('Hello', a)?

Single Answer MCQ
Q-00067624
View explanation
Q154.

What function is used to explicitly convert a value to an integer in Python?

Single Answer MCQ
Q-00067625
View explanation
Q155.

What will be the output of the expression int(5.8)?

Single Answer MCQ
Q-00067626
View explanation
Q156.

Which of the following data types can be converted to a string in Python?

Single Answer MCQ
Q-00067627
View explanation
Q157.

What will happen if you try to concatenate a string with an integer directly in Python?

Single Answer MCQ
Q-00067628
View explanation
Q158.

What does implicit type conversion mean in Python?

Single Answer MCQ
Q-00067629
View explanation
Q159.

Given num = 10.5, what will be the output of int(num) in a Python program?

Single Answer MCQ
Q-00067630
View explanation
Q160.

How can you convert a string '100' to an integer in Python?

Single Answer MCQ
Q-00067631
View explanation
Q161.

What will be the output of str(25) + ' apples' in Python?

Single Answer MCQ
Q-00067632
View explanation
Q162.

Which operation does NOT require type conversion in Python?

Single Answer MCQ
Q-00067633
View explanation
Q163.

If x = 10.5, what will be the result of bool(x)?

Single Answer MCQ
Q-00067634
View explanation
Q164.

In Python, which function would convert a list ['1', '2', '3'] to an integer?

Single Answer MCQ
Q-00067635
View explanation
Q165.

When converting float to int using int(x), what part of the number is lost?

Single Answer MCQ
Q-00067636
View explanation
Q166.

What will be the output of int('10') + 5 in Python?

Single Answer MCQ
Q-00067637
View explanation
Q167.

If you have a float x = 18.9, what will int(x) give?

Single Answer MCQ
Q-00067638
View explanation
Q168.

What is the result of applying ord('A') in Python?

Single Answer MCQ
Q-00067639
View explanation
Q169.

Which statement about type conversion is FALSE?

Single Answer MCQ
Q-00067640
View explanation
Q170.

What is the primary purpose of debugging in programming?

Single Answer MCQ
Q-00067641
View explanation
Q171.

Which type of error occurs when there is a mistake in the syntax of the code?

Single Answer MCQ
Q-00067642
View explanation
Q172.

If a program runs but produces incorrect results, which error is most likely present?

Single Answer MCQ
Q-00067643
View explanation
Q173.

What type of error will occur if a program tries to divide by zero?

Single Answer MCQ
Q-00067644
View explanation
Q174.

Which tool can help you identify the line of code causing an error?

Single Answer MCQ
Q-00067645
View explanation
Q175.

When should a programmer conduct debugging?

Single Answer MCQ
Q-00067646
View explanation
Q176.

What is the difference between a compiler and an interpreter regarding error detection?

Single Answer MCQ
Q-00067647
View explanation
Q177.

In debugging, what is a breakpoint?

Single Answer MCQ
Q-00067648
View explanation
Q178.

Which of the following is NOT a common debugging method?

Single Answer MCQ
Q-00067649
View explanation
Q179.

What does a syntax error in Python typically prevent?

Single Answer MCQ
Q-00067650
View explanation
Q180.

What could be a result of forgetting to initialize a variable before use?

Single Answer MCQ
Q-00067651
View explanation
Q181.

Which Python error occurs when a variable is assigned a wrong data type?

Single Answer MCQ
Q-00067652
View explanation
Q182.

Which of the following can help prevent logical errors?

Single Answer MCQ
Q-00067653
View explanation
Q183.

What is the purpose of error messages in programming?

Single Answer MCQ
Q-00067654
View explanation
Learn Better On The App
Built for collaborative learning

Study With Friends

Join classmates, challenge them in duels, and make practice more engaging.

Quick duels
Shared momentum

Faster access to practice, revision, and daily study flow.

Edzy mobile app preview