1. What will be the output of above Python code?
str1="6/4"
print("str1")
PYTHON_MODULE3
Quiz
•
Education
•
Professional Development
•
Hard
Sumathi K
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
1. What will be the output of above Python code?
str1="6/4"
print("str1")
1
6/4
1.5
str1
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following will result in an error?
str1="python"
print(str1[2])
str1[1]="x"
print(str1[0:9])
Both (b) and (c)
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of below Python code?
str1="Information"
print(str1[2:8])
format
formatio
orma
ormat
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of below Python code?
str1="poWer"
str1.upper()
print(str1)
POWER
Power
power
poWer
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
str1="Stack of books"
print(len(str1))
13
14
15
16
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
String can be a _________.
Letter
Digit
Whitespace & Symbol
All of the above
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
A string can be assign by enclosing ______ quote.
Single
Double
Triple
All of the above
10 questions
ACOD Workshop 1
Quiz
•
Professional Development
12 questions
python
Quiz
•
Professional Development
11 questions
Indian Economy
Quiz
•
University - Professi...
10 questions
Moringa JavaScript Arrays
Quiz
•
5th Grade - Professio...
10 questions
CodeMonkey Platform Management & Resources
Quiz
•
Professional Development
11 questions
AI Tech Trainee Module 1
Quiz
•
Professional Development
9 questions
day 5
Quiz
•
Professional Development
10 questions
KP9-Events n Exceptions
Quiz
•
Professional Development
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade