
set - 12

Quiz
•
Computers
•
University
•
Easy
Viswas MCV
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the below function return ?
arr=[1,2,3,4,5]
def search(arr):
for i in range(len(arr)):
if arr[i] = 3:
return i
return -1
2
4
0
Error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of following python code
t=(3,4)
print(2*t)
[3,3,4,4]
(3,4,3,4)
[3,4,4,3]
(3,3,4,4)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code
d1={"a":5,"b":60}
d2={"a":60,"b":5}
print(d1>d2)
False
True
Error
None of the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A datatype which has unique values and is immutable ?
tuple
set
frozenset
Dictionary
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is true
Recursion is always better than iteration
Iteration is always better and simpler than recursion
Recursion uses less memory compared to iteration
Recursion uses more memory compared to iteration
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which sorting algorithm does python inbuilt sort function use ?
Merge Sort
Insertion Sort
Combination of merge and insertion sort
bucket sort
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which searching algorithm works best for the following array
arr = [17,25,10,9,36,12]
Linear Search
Binary Search
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Java Quiz based on array

Quiz
•
University
12 questions
Enumeration and Recursion

Quiz
•
11th Grade - University
10 questions
DAA Quiz 1

Quiz
•
University
10 questions
Quiz Champ Level 3

Quiz
•
University
10 questions
BCA 2nd Semester, Data Structure

Quiz
•
University
5 questions
Python - Numpy Quiz 3

Quiz
•
University - Professi...
8 questions
Unit-II-Python 2024 batch-list examples

Quiz
•
University
15 questions
Data Analytics using Python - Quiz 2

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University