
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
QUIZ for PUPians
Quiz
•
University
11 questions
Juniors Vocabulary Quiz#3
Quiz
•
11th Grade - University
10 questions
Final Test Prep: 영어학습원리
Quiz
•
University
10 questions
Would You Rather - College Academics
Quiz
•
University
10 questions
Catedra Integradora
Quiz
•
University
10 questions
Early Childhood Special Education Assessment
Quiz
•
University
10 questions
Quiz Pendahuluan Manajemen Operasi
Quiz
•
University
10 questions
Praktisi Mengajar - Java Test
Quiz
•
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
