Python module 1

Python module 1

University

10 Qs

quiz-placeholder

Similar activities

computer science

computer science

11th Grade - Professional Development

6 Qs

Python Sets

Python Sets

University

10 Qs

AFP Midtvejsevaluering

AFP Midtvejsevaluering

University

10 Qs

H466 - Arrays, Records, Tuples and Lists

H466 - Arrays, Records, Tuples and Lists

11th Grade - University

10 Qs

kotlin Quiz 2

kotlin Quiz 2

University

12 Qs

DATA STRUCTURES ACTIVITY OF THE WEEK

DATA STRUCTURES ACTIVITY OF THE WEEK

University

10 Qs

basic programming quiz

basic programming quiz

University

10 Qs

Quiz Champ Level 3

Quiz Champ Level 3

University

10 Qs

Python module 1

Python module 1

Assessment

Quiz

Computers

University

Hard

Created by

KRUPA CHOTAI

Used 6+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Tutorials Point' [100:200]?

Index error

' '

'Tutorials Point'

Syntax error

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

what is the output

a = (1, 2)

a[0] +=1

(1,1,2)

2

type error

syntax error

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the value of this expression?

2**2**3**1

12

64

128

256

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the following code?

list = ['a','b','c','d','e']

list += 'de'

print(list)

['a','b','c','d','e']

['a','b','c','de']

['a','b','cde']

This raises an exception because we cannot add a string to a list

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

val=154

while(not(val)):

val**=2

else:

val//=2

77

154

11858

23716

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

s = 0

for d in range(0, 5, 0.1):

… s += d

… print(s)

syntax error

type error

runtime error

both C & D

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

import math

def main():

math.cos(math.pi)

main()

print(main())

1

None

Error

math.pi is not defined

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?