Basic Python

Basic Python

Professional Development

10 Qs

quiz-placeholder

Similar activities

Day3 - Python STT

Day3 - Python STT

Professional Development

10 Qs

Python set1

Python set1

Professional Development

10 Qs

JF UIT 2022 - Game 3

JF UIT 2022 - Game 3

Professional Development

15 Qs

FinTech 19-2 Blockchain Python

FinTech 19-2 Blockchain Python

Professional Development

8 Qs

CSS and JQuery

CSS and JQuery

Professional Development

9 Qs

Python Data Structures & Statements

Python Data Structures & Statements

Professional Development

11 Qs

Bundlers

Bundlers

Professional Development

10 Qs

Introduction

Introduction

Professional Development

10 Qs

Basic Python

Basic Python

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Faiz keezhattil

Used 21+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?