You are on page 1of 2

12/26/2019 Practice Test

Home / My courses / DS2 / Python / Practice Test

Started on Friday, 22 November 2019, 10:00 PM


State Finished
Completed on Friday, 22 November 2019, 10:05 PM
Time taken 4 mins 37 secs
Grade 4.00 out of 10.00 (40%)

Question 1 Tuples are mutable


Incorrect

Mark 0.00 out of Select one:


1.00
a. True 

b. False

Question 2 What will be the output of the below code? 


Incorrect x=1,2
Mark 0.00 out of
1.00 Select one:
a. Dictionary

b. Error

c. Tuple

d. List 

Question 3 Suppose x = (1,2,3,4), Which code below is incorrect?


Correct

Mark 1.00 out of Select one:


1.00
a. max(x)

b. x[1]

c. x[2] = 5 

d. min(x)

Question 4 A loop becomes infinite loop if a condition never becomes TRUE


Incorrect

Mark 0.00 out of Select one:


1.00
a. No

b. Yes 

Question 5 Which one is not a part of Control Statements?


Correct

Mark 1.00 out of Select one:


1.00
a. Pass statement

b. While statement 

c. Break statement

d. Continue statement

https://learn.proschoolonline.com/mod/quiz/review.php?attempt=167674&cmid=7906 1/2
12/26/2019 Practice Test

Question 6 We cannot write single if statements without else statement


Not answered

Marked out of Select one:


1.00
a. TRUE

b. FALSE

Question 7 What are the basic data types in the python


Correct

Mark 1.00 out of Select one:


1.00
a. Int

b. Float

c. String

d. All the above 

Question 8 Which one is correct from the following statements Statement 1: list and
Correct tuples can contain any type of objects Statement 2: list and tuples can
Mark 1.00 out of contain only characters Statement 3: Lists and tuples are like arrays
1.00 Statement 4: Lists and tuples are like non-array objects

Select one:
a. 1 & 4

b. 2 & 4

c. 1 & 3 

d. 1 & 4

Question 9 A set is an unordered collection with a duplicate elements in it .


Incorrect

Mark 0.00 out of Select one:


1.00
a. Yes 

b. No

Question 10 Which statements are corrects w.r.to functions in python? 


Incorrect Statement 1: function begin with def followed by the name and
Mark 0.00 out of parentheses ( ( ) ) 
1.00
Statement 2: Parameters has to pass outside the parentheses 
Statement 3: The code block within every function starts with a (:) 

Statement 4: Functions help break program into smaller chunks

Select one:
a. 1 ,2 & 4

b. 1 & 2 

c. 1 , 3 & 4

d. 2 & 4

◄ Classroom Case studies(Python) Jump to... Class Room PPT ►

https://learn.proschoolonline.com/mod/quiz/review.php?attempt=167674&cmid=7906 2/2

You might also like