19 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 5What 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 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 6What are data types ? How are they important ?
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( ) ?