Keyword

Result: 213 questions

If the following code is run in Python, what would be the result?

num = '5'*'5'
Quiz

If the following statement is run in Python, what will be the result?

print abc
Quiz

What is the output of the below Python code?

a = [1,2,3,None,(),[],]
print len(a)
Quiz

What would be the result of the following expression in Python?

print 3/5
Quiz

What is the output of the following Python code?

tinytuple = (123, 'techbeamers')
print tinytuple * 2
Quiz

Is it fast?

Answer:

Apple boasts that Swift is up to 2.6x faster than Objective-C and 8.4x faster than Python 2.7. And why should you care about how quickly code executes? Well, faster running code makes for more efficient and smoother running apps, which makes for a better experience for your user.

View

What other languages is it similar to?

Answer:

Swift is probably most similar in look and feel to Ruby or Python. Though you’ll also probably recognize some C syntax.

View

Which of the following is the use of id() function in python?

Quiz

Which module in Python supports regular expressions?

Quiz

To start Python from the command prompt, use the command ______

Quiz

Which of the following is correct about Python?

Quiz

Which of the following function convert a string to a float in python?

Quiz

What is the output of the following code? Consider Python 2.7.

print tuple[1:3] if tuple == ( 'abcd', 786 , 2.23, 'john', 70.2 ) else tuple()

 

Quiz

© 2017 QuizBucket.org