
Team2_quiz

Quiz
•
Computers
•
Professional Development
•
Medium
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
Similar Resources on Wayground
28 questions
Chapter 02 - Operators

Quiz
•
Professional Development
30 questions
Full stack Developer

Quiz
•
Professional Development
25 questions
Python - Strings

Quiz
•
Professional Development
26 questions
Scheduling

Quiz
•
Professional Development
25 questions
Review MySQL

Quiz
•
Professional Development
25 questions
Computer Internal Components Study Guide

Quiz
•
KG - Professional Dev...
34 questions
String methods (Document)

Quiz
•
Professional Development
25 questions
C Language Test 3

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development