Welcome to www.mcqtutorial.com!!!!
      
      
MCQ Tutorial Search
Home Search Add Question Today's History Discussion Board Job Portal Python Basics Core Data Types

String

List Mock Test Contact Feedback
Home
Search
Add Question
Today's History
Discussion Board
Job Portal
Python
Basics
Core Data Types

String

List
Mock Test
Subscribe/Unsubscribe
Email:
Social Media
Facebook

Misc Tutorials

References

Question and Answer Tutorial
Tutorials Point
Stack Overflow

MCQ Tutorial - Python->String

Previous 1 2 Next
6.) What is the output when following statement is executed?

>>>print 'new' 'line'
Options are:
A.) Output equivalent to print 'new
line'
B.) newline
C.) Error
D.) new line
7.) What is the output when following statement is executed?

>>>print 'x97x98'
Options are:
A.) x97x98
B.) Error
C.) 97
98
D.) _~
8.) What is the output when following code is executed?

>>>str1="helloworld"
>>>str1[::-1]
Options are:
A.) world
B.) dlrowolleh
C.) helloworld
D.) hello
9.) What is the output if following code executed?

print 0xA + 0xB + 0xC
Options are:
A.) Error
B.) 33
C.) 0x22
D.) 0xA0xB0xC
                        
Previous 1 2 Next
Comment:
Name:Email:
Contact No.:
Copyright © 2014 by SBJ Group. All Rights Reserved. Developed and maintained by SBJ Group. Supported on Internet Explorer browser only