Skip to content

Tag Archives: Miscellaneous

Which of the following is correct about Python? (A) It supports automatic garbage collection. (B) It can be easily integrated with C, C++, COM, ActiveX,… Read More
To start Python from the command prompt, use the command ______ (A) execute python (B) go python (C) python (D) run python Answer: (C) Explanation:… Read More
________ is a simple but incomplete version of a function. (A) Stub (B) Function (C) A function developed using bottom-up approach (D) A function developed… Read More
Given a string s = “Welcome”, which of the following code is incorrect? (A) print s[0] (B) print s.lower() (C) s[1] = ‘r’ (D) print… Read More
What does ~~~~~~5 evaluate to? (A) +5 (B) -11 (C) +11 (D) -5 Answer: (A) Explanation: ~x is equivalent to -(x+1).Quiz of this QuestionPlease comment… Read More
Which of the following is not a complex number? (A) k = 2 + 3j (B) k = complex(2, 3) (C) k = 2 +… Read More
What is the output of the following program : print 0.1 + 0.2 == 0.3 (A) True (B) False (C) Machine dependent (D) Error Answer:… Read More
Which module in Python supports regular expressions? (A) re (B) regex (C) pyregex (D) None of the above Answer: (A) Explanation: re is a part… Read More
Given a function that does not return any value, what value is shown when executed at the shell? (A) int (B) bool (C) void (D)… Read More
What is the output of the following program : print "Hello World"[::-1] (A) dlroW olleH (B) Hello Worl (C) d (D) Error Answer: (A) Explanation:… Read More