Python Assignment 1

Python Assignment 1

University

20 Qs

quiz-placeholder

Similar activities

Pecutan Akhir Soalan Objektif PA Sem 1 Set 11

Pecutan Akhir Soalan Objektif PA Sem 1 Set 11

University

15 Qs

Quiz on Mendeley

Quiz on Mendeley

University

15 Qs

Bola Voli

Bola Voli

1st Grade - Professional Development

15 Qs

Chương 1: Thị trường BĐS

Chương 1: Thị trường BĐS

University

20 Qs

Error Correction Test

Error Correction Test

University

15 Qs

nhanh tay tinh mắt

nhanh tay tinh mắt

University

20 Qs

Алқабилердің қатысуымен іс жүргізу

Алқабилердің қатысуымен іс жүргізу

University

20 Qs

[EOE1-2P-2]Fichas de Trabajo

[EOE1-2P-2]Fichas de Trabajo

1st Grade - University

20 Qs

Python Assignment 1

Python Assignment 1

Assessment

Quiz

Education

University

Hard

Created by

Munnangi Vinay

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

1 min • 1 pt

Who discovered python? 

 

Wick ran Rossum 

Guido Van Rossum

Rasmus Lerdrom

Niene stom 

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is the correct extension of the Python file? 

.python

.py

.pl

.p

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

 Which of the following character is used to give single-line comments in Python? 

//

#

/*

!

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How do you declare a variable in Python?

var name = "value"

define name = value

name = "value"

You don't need to declare variables in Python

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the following code: x = 1 + 2 * 3 

9

6

Error

7

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Suppose list1 is [2, 33, 222, 14, 25], What is list1[:-1]? 

[2, 33, 222, 14]

error

25

 [25, 14, 222, 33, 2]

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the value of x 

x=0 

while(x<100): 

x+=2 

print(x)

101

99

None of the above,this is an infinite loop

100

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?

Discover more resources for Education