Search Header Logo

Basics of Python Programming

Authored by Vatsala Dadeech

Computers

12th Grade

Used 2+ times

Basics of Python Programming
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What characters are included in the Python character set?

Only uppercase letters (A-Z)

Letters (a-z, A-Z), digits (0-9), punctuation, whitespace, and special characters (Unicode).

Only letters (a-z)

Only digits (0-9)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select keyword in Python.

sum

true

if

input

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an identifier in Python?

A keyword used to define a function

An identifier in Python is a name used to identify a variable, function, class, or other object.

A type of data structure in Python

A built-in function for string manipulation

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Tick the literals in the statement.

a=25+c**2

You may have more than 1 correct answers

a

25

2

+, **

=

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Explain the role of operators in Python programming.

Operators in Python are only used for arithmetic calculations.

Operators in Python do not affect variable values.

Operators in Python are exclusively for string manipulation.

Operators in Python perform operations on variables and values, including arithmetic, comparison, logical, assignment, bitwise, identity, and membership operations.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Tick the punctuator in Python

<

=

'(', ')', '[', ']', '{', '}', ':', ',', and '.'.

;

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select the correct declaration of a variable number an integer.

declare number as integer

declare number:integer

25=number

number=25

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?