Py-ngo Workshop Quiz_GDSC

Py-ngo Workshop Quiz_GDSC

University

15 Qs

quiz-placeholder

Similar activities

C++ Syntax and Concepts Quiz

C++ Syntax and Concepts Quiz

University

15 Qs

Python data types

Python data types

University

15 Qs

Code Makers

Code Makers

University

10 Qs

كوكيز

كوكيز

University

10 Qs

CSNP-04103 C++ Chapter 7 - 2 - Data Types

CSNP-04103 C++ Chapter 7 - 2 - Data Types

University - Professional Development

10 Qs

Chapter 1-4

Chapter 1-4

University

15 Qs

Economics Quiz on Production Concepts

Economics Quiz on Production Concepts

University

20 Qs

monthly test of feb 25

monthly test of feb 25

University

10 Qs

Py-ngo Workshop Quiz_GDSC

Py-ngo Workshop Quiz_GDSC

Assessment

Quiz

Others

University

Hard

Created by

Shreya Khanna

Used 3+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

      Find the output upon running this code

mango

cherry

litchi

banana

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

thislist = ["apple", "banana", "cherry", "orange", "kiwi”]

    thislist[1:3] = ["blackcurrant", "watermelon"]

    print(thislist)

   Output for the following code is :


[‘blackcurrant’, ‘watermelon’, ‘cherry’, ‘orange’, ‘kiwi’]

["apple", "blackcurrant", "watermelon", "orange", "kiwi”]

["blackcurrant", "banana", "watermelon", "orange", "kiwi”]

["apple", "banana", "cherry", "orange", "kiwi”]

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Statement1 : Lists are faster for accessing individual elements than arrays

     Statement2: Array is faster when it comes to removing or adding elements than list

  1. Both statements are true

  1. 1 is true, 2 is false

Both are false

  1. 2 is true, 1 is false

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is used to break out of a loop?

return

break

end

pass

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

str= “ I am 18 years old .\n I can vote.”

       What is “\n” (backslash n) command used for ?


  1. Create space in between words

  1. Shift the text to next line

  1. Remove the text 

  1. Delete the space in between two words

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Fill in the blanks with the name of the appropriate module to get the output "6"

maths

math

mathematics

numpy

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Find the output of the code

[50, 100, 150, 200, 1, 50, 5]

[50, 100, 150, 200, 1, 50, 5, 1, 50, 5]


[50, 100, 150, 200]

AttributeError

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?