Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
Python
20.1k+ articles
Python Programs
4.1k+ articles
Functions
87 articles
Python-Miscellaneous
41 articles
Python-Quizzes
17 articles
Miscellaneous
13 articles
Output Type
11 articles
Python-Quizzes-Functions
6 articles
Python-Output Type
6 articles
Python-Quizzes-Miscellaneous
5 articles
Programming Language
>
Python
>
Python-Quizzes
Python-Quizzes
140+ posts
Popular Articles
Recent Articles
Python program to remove last N characters from a string
Last Updated: 07 January 2025
In this article, we’ll explore different ways to remove the last N characters from a string in Python. This common string manipulation tas
...read more
Strings
Python
Python-Quizzes
Python Programs
Python-string-functions
DSA
Python-Quizzes | Python Dictionary Quiz | Question 25
Last Updated: 17 September 2020
Question 25:Find the output of the following program:[sourcecode language="Python3"]counter = {} def addToCounter(country): if country i
...read more
Python-Quizzes
Python-Quizzes | Python List Quiz | Question 5
Last Updated: 17 September 2020
Find the output of the following program:[tabby title="Python3"][sourcecode language="python3"]check1 = ['Learn', 'Quiz', 'Practice', 'Contr
...read more
Python-Quizzes
Similar Topics
Python
20.1k+ articles
Python Programs
4.1k+ articles
Functions
87+ articles
Python-Miscellaneous
41+ articles
Python-Quizzes
17+ articles
Miscellaneous
13+ articles
Output Type
11+ articles
Python-Quizzes-Functions
6+ articles
Python-Output Type
6+ articles
Python-Quizzes-Miscellaneous
5+ articles
Python-Quizzes | Python List Quiz | Question 4
Last Updated: 17 September 2020
Find the output of the following program:[tabby title="Python3"][sourcecode language="python3"]def addToList(listcontainer): listcontainer
...read more
Python-Quizzes
Number Guessing Game in Python using Binary Search
Last Updated: 27 January 2023
In the number guessing game, the user selects a number within a defined range and then the program guesses the number. If the number guessed
...read more
Divide and Conquer
Searching
Mathematical
Project
Python
Competitive Programming
Programming Language
Recursion
School Programming
Python-Quizzes
DSA Quiz
Python Programs
How To
DSA
Python-Quizzes | Functions | Question 9
Last Updated: 28 June 2021
time.time() returns ________(A) the current time(B) the current time in milliseconds(C) the current time in milliseconds since midnight(D) t
...read more
Python-Quizzes
Python-Quizzes
Functions
Python-Quizzes-Functions
Python-Quizzes | Miscellaneous | Question 7
Last Updated: 28 June 2021
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 s.st
...read more
Miscellaneous
Python-Quizzes-Miscellaneous
Python-Quizzes
Python-Quizzes
Python | Output Type | Question 2
Last Updated: 28 June 2021
What is the output of the expression : 3*1**3(A) 27(B) 9(C) 3(D) 1 Answer: (C) Explanation: Precedence of ** is higher than that of 3, thus
...read more
Output Type
Python-Quizzes
Python-Output Type
Python | Data Type | Question 1
Last Updated: 28 June 2021
Which of these is not a core data type?(A) Lists(B) Dictionary(C) Tuples(D) Class Answer: (D) Explanation: Class is a user defined data type
...read more
Python-Quizzes
Python-Data Type
Data Type
Python | Miscellaneous | Question 1
Last Updated: 28 June 2021
What is the output of the following program :[tabby title="Python3"][sourcecode language="python3"]print \"Hello World\"[::-1][/sourcecode][
...read more
Miscellaneous
Python-Quizzes-Miscellaneous
Python-Quizzes
Python-Quizzes
Python | Operators | Question 2
Last Updated: 28 June 2021
Which function overloads the operator?(A) more()(B) gt()(C) ge()(D) None of the above Answer: (D) Explanation: rshift() overloads the oper
...read more
Python-Quizzes
Operators
Python-Operators
Python | Functions | Question 6
Last Updated: 28 June 2021
Which of the following is the use of id() function in python?(A) Id returns the identity of the object(B) Every object doesn’t have a uniq
...read more
Python-Quizzes
Functions
Python-Functions
Python | Functions | Question 5
Last Updated: 28 June 2021
What is called when a function is defined inside a class?(A)Module(B)Class(C)Another Function(D)Method Answer: (D)Explanation:Explanation:
...read more
Python-Quizzes
Functions
Python-Functions
Python | Functions | Question 4
Last Updated: 18 January 2021
What is the output of the following program : [sourcecode language="python3"]y = 8z = lambda x : x * yprint (z(6))[/sourcecode](A) 48(B) 14(
...read more
Python-Quizzes
Functions
Python-Functions
Python | Functions | Question 2
Last Updated: 05 November 2020
What is the output of the following code :[sourcecode language="python"]L = ['a','b','c','d']print(.join(L))[/sourcecode](A) Error(B) None(C
...read more
Python-Quizzes
Python-Quizzes
Functions
Python-Quizzes-Functions
First
1
2
3
4
5
6
7
8
>>
Last
First
1
2
3
4
5
6
>>
Last
First
1
2
3
4
>>
Last
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !