Python

Python

University

10 Qs

quiz-placeholder

Similar activities

CHUONG 4: KT CÁC NVTT

CHUONG 4: KT CÁC NVTT

University

10 Qs

Post Test #4 - Python Fundamental #3

Post Test #4 - Python Fundamental #3

University

10 Qs

C Wrapup Quiz Deutsch

C Wrapup Quiz Deutsch

University

12 Qs

Quiz 10 Susulan  Teori Bahasa dan Otomata 2022-1

Quiz 10 Susulan Teori Bahasa dan Otomata 2022-1

University

10 Qs

ロジックテスト (Đề kiểm tra năng lực IT)

ロジックテスト (Đề kiểm tra năng lực IT)

University

12 Qs

Sains Komputer Tingkatan 4 - 3.1.1 Mengkaji keperluan intera

Sains Komputer Tingkatan 4 - 3.1.1 Mengkaji keperluan intera

1st Grade - Professional Development

10 Qs

SQLite - Writing Queries

SQLite - Writing Queries

University

9 Qs

AB1401 Case Study: Facebook

AB1401 Case Study: Facebook

University

12 Qs

Python

Python

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

PUSHPALATHA C2114

Used 4+ 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


1.What is the extentions for the python file?

python

py

pi

pi3

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2.What is the output of the following program : What is the output of the following program :

def myfunc(a):

a = a + 2

a = a * 2

return a

print myfunc(2)

  • 8

  • 16

  • Indentation Error

  • Runtime Error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. 3.What is the output of the following program : 

print \'{0:.2}\'.format(1.0 / 3)

  • 0.333333

  • 0.33

  • 0.333333:-2

  • Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

4.What is the output of the following program : 

i = 0

while i < 3:

print i

i += 1

else:

print 0

  • 0 1 2 3 0

  • 0 1 2 0

  • 0 1 2

  • Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5.What will be displayed by the following code?

def f(value, values):   

  v = 1   

  values[0] = 44

t = 3

v = [1, 2, 3]

f(t, v)

print(t, v[0])


  • 1 1

  • 1 44

  • 3 1

  • 3 44

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

6.What is the output of the following program?

x = 123

for i in x:

print(i, end=\" \")


  • 1 2 3

  • 1 1 1

  • Error

  • No Output

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

7.Given a string s = “Welcome”, which of the following code is incorrect?

  • print s[0]

  • print s.lower()

  • s[1] = ‘r’

  • print s.strip()

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?

Discover more resources for Computers