NMCI-Skills

In this quiz you will have 10 minutes for taking the quiz

Time is up!


Python Quiz

1 / 5

str1 = "my isname isisis jameis isis bond";
sub = "is";
print(str1.count(sub, 4))

2 / 5

Choose the correct function to get the ASCII code of a character

3 / 5

str = "my name is James bond";
print (str.capitalize())

4 / 5

Strings are immutable in Python, which means a string cannot be modified.

5 / 5

strOne = str("pynative")
strTwo = "pynative"
print(strOne == strTwo)
print(strOne is strTwo)

Your score is

The average score is 73%

0%

Scroll to Top