0% found this document useful (0 votes)
87 views2 pages

Python Fundamentals Class11

Chapter 6 of Class 11 Computer Science covers Python fundamentals, including its definition, modes of running, identifiers, keywords, literals, variables, comments, data types, and operators. It explains concepts like type casting, dynamic typing, and the importance of indentation, along with the use of input() and print() functions. Key differences between assignment and equality operators, as well as examples of outputs for specific Python expressions, are also provided.

Uploaded by

btanish2009
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
87 views2 pages

Python Fundamentals Class11

Chapter 6 of Class 11 Computer Science covers Python fundamentals, including its definition, modes of running, identifiers, keywords, literals, variables, comments, data types, and operators. It explains concepts like type casting, dynamic typing, and the importance of indentation, along with the use of input() and print() functions. Key differences between assignment and equality operators, as well as examples of outputs for specific Python expressions, are also provided.

Uploaded by

btanish2009
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Class 11 Computer Science - Chapter 6: Python Fundamentals

1. What is Python?

Python is a high-level, interpreted, general-purpose programming language known for its readability and

simplicity.

2. Name the different modes of running Python.

Interactive mode and Script mode.

3. What are identifiers in Python?

Identifiers are the names used to identify variables, functions, classes, etc.

4. List rules for naming identifiers.

Begin with a letter/underscore, no keywords, case-sensitive, and can contain letters/digits/underscores.

5. What are keywords?

Reserved words in Python that have special meaning (e.g., if, while, def).

6. What are literals?

Literals are constant values assigned to variables.

7. What are the types of literals in Python?

Numeric, String, Boolean, Special (None).

8. What are variables?

Variables are named memory locations used to store data.

9. How do you assign a value to a variable in Python?

Using '=' operator. Example: x = 10

10. What are comments in Python?

Lines that explain code, ignored by the interpreter. Use # or triple quotes.

11. What are data types in Python?

Python supports int, float, str, bool, list, tuple, dict, set, etc.

12. What are operators?

Symbols that perform operations on values. E.g., +, -, *, /

13. Types of operators in Python?

Arithmetic, Relational, Logical, Assignment

14. Difference between '=' and '=='?

'=' assigns a value. '==' checks equality.

15. What is type casting in Python?

Page 1
Class 11 Computer Science - Chapter 6: Python Fundamentals

Changing one data type to another. Example: int('5')

16. What is dynamic typing?

Variable types are determined during runtime.

17. What is indentation and why is it important?

Indentation defines blocks of code in Python.

18. Purpose of input() and print()?

input() takes user input. print() displays output.

19. Difference between int('5') and str(5)?

int('5') gives integer. str(5) gives string.

20. Output of print(10//3)?

21. Output of print(2**3)?

Page 2

You might also like