AWS Python Booster Day 3

AWS Python Booster Day 3

Professional Development

10 Qs

quiz-placeholder

Similar activities

Python Functions

Python Functions

Professional Development

10 Qs

pyhthon condition statement

pyhthon condition statement

Professional Development

10 Qs

Python Quiz : Loop

Python Quiz : Loop

Professional Development

13 Qs

Flutter_Q5

Flutter_Q5

Professional Development

10 Qs

day8

day8

Professional Development

10 Qs

Quiz 1 Internship

Quiz 1 Internship

Professional Development

15 Qs

Python training series quiz

Python training series quiz

Professional Development

9 Qs

Python LIST

Python LIST

Professional Development

10 Qs

AWS Python Booster Day 3

AWS Python Booster Day 3

Assessment

Quiz

Professional Development

Professional Development

Medium

Created by

CloudThat Technologies

Used 4+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The first character in a string is at index 1.

True

False

May be

None of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which print output is the result of the following code?

word = "windows"

print(word[-1])

"w"

"s"

"i"

" " (empty string)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which choice will print the word "tac", given the following variable declaration?

word = "cat"

print(word[::-1])

print(word[::1])

print(word[0:1:2])

print(word[2:1:0])

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The .count() string method returns the number of times a for/in loop iterates.

True

False

May be

None of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which string method returns an index of first character or substring matches?

.find()

.count()

.isalpha()

while

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which choice is a valid Python code to store the length of the given string variable 'word' in 'x'?

word = "Python"

x = len(word)

x = word.len()

x.length(word)

for x in length of word

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is a valid way to initialize a Python list?

scores = [11, 8, 0, 24, 31, 12, 19]

listdef scores(11, 8, 0, 24, 31, 12, 19)

scores.list(11, 8, 0, 24, 31, 12, 19)

scores = {11:8:0:24:31:12:19}

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?