Search Header Logo

Basic Python

Authored by Faiz keezhattil

Computers

Professional Development

Used 21+ times

Basic Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is output of 33 == 33.0

False

True

33

None of the Above

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How can we swap two numbers

a = 10

b = 20

in python without using third variable?

a = b

b = a

a,b = b,a

a=20,b=10

b = a

a = b

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following are valid ways to specify the string literal foo'bar in Python?

'foo''bar'

'foo'bar'

"foo'bar"

'foo'+'bar'

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

>>> print(r'foo\\bar\nbaz')

Which of the following is the correct output?

foo\\bar\nbaz

foo\bar\nbaz

foo\\barnbaz

foo\bar

baz

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is not a Python built-in function:

diff()

round()

isinstance()

map()

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is false statement in python

int(144)==144

int('144')==144

int(144.0)==144

None of the above

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output for −

'Hello world' [1:2]

Hello

e

world

Syntax error

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?