MCQ 11 MarkWhich of the following lines will give error?Aprint ("22"+"2")Bprint("12"+2)Cprint(3+"22")✓both b. and c.AnswerCorrect option: D. both b. and c.DView full question & answer→
MCQ 21 MarkWhich of the following is the name of a function that displays in output screen?AdispBdisplay✓printDprintallAnswerCorrect option: C. printCView full question & answer→
MCQ 31 MarkAssume that a list ttsl exists. What does the below line display?print (ttsl[::-1])AThe whole of the arrayBThe array starting with first element, and alternating✓The reverse of the arrayDNone of theseAnswerCorrect option: C. The reverse of the arrayCView full question & answer→
MCQ 41 MarkWhat number does the list index start from?✓0B1C2D3AnswerCorrect option: A. 0AView full question & answer→
MCQ 51 MarkWhich of the following is a function in Python?✓range()Bchomp()Cnewline()Ddelta()AnswerCorrect option: A. range()AView full question & answer→
MCQ 61 MarkWhich of the following is NOT a logical operator?AandBorCnot✓sineAnswerCorrect option: D. sineDView full question & answer→
MCQ 71 MarkWhich of the following is NOT the name of a type of loop in Python?AforBwhile✓repeatDNone of theseAnswerCorrect option: C. repeatCView full question & answer→
MCQ 81 MarkWhich of the following is output due to the below line?print ("2" + "2")A4✓22C222D10AnswerCorrect option: B. 22BView full question & answer→
MCQ 91 MarkWhat does elif signify in Python?AA part of conditional use in PythonBA functionCA keyword in Python✓Both a. and c.AnswerCorrect option: D. Both a. and c.DView full question & answer→
MCQ 101 MarkPython, in computer world, refers to:AA type of websiteBA type of email client✓A programming languageDA type of laptopAnswerCorrect option: C. A programming languageCView full question & answer→
MCQ 111 MarkWhat will the output of the following expression in the Python shell be?2 ** 3 ** 2A256B64C512D128AnswerselfView full question & answer→
MCQ 121 MarkIf the length of the string, stored in a, is 5, what is the output of the following line?print (len(a + a))AGives an errorB8C10D12AnswerselfView full question & answer→
MCQ 131 MarkIf the values of a and b are of string data type, which of the following has meaning?Aa/bBb-aCa-bDa+bAnswerselfView full question & answer→
MCQ 141 MarkIf the value of a is -14 and b is -17, what will the following print?print(a - b)A2B3C-2D-3AnswerselfView full question & answer→
MCQ 151 MarkIf the value of a is 3 and b is 4, what will the following print?print (a > b)A-1B1CTrueDFalseAnswerselfView full question & answer→
MCQ 161 MarkIf the value of len(tts), where tts is a list, is 5, what is the length of the list?A4B5C6D7AnswerselfView full question & answer→