Team2_quiz

Team2_quiz

Professional Development

•

30 Qs

quiz-placeholder

Similar activities

Preprocessor Directives

Preprocessor Directives

Professional Development

•

25 Qs

Data Analysis Using Excel Test

Data Analysis Using Excel Test

Professional Development

•

25 Qs

Reckon your Techie Skills-Day3 (DATASTRUCTURES)

Reckon your Techie Skills-Day3 (DATASTRUCTURES)

Professional Development

•

25 Qs

CONTROL STRUCTURES - LIST

CONTROL STRUCTURES - LIST

Professional Development

•

25 Qs

WEBZEN MCQ

WEBZEN MCQ

Professional Development

•

25 Qs

The Best Minecraft Quiz Ever!!!!!

The Best Minecraft Quiz Ever!!!!!

1st Grade - Professional Development

•

25 Qs

About your Teacher

About your Teacher

KG - Professional Development

•

25 Qs

Macromedia Flash

Macromedia Flash

8th Grade - Professional Development

•

26 Qs

Team2_quiz

Team2_quiz

Assessment

Quiz

•

Computers

•

Professional Development

•

Practice Problem

•

Medium

Created by

Sharanya Ravikanti

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?