0% found this document useful (0 votes)
29 views

Computing-Unit 3-Computational Thinking-Team Manager

Uploaded by

pearlcraftsalot
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views

Computing-Unit 3-Computational Thinking-Team Manager

Uploaded by

pearlcraftsalot
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Chapter-3

Computational thinking: Team manager


Q1. Fill in the blanks:
1. The computer uses a language called machine code.
2. The compiler turns a program into an executable file.
3. The compiler translates source code into machine code.
4. Execute means carry out a command.
5. Debugging will help to rectify the error in the program.
6. Python is a text-based programming language.
7. An algorithm is a plan to solve a problem.
8. Keywords are symbols and terms used in programming.
9. Append command is used to add items to a list.
10. Each item in a list is called an element.
11. Variables are used to store the values.
Q2. True or False:
1. Arithmetic operators are used for mathematical calculations - True
2. Every program has an input and output. - True
3. We couldn't use a loop in the Python programming language - False
4. Print command is used to get input from the - False
5. The interpreter understands a language called JavaScript. - False
6. Index number will help to edit the elements in the list - True

IPS UNIT 3/COMPUTING/CLASS 8/23-24 Page 1 of 3


Q3. Match the following.
1. Compiler - Assign the value (5)
2. Interpreter - Get the input from the user (4)
3. Python - * (8) (Variable isn't matched, as * is not a property of it)
4. Input command - Turn program to executable file (1)
5. Arithmetic operators - Translates source code into machine code. (2)
6. String - Text – based programming language (3)
7. Float - ASCII characters (6)
8. Variable - Decimal point (7)
9. Append - Remove the elements from the list (10)
10. del - Add elements to the list (9)

Q4. Answer the following.


1. Explain about Python.
Ans:
• Python is a versatile, high-level programming language known for its simplicity and
readability.
• It supports multiple programming paradigms like procedural, object-oriented, and
functional programming.
• Python suitable for various applications from web development to scientific computing.

2. What is meant by arithmetic operator?


Ans:
• Arithmetic operators in Python are symbols used to perform mathematical calculations.

• These include addition (+), subtraction (-), multiplication (*), division (/), modulus (%),

exponentiation (**), and floor division (//).

IPS UNIT 3/COMPUTING/CLASS 8/23-24 Page 2 of 3


3. Explain about input and print command in Python.
Ans:
Input and print commands in Python are used to interact with users.
➢ The input() function prompts the user to enter data, which is then stored in a
variable.
➢ The print() function outputs messages or the values of variables to the console for
the user to see.
4. Write the rules in python about naming variables.
Ans:
Rules for naming variables in Python:

1. Variable names can contain letters, numbers, and underscores.

2. Variable names cannot start with a number.

3. Variable names cannot contain spaces or special characters, except underscore.

4. Variable names are case-sensitive.

5. Variable names cannot be Python keywords or reserved words.

5. Explain about for loop.


Ans:

➢ For loop in Python is used for iterating over a sequence and executing a block of

code once for each item in the sequence.

➢ It allows automating repetitive tasks and processing data efficiently.

➢ The loop continues until all items in the sequence have been processed.

IPS UNIT 3/COMPUTING/CLASS 8/23-24 Page 3 of 3

You might also like