
19CS2014 Python programming

Quiz
•
Education
•
University
•
Hard
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
Similar Resources on Wayground
10 questions
VCS quiz 1

Quiz
•
University
10 questions
Uji Coba Pemahaman Materi

Quiz
•
University
10 questions
Introduction to Hadoop Quiz

Quiz
•
University
10 questions
Praktisi Mengajar - Java Test

Quiz
•
University
8 questions
7th quiz

Quiz
•
7th Grade - University
10 questions
(Backup) DSA and Code Snippets

Quiz
•
University
10 questions
java

Quiz
•
University - Professi...
9 questions
cppp-2

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade