Home / Programming Questions / Page 4
Q. What is the output of the following program? D = {1 : 1, 2 : '2', '1' : 1, '2' : 3} D['1'] = 2 print(D[D[D[str(D[1])]]])
Q. What is the output of the following program? D = dict() for i in range (3): for j in range(2): D[i] = j print(D)
Q. What is the output of the following program? from math import * a = 2.13 b = 3.7777 c = -3.12 print(int(a), floor(b), ceil(c), fabs(c))
Q. What is the output of the following program?
Q. What is the output of the following program? import string import string Line1 = "And Then There Were None" Line2 = "Famous In Love" Line3 = "Famous Were The Kol And Klaus" Line4 = Line1 + Line2 + Line3 print(string.find(Line1, 'Were'), string.count((Line4), 'And'))
Q. What is the output of the following program? line = "What will have so will" L = line.split('a') for i in L: print(i, end=' ')
Q. What is the length of sys.argv?
Q. What is the output of the following code? def foo(k): k[0] = 1 q = [0] foo(q) print(q)
....
Jump to Go
Bootstrap MCQs
C # MCQs
C ++ MCQs
C Programming MCQs
CSS MCQs
HTML MCQs
JAVA MCQs
Javascript MCQs
Linux MCQs
Microsoft Access MCQs
Microsoft Excel MCQs
Microsoft Power Point MCQs
Microsoft Word MCQs
MS Dos MCQs
MySQL MCQs
Perl MCQs
PHP MCQs
Python MCQs
Ruby MCQs
SQL Server MCQs
Download our easy to use, user friendly Android App from Play Store. And learn MCQs with one click.
Menu
Donate Us
Quiz
Forum
Hindi MCQs
Topics
Test Series
Programming Questions
Advance Search
Shop
Duo Test
Login
Sign Up