19CS2014 Python programming

19CS2014 Python programming

University

6 Qs

quiz-placeholder

Similar activities

Prinsip Pemasaran - Gelagat Pengguna

Prinsip Pemasaran - Gelagat Pengguna

University

10 Qs

quiz 1 fundamental tourism & hospitality

quiz 1 fundamental tourism & hospitality

University

10 Qs

Sesgo

Sesgo

University

10 Qs

Metode Numerik #3

Metode Numerik #3

University

10 Qs

Tart, Pies and Cookies (session 3)

Tart, Pies and Cookies (session 3)

University

10 Qs

Regresion Lineal

Regresion Lineal

University

10 Qs

Quiz on Swinburne Vietnam Training Program

Quiz on Swinburne Vietnam Training Program

University

10 Qs

NIA 300

NIA 300

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