Constants in Python

Constants in Python



Qus. 1 : Python supports the creation of anonymous functions at runtime, using a construct called

  1. pi
  2. anonymous
  3. lambda
  4. none of the above
Qus. 2 : Which of the following are valid escape sequences in Python ?

  1. \n
  2. \t
  3. \\
  4. All of the above
Qus. 3 : ____is a string literal denoted by triple quotes for providing the specifications of certain program elements.

  1. Interface
  2. Modularity
  3. Client
  4. Docstring
Qus. 4 : Which is a valid Constant in python

  1. Hello
  2. 949227
  3. True
  4. "2'

Programs

python program to input a welcome message and print it

View Solution


python program to print number of seconds in year

View Solution


Python program to calculate GST Goods and Service Tax

View Solution


python program to find the ASCII Value of entered character

View Solution


python program that display a joke but display the punch line only when the user presses enter key

View Solution


python program to generate the following output 5 10 9

View Solution


python program to print 5@10@9

View Solution


CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad