Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.

Unit 1 subjective questions Introduction; Variables, Expressions and Statements

ECE181 — Introduction To Python 20 questions with model answers. Write yours first, then compare.

Read the notes Practice MCQs
  1. Question 1 of 20

    Explain the need for a programming language. Why can't computers be instructed directly in natural human language?

  2. Question 2 of 20

    Introduce Python as a programming language. Discuss its key features that make it popular.

  3. Question 3 of 20

    Describe the different types of programming errors. Explain the process of debugging.

  4. Question 4 of 20

    What are identifiers in Python? State the rules for naming identifiers with examples.

  5. Question 5 of 20

    Define a variable. Explain how variables are created and used in Python with suitable examples.

  6. Question 6 of 20

    Explain assignment statements in Python. Discuss chained and simultaneous assignment with examples.

  7. Question 7 of 20

    What is an expression in Python? Distinguish between an expression and a statement.

  8. Question 8 of 20

    What is a named constant? How are constants represented in Python? Explain with examples.

  9. Question 9 of 20

    Describe the numeric data types available in Python with examples.

  10. Question 10 of 20

    Explain the boolean data type in Python. How are boolean values produced and used?

  11. Question 11 of 20

    Explain the various categories of operators in Python with examples.

  12. Question 12 of 20

    Explain operator precedence and associativity in Python. Evaluate the expression step by step.

  13. Question 13 of 20

    What are augmented assignment operators? List them and explain their use with examples.

  14. Question 14 of 20

    Explain type conversion in Python. Distinguish between implicit and explicit type conversion with examples.

  15. Question 15 of 20

    Explain the concept of rounding in Python. How does the round() function work? Discuss with examples.

  16. Question 16 of 20

    Distinguish between / (true division), // (floor division), and % (modulus) operators with examples.

  17. Question 17 of 20

    Explain the logical operators (and, or, not) in Python and the concept of short-circuit evaluation.

  18. Question 18 of 20

    Write short notes on the structure of a Python program and explain how the interpreter processes statements. Include comments and indentation.

  19. Question 19 of 20

    Given the expressions below, evaluate each and explain the result: (a) 7 // 2 + 3 ** 2, (b) 10 % 4 * 2, (c) 2 + 3 > 4 and 5 < 2, (d) int("12") + float("3.5").

  20. Question 20 of 20

    Compare compiled and interpreted languages. Explain why Python is called an interpreted language and discuss its advantages and disadvantages.

That's unit 1

Long answers stick best when they're tested again soon. Run the MCQs on this unit, then come back to the questions you found hardest.