19CS2014 Python programming

19CS2014 Python programming

University

6 Qs

quiz-placeholder

Similar activities

APA Style

APA Style

University

10 Qs

Chapter 4 Quiz

Chapter 4 Quiz

University

10 Qs

TTL 1 : Intro

TTL 1 : Intro

University

10 Qs

Formative Test 2 - Revenue Cycle

Formative Test 2 - Revenue Cycle

University

10 Qs

KOMPUTER AKUNTANSI

KOMPUTER AKUNTANSI

University

10 Qs

Conflict, politics, etc.

Conflict, politics, etc.

University

11 Qs

TATA CARA PENGIRIMAN UNTUK DIANGKUT KE TUJUAN

TATA CARA PENGIRIMAN UNTUK DIANGKUT KE TUJUAN

University

10 Qs

Self esteem

Self esteem

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