PYTHON PROGRAMMING STRING Q6

Quiz
•
Computers
•
University
•
Medium
Darwin Vargas
Used 8+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
A. H
B. e
C. l
D. o
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you get the length of a string s in Python?
A. s.size()
B. s.len()
C. length(s)
D. len(s)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
A. P
B. n
C. o
D. h
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method can be used to convert all characters in a string to uppercase?
A. upper()
B. uppercase()
C. toUpperCase()
D. capitalize()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
A. hello world
B. Hello World
C. HELLO WORLD
D. Hello world
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you concatenate two strings str1 and str2 in Python?
A. str1.add(str2)
B. str1 + str2
C. concat(str1, str2)
D. str1.append(str2)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
A. 1
B. 2
C. 3
D. -1
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Programming in C(1)

Quiz
•
University
20 questions
C Programming Unit-1 Test-2

Quiz
•
University
20 questions
Ujian_web

Quiz
•
University
20 questions
jft besic

Quiz
•
University
30 questions
Tech Quest Level-2

Quiz
•
University
30 questions
Computer Programming-2

Quiz
•
University
20 questions
Software Engineering

Quiz
•
University
20 questions
UNIT 1 PYTHON

Quiz
•
University
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
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University