31 solutions available
Question 1Aashna has written following code :a = 5 b = '5' c = "5" d = 5.0(a) What are the data types of a, b, c, d ?(b) Are a, b, c, d storing...
Question 2Anant has written following expressions in Python 2.7 :a = - 4 % 1.5 b = - 4 // 1.5 c = 4.0 / 5 d = 4 / 5(a) Find out the values stored by...
Question 1Which statement/function will you use to display something on screen ?DisplayprintPRINTdisplay
Question 2Which statement/function will you use to get value for a variable from keyboard ?getcinraw_inputraw_in
Question 3Which of these is not a Python data type ?intlongfloatNUMBER
Question 4In the following code a = '5'. a is a ............... :intstringfloatnumber
Question 5What is the output of following code ?print 8 >= 8 8 >= 8FalseTrueError
Question 6What is the output of following code ?print "8 >= 8" 8 >= 8FalseTrueError
Question 7What will be the output of following code ?print(8 >= 8) 8 >= 8FalseTrueError
Question 8What will be the output ofprint 3*2**2 81183612
Question 9What will be the output ofprint (3*2)**2 81183612
Question 10Which of the following has the highest precedence in an expression ?Exponentiation (**)Multiplication (*)Division (/)Parenthesis (())
Question 1What are tokens in Python ? How many types of tokens are allowed in Python ? Examplify your answer.
Question 2How are keywords different from identifiers?
Question 3What are literals in Python ? How many types of literals are allowed in Python ?
Question 4What are operators ? What is their function ? Give examples of some unary and binary operators.
Question 5What all components can a Python program contain ?
Question 6What are data types ? How are they important ?
Question 7How many integer types are supported by Python ? Name them.
Question 8Write a program to input a number n and print n, n2, n3.
Question 9What is meant by token ? Name the tokens available in Python.
Question 10What are keywords ? Can keywords be used as identifiers ?
Question 11What is an identifier ? What are the identifier forming rules of Python ?
Question 12What are literals ? How many types of literals are available in Python ?
Question 13How many types of integer literals are allowed in Python ? How are they written ?
Question 14What kind of literals are these : 011, 0X2A, 17, 014, 0XBC1 ?
Question 15How are nongraphic characters represented in Python ?
Question 16What are string-literals in Python ? How many ways, can you create String literals in Python ?
Question 17What is meant by a floating-point literal in Python ? How many ways can a floating literal be represented into ?
Question 18What are the two Boolean literals in Python ?
Question 19What kind of program elements are these: 'a', 4.38925, "a", main( ) ?