
19CS2014 Python programming
Quiz
•
Education
•
University
•
Practice Problem
•
Hard
Dr. 299
Used 1+ times
FREE Resource
Enhance your content in a minute
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
QUARK
Quiz
•
University
10 questions
Konsep Promkes Stibeth
Quiz
•
University
10 questions
DL Refresher
Quiz
•
KG - Professional Dev...
10 questions
Tes Kemampuan Awal Matakuliah Strategi Pembelajaran Biologi
Quiz
•
University
10 questions
4.電腦斷層定位、治療
Quiz
•
University
10 questions
VIU - GEIN 18 Repaso 2
Quiz
•
University
10 questions
Module 1- Python Basics_2nd_Semester
Quiz
•
University
11 questions
Python - Class
Quiz
•
12th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
