Courses
Tutorials
Jobs
Practice
Contests
Data Structure
Java
Python
HTML
Interview Preparation
Trending Now
DSA
Web Tech
Foundational Courses
Data Science
Practice Problem
Python
Machine Learning
JavaScript
System Design
Django
DevOps Tutorial
Java
C
C++
ReactJS
NodeJS
CP Live
Aptitude
Puzzles
Projects
Python-Quizzes | Python Dictionary Quiz | Question 24
Question 24:Find the output of the following program:[sourcecode language="Python3"]dictionary = {1:'1', 2:'2', 3:'3'} del dictionary[1] dictionary[1] = '10'del dictionary...
Read More
Python-Quizzes
Python-Quizzes | Python Dictionary Quiz | Question 23
Question 23:Find the output of the following program:[sourcecode language="Python3"]dictionary = {} dictionary[1] = 1dictionary['1'] = 2dictionary[1] += 1sum = 0for k in d...
Read More
Python-Quizzes
Python-Quizzes | Python Dictionary Quiz | Question 22
Question 22:Find the output of the following program:[sourcecode language="Python3"]a ={} a['a']= 1a['b']=[2, 3, 4] print(a) [/sourcecode](A) {‘b’: [2], ‘a’: 1}(B) {'a': 1...
Read More
Python-Quizzes
Python-Quizzes | Python Dictionary Quiz | Question 21
Question 21:Find the output of the following program:[sourcecode language="Python3"]test = {1:'A', 2:'B', 3:'C'} del test[1] test[1] = 'D'del test[2] print(len(test)) [/so...
Read More
Python-Quizzes
Python-Quizzes | Python Dictionary Quiz | Question 20
Question 20:Find the output of the following program:[sourcecode language="Python3"]a = {} a[1] = 1a['1'] = 2a[1]= a[1]+1count = 0for i in a: count += a[i] print(count...
Read More
Python-Quizzes
Python-Quizzes | Python Dictionary Quiz | Question 19
Question 19:Find the output of the following program:[sourcecode language="Python3"]dictionary ={1:geek, 2:for, 3:geeks} del dictionary [/sourcecode](A) del deletes the en...
Read More
Python-Quizzes
Python-Quizzes | Python Dictionary Quiz | Question 18
Question 18:Find the output of the following program:[sourcecode language="Python3"]dictionary = {geek:10, for:45, geeks: 90} print(geek in dictionary) [/sourcecode](A) 10...
Read More
Python-Quizzes
Python-Quizzes | Python Dictionary Quiz | Question 17
Question 17:Find the output of the following program:[sourcecode language="Python3"]d1 = {john:40, peter:45} d2 = {john:466, peter:45} print (d1 d2) [/sourcecode](A) True...
Read More
Python-Quizzes
Python-Quizzes | Python Dictionary Quiz | Question 16
Question 16:Find the output of the following program:[sourcecode language="Python3"]numberGames = {} numberGames[(1,2,4)] = 8numberGames[(4,2,1)] = 10numberGames[(1,2)] = ...
Read More
Python-Quizzes
Python-Quizzes | Python Dictionary Quiz | Question 15
Question 15:Find the output of the following program:[sourcecode language="Python3"]temp = {'GFG' : 1, 'Facebook' : 2, 'Google' : 3 } for (key, valu...
Read More
Python-Quizzes
Python-Quizzes | Python Dictionary Quiz | Question 14
Question 14:Find the output of the following program:[sourcecode language="Python3"]temp = dict() temp['key1'] = {'key1' : 44, 'key2' : 566} temp['key2'] = [1, 2, 3, 4] fo...
Read More
Python-Quizzes
Python-Quizzes | Python Dictionary Quiz | Question 13
Question 13:Find the output of the following program:[sourcecode language="Python3"]dictionary1 = {'GFG' : 1, 'Google' : 2, 'GFG' : 3 } ...
Read More
Python-Quizzes
Python-Quizzes | Python Dictionary Quiz | Question 12
Question 12:Find the output of the following program:[sourcecode language="Python3"]dictionary1 = {'Google' : 1, 'Facebook' : 2, 'Microsoft' : 3 ...
Read More
Python-Quizzes
Python-Quizzes | Python Dictionary Quiz | Question 11
Question 11:Find the output of the following program:[sourcecode language="Python3"]dictionary = {'GFG' : 'geeksforgeeks.org', 'google' : 'google.com', ...
Read More
Python-Quizzes
Python-Quizzes | Python Dictionary Quiz | Question 10
Question 10:Find the output of the following program:Which of these about a dictionary is false?(A) The values of a dictionary can be accessed using keys(B) The keys of a ...
Read More
Python-Quizzes
1
...
7441
7442
7443
...
11482