Python/ Sample Test,Sample questions

Question:
Data items having fixed value are called _____

1.Identifiers

2.functions

3.Keywords

4.literals

Posted Date:-2021-12-06 22:11:39


Question:
Escape sequences are treated as _____.

1.strings

2.characters

3.integers

4.none of these

Posted Date:-2021-12-06 22:12:56


Question:
Names given to different parts of a Python program are _____.

1.Identifiers

2.functions

3.Keywords

4.literals

Posted Date:-2021-12-06 18:50:06


Question:
Select the reserved keyword in Python.

1.else

2.import

3.print

4.all of these

Posted Date:-2021-12-06 22:18:30


Question:
Special meaning words of Pythons, fixed for specific functionality are called _____.

1.Identifiers

2.functions

3.Keywords

4.literals

Posted Date:-2021-12-06 18:49:11


Question:
The default separator character of print() is _____.

1.tab

2.space

3.newline

4.dot

Posted Date:-2021-12-06 22:33:59


Question:
The input() returns the value as _____ type.

1.integer

2.string

3.floating point

4.None of the these

Posted Date:-2021-12-06 22:24:53


Question:
The lines beginning with a certain character, and which are ignored by a compiler and not executed, are called _____.

1.operators

2.operands

3.functions

4.comments

Posted Date:-2021-12-06 22:16:34


Question:
To convert the read value through input() into a floating point number, _____ () is used.

1.floating

2.Float

3.int

4.integer

Posted Date:-2021-12-06 22:31:49


Question:
To convert the read value through input() into integer type, _____ () is used.

1.floating

2.float

3.int

4.integer

Posted Date:-2021-12-06 22:31:05


Question:
To give a different separator with print() _____ argument is used.

1.sep

2.separator

3.end

4.tab

Posted Date:-2021-12-06 22:34:50


Question:
To print a line a text without ending it with a newline, _____ argument is used with print()

1.sep

2.newline

3.end

4.next

Posted Date:-2021-12-06 22:33:11


Question:
Value 0.000615 is equivalent to

1.615E3

2.615E-3

3.0.615E3

4.0.615E-3

Posted Date:-2021-12-06 22:15:52


Question:
Which of the following functions print the output to the console ?

1.Output()

2.Print()

3.Echo()

4.print()

Posted Date:-2021-12-06 22:17:41


Question:
Which of the following is an escape sequence for a newline character?

1.a

2.

3.

4.

Posted Date:-2021-12-06 22:14:41


Question:
Which of the following is an escape sequence for a tab character?

1.a

2.

3.

4. 

Posted Date:-2021-12-06 22:13:47


Question:
Which of the following not a legal integer type value in Python?

1.Decimal

2.Octal

3.Hexadecimal

4.Roman

Posted Date:-2021-12-06 22:35:36


Question:
Which of the following symbols are not legal in an octal value?

1.7

2.8

3.9

4.None of the above

Posted Date:-2021-12-06 22:39:33


More MCQS

  1. help4info.com
  2. help4info.com
  3. help4info.com
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!