Team2_quiz

Team2_quiz

Professional Development

30 Qs

quiz-placeholder

Similar activities

Python Coding Specialist Exam

Python Coding Specialist Exam

9th Grade - Professional Development

31 Qs

Their Python Exam

Their Python Exam

9th Grade - Professional Development

31 Qs

Bridge Course - Screening Test

Bridge Course - Screening Test

10th Grade - Professional Development

30 Qs

TN +2 CSC  - LESSON 1 TO 10 & 12

TN +2 CSC - LESSON 1 TO 10 & 12

Professional Development

25 Qs

Python: Quiz 2.03 - Basic Data Types

Python: Quiz 2.03 - Basic Data Types

Professional Development

25 Qs

Year 9 Python: End of Unit assessment

Year 9 Python: End of Unit assessment

Professional Development

27 Qs

WP CHAPTER1 TO 3

WP CHAPTER1 TO 3

Professional Development

32 Qs

Python Lists and Dictionaries

Python Lists and Dictionaries

Professional Development

25 Qs

Team2_quiz

Team2_quiz

Assessment

Quiz

Computers

Professional Development

Medium

Created by

Sharanya Ravikanti

Used 1+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

str1="You only fail when you stop trying"

str2="A"

for i in str2:

   print(str1,end=",")


You,only,fail,when,you,stop,trying


You only fail when you stop trying,


Y,o,u, ,o,n,l,y, ,f,a,i,l, ,w,h,e,n, ,y,o,u, ,s,t,o,p, ,t,r,y,i,n,g


None of the above


2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt


You can traverse in a given string using__?


for loop


while loop


both for and while loop


None of the above


3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

string="Vasavi"

for i in string[ : :-1]:

     print(i,end=' ')


Error


Vasavi


i v a s a V


V a s a v i


4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

st="Python is similar to java"

print(st.replace("Python","java"))


Python is similar to Python 


java is similar to java


Python is similar to java


None of the above 


5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The count() method: 


returns the length of the string.


returns the index of the specified value appeared in the string.


returns the number of times the specified value appeared in the string.


None of the above 


6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You can't slice a ___________.


Tuple


String

Dictionary

list

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The ord() function returns the character represented by ASCII number .


True

False

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?