0% found this document useful (0 votes)
3 views3 pages

Chapter 06 Introducing Python

Chapter 6 introduces Python programming concepts, including syntax, variable definitions, and the use of keywords. It covers true/false statements about Python features and multiple choice questions regarding data types and variable assignment. The chapter emphasizes the interactive mode of Python and the functions used for input and output.

Uploaded by

outlierromanl
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)
3 views3 pages

Chapter 06 Introducing Python

Chapter 6 introduces Python programming concepts, including syntax, variable definitions, and the use of keywords. It covers true/false statements about Python features and multiple choice questions regarding data types and variable assignment. The chapter emphasizes the interactive mode of Python and the functions used for input and output.

Uploaded by

outlierromanl
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

Chapter 6 Introducing Python

Brain Developer

A. Fill in the blanks:

1. Syntax refers to the grammatical rules to be followed while writing a program in any language.

2. Python was created by Guido Van Rossum.


3. Edit menu is generally created used to edit the file in use.

4. In the interactive mode by Python, the instruction are executed line by line, giving the output.
5. A variable is a named memory location that stores the data.

6. Python keyword cannot be used as a variable name.

B. State True or False:

1. To evaluate an arithmetic expression, it is not necessary to use print() function. (True)

2. A variable name can consist of alphabets, digits, and underscore. (True)

3. A script is a program that you type in Python. (True)


4. In Python, only one type of data can be stored in memory. (False)
Correct Answer. In Python, more than one type of data can be stored in memory.

5. Print() function is used to accept the value of a variable from the user. (False)
Correct Answer: Input() function is used to accept the value of a variable from the user.

6. The string values cannot be multiplied together. (True)


7. When we use ',' operator as the separator among the values, the values are displayed with a space between
them (Tue)

D. Muitiple Choice Questions:

1. Which of the following data types is not supported in Python?


a) Numbers
b) String
c) List
Answer: c) List

2. When a new value is stored in a variable, its previous value gets

a) Accepted
b) Overwritten
c) Overlapped

Answer: b) Overwritten

3. Values to variables are assigned using the operator.


a) String
b) print()
c) Assignment
Answer: c) Assignment

4. The data type for 12.4 should be

a) int
b) float
c) str
Answer: b) float

You might also like