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
Basics of programming - Quiz - 01

Quiz
•
University - Professi...
20 questions
Python Recap

Quiz
•
7th Grade - University
20 questions
Introduction to Python

Quiz
•
University
20 questions
PHP Quiz 1

Quiz
•
University
20 questions
quiz dasar python

Quiz
•
1st Grade - University
20 questions
Basic Python

Quiz
•
University
26 questions
String in C Programming

Quiz
•
University
20 questions
Python Strings

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade