Basic Python

Basic Python

Professional Development

10 Qs

quiz-placeholder

Similar activities

Introduction to AI - Healthcare & Business

Introduction to AI - Healthcare & Business

University - Professional Development

10 Qs

Java Strings and lops

Java Strings and lops

Professional Development

10 Qs

IC101

IC101

Professional Development

10 Qs

Cloud Computing Model Exam-IV PART-B

Cloud Computing Model Exam-IV PART-B

Professional Development

15 Qs

Name that App/Site

Name that App/Site

Professional Development

10 Qs

Computer Programming - Intro

Computer Programming - Intro

Professional Development

12 Qs

SDT1

SDT1

Professional Development

10 Qs

Microsoft 365 for Teachers

Microsoft 365 for Teachers

Professional Development

10 Qs

Basic Python

Basic Python

Assessment

Quiz

Computers

Professional Development

Practice Problem

Hard

Created by

Faiz keezhattil

Used 21+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?