python_4_Vivek

python_4_Vivek

University

20 Qs

quiz-placeholder

Similar activities

Design Thinking Overview

Design Thinking Overview

University

20 Qs

Algoritma dan Pemrograman Bab 1

Algoritma dan Pemrograman Bab 1

University

15 Qs

The Web and the Internet

The Web and the Internet

University

15 Qs

itappC03 finex q1

itappC03 finex q1

University

15 Qs

Lập trình trực quan

Lập trình trực quan

University

15 Qs

PHP First Internal Practical Viva

PHP First Internal Practical Viva

University

20 Qs

Assessment 08

Assessment 08

University

15 Qs

Monday Week#2

Monday Week#2

University

15 Qs

python_4_Vivek

python_4_Vivek

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

VIVEK PANDEY

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

mynums=[10,20,30, 40,50]

print(mynums[-1:-2])

[]

()

none

0

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

r=['True',False]

print(max(r))

True

False

error

None

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

print(list(str(bool(complex(True)))))

true

True

[True]

['T', 'r', 'u', 'e']

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

def calculate(a,b):

c=a+b

d=a-b

return c,d

x,y=calculate(5,3)

print(x,y)

2 8

8 2

error

5,3

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

def addnos(a,b):

c=a+b

return c

def addnos(a,b,c):

d=a+b+c

return d

print(addnos(10,20))

print(addnos(10,20,30))

30 60

60 30

10 20

TypeError

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

def find(*names):

max=0

for s in names:

if len(s)>max:

max=len(s)

return max

print(find("January","February","March",'VIVEK PANDEY'))

7

12

8

5

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

def show(a,b,c=3,d=4):

print(a,b,c,d)

show(10,20,30,40)

10 20 30 4

10 20 3 40

10 20 3 4

10 20 30 40

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