Search Header Logo

PYTHON BASICS

Authored by Kuruganti aswini

Other

Professional Development

15 Questions

Used 1+ times

PYTHON BASICS
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1. Who developed Python Programming Language?

a) Wick van Rossum

b) Rasmus Lerdorf

c) Guido van Rossum

d) Niene Stom

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Is Python case sensitive when dealing with identifiers?

no

yes

machine independent

None

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct extension of the Python file?

a) .python

b) .pl

c) .py

d) .p

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the value of the following Python expression?

print(4 + 3 % 5)

a) 7

b) 2

c) 4

d) 1

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python function?

print(len(["hello",2, 4, 6]))

Error

6

4

3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code snippet?

for i in [1, 2, 3, 4][::-1]:

print(i, end=' ')

4 3 2 1

error

1 2 3 4

None

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To add a new element to a list we use which Python command?

a) list1.addEnd(5)

b) list1.addLast(5)

c) list1.append(5)

d) list1.add(5)

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?