set - 12

set - 12

University

10 Qs

quiz-placeholder

Similar activities

Plot the Code

Plot the Code

University

10 Qs

C Program Array and strings

C Program Array and strings

University

10 Qs

csharp

csharp

University

10 Qs

Computer programming-Array

Computer programming-Array

University

10 Qs

Arrays in C (II yr 02.07.2020)

Arrays in C (II yr 02.07.2020)

University

10 Qs

Part1 Array

Part1 Array

University

6 Qs

Class 12 Recursion

Class 12 Recursion

12th Grade - University

10 Qs

set - 12

set - 12

Assessment

Quiz

Computers

University

Easy

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?