19CS2014 Python programming

19CS2014 Python programming

University

6 Qs

quiz-placeholder

Similar activities

GFG Final Quiz

GFG Final Quiz

University

10 Qs

Python 2

Python 2

University

10 Qs

Summary module-2

Summary module-2

University

10 Qs

Revision module 3

Revision module 3

University

10 Qs

Python - Class

Python - Class

12th Grade - University

11 Qs

Formatif 2 modul 1

Formatif 2 modul 1

University

10 Qs

Data warehouse Malam-Quiz

Data warehouse Malam-Quiz

University

10 Qs

Comp.Sci

Comp.Sci

5th Grade - University

10 Qs

19CS2014 Python programming

19CS2014 Python programming

Assessment

Quiz

Education

University

Hard

Created by

Dr. 299

Used 1+ times

FREE Resource

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