ExamLookup
Menu mobile
Home
Current Affairs
General Knowledge
Computer
Python
HTML
Programming and Problem Solving through Python
: Functions in Python
निम्नलिखित में से कौन सा फंक्शन एरर नहीं देता है? , Which of the following functions does not throw an error?
Which of the following functions does not throw an error?
A.
ord()
ord()
B.
ord(‘ ‘)
ord(‘ ‘)
C.
ord(”)
ord(”)
D.
ord(“”)
ord(“”)
Solution
B. ord(‘ ‘)
Explanation
The function ord() accepts a character. Hence ord(), ord(”) and ord(“”) throw errors. However the function ord(‘ ‘) does not throw an error because in this case, we are actually passing a blank space as an argument. The output of ord(‘ ‘) is 32 (ASCII value corresponding to blank space).
CCC Online Test 2021
CCC Practice Test Hindi
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
O Level NIELIT Study material and Quiz
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Exam Quiz
Website development Company in Allahabad