Unit 1: Python Environment Setup and Basics - Subjective Questions

CSR101 — Python Programming • Practice Questions with Detailed Answers

20 questions

1

Explain the steps involved in installing Python using Anaconda and describe how to launch and use Jupyter Notebook.

2

Compare Anaconda, Jupyter Notebook, and Visual Studio Code as tools for Python development.

3

Describe the basic syntax rules of Python and explain how indentation, comments, identifiers, and statements are used.

4

Explain variables and common Python data types with suitable examples.

5

Explain arithmetic, assignment, comparison, logical, membership, and identity operators in Python.

6

What is an expression in Python? Explain how expressions are evaluated using operators and operands.

7

Explain operator precedence and associativity in Python. Evaluate the expression 3 + 4 * 2 ** 2 - 6 / 3 step by step.

8

Describe Python input and output operations. Write a program that accepts two numbers and displays their sum.

9

Explain Python modules and describe how the math module can be imported and used.

10

Explain how text is represented in Python and discuss string creation, indexing, slicing, and immutability.

11

Discuss important string methods and operations in Python with examples.

12

Explain lists in Python. Describe their characteristics and demonstrate common list operations.

13

Summarize the common Python data types and distinguish between mutable and immutable objects.

14

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

15

Explain binary numbers and describe how Python represents and converts integers between decimal and binary forms.

16

Explain string formatting in Python using concatenation, formatted string literals, and the format() method.

17

Describe how the Python shell can be used as a calculator and explain how to run a simple Python script.

18

Explain software development best practices, PEP 8, and code readability in Python.

19

Explain the working of an if-else statement in Python and write a program to determine whether a number is positive, negative, or zero.

20

Distinguish between equality operators and identity operators in Python. Explain why == and is should not generally be used interchangeably.