Py-ngo Workshop Quiz_GDSC

Py-ngo Workshop Quiz_GDSC

University

15 Qs

quiz-placeholder

Similar activities

CSNP-04103 C++ Chapter 8 - Get & Put

CSNP-04103 C++ Chapter 8 - Get & Put

University

10 Qs

c fundamentals

c fundamentals

University

15 Qs

STSCI 3740: Lecture 1

STSCI 3740: Lecture 1

University

10 Qs

Quiz on Live Sound Reinforcement and Performance Technology

Quiz on Live Sound Reinforcement and Performance Technology

University

14 Qs

Mastering Java Concepts

Mastering Java Concepts

University

12 Qs

Genetics Quiz by Ashwini Chalak

Genetics Quiz by Ashwini Chalak

University

10 Qs

Government Policies and Regulations about Food Production

Government Policies and Regulations about Food Production

University

15 Qs

ICfun

ICfun

University

11 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?