Unit 3: Unit 3: Introduction to Python Programming — Mcqs

10th Class Computer Science · Unit 3: Introduction to Python Programming

0 of 0 answered 0 correct

Introduction to Python Programming

1.What is Python?
2.Which of the following fields use Python?
3.What is the main purpose of programming?
4.Which step is part of writing a program?
5.Where should you download Python from?
6.What does an IDE help with?
7.Which tool is used to install Python packages?

Basic Python Syntax and Structure

8.What is the purpose of comments in Python?
9.Which symbol is used for a single-line comment in Python?
10.How can you write a multi-line comment in Python?
11.Which of the following is a valid variable name in Python?
12.Which of the following cannot be used as a variable name in Python?
13.Why should we use meaningful variable names?
14.Which variable name is invalid?
15.Which is allowed in Python variable names?
16.What is the recommended case for constants?
17.What is the data type of the variable in this line: price = 19.99?
18.Which data type represents text in Python?
19.What does the input() function do in Python?
20.How can you convert user input to an integer in Python?

Operators and Expressions

21.What is an operator in Python?
22.Which of the following is an arithmetic operator?
23.Which operator is used for exponentiation?
24.Which operator compares two values and returns True or False?
25.Which of the following is a logical operator?
26.What does the == operator check?
27.What is an expression in Python?
28.What is the result of the expression 3+ 4 * 2?
29.Which has the highest precedence in Python expressions?
30.What will be the output of (3 + 2) * 2?