19CS2014 Python programming

19CS2014 Python programming

University

6 Qs

quiz-placeholder

Similar activities

Uji Coba Pemahaman Materi

Uji Coba Pemahaman Materi

University

10 Qs

ALGORITHMS QUIZ (Post)

ALGORITHMS QUIZ (Post)

1st Grade - University

10 Qs

Sensors and Instrumentation Fun Quiz-2

Sensors and Instrumentation Fun Quiz-2

University

10 Qs

Computer Knowledge

Computer Knowledge

1st Grade - Professional Development

10 Qs

Java Strings

Java Strings

1st Grade - Professional Development

10 Qs

cppp-2

cppp-2

University

9 Qs

Lý thuyết về Python

Lý thuyết về Python

3rd Grade - University

10 Qs

Quiz 2 MEC522 Sem II 2020/2021

Quiz 2 MEC522 Sem II 2020/2021

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