19CS2014 Python programming

19CS2014 Python programming

University

6 Qs

quiz-placeholder

Similar activities

Tema 01

Tema 01

University

10 Qs

Boolean Laws , SOP and POS Quiz

Boolean Laws , SOP and POS Quiz

University

10 Qs

Health Education

Health Education

University

10 Qs

SOP Pastry

SOP Pastry

University

10 Qs

Online Communication

Online Communication

University

10 Qs

Articulation & Phonology

Articulation & Phonology

University

11 Qs

LIT_SEM02: De la Edad Media al Neoclasicismo

LIT_SEM02: De la Edad Media al Neoclasicismo

University

10 Qs

Educational Decisions

Educational Decisions

University

10 Qs

19CS2014 Python programming

19CS2014 Python programming

Assessment

Quiz

Education

University

Practice Problem

Hard

Created by

Dr. 299

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is not a core data type?

Lists

Dictionary

Tuples

Class

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type is the object below ? L = [1, 23, ‘hello’, 1]

Array

List

Tuple


Dictionary

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following function convert a string to a float in python?

str(x)

float(x)

ong(x [,base] )

int(x [,base])

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the expression : 3*1**3

27

9

3

1

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Find the output of the following program:

nameList = ['Harsh', 'Pratik', 'Bob', 'Dhruv'] 

  

pos = nameList.index("food processing") 

  

print (pos * 3)

Food processing

Harsh

Harsh Harsh Harsh

ValueError: ‘Food processing’ is not in list

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 Education