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
GBlog
Three 90 Challenge: Bigger and Better
As we transit into the new phase, it's essential to fuel our inner drive for success. On popular demand, GeeksforGeeks is happy to announce that we are back with the Thre...
Read More
Python | as a Programming Language | Question 25
The two main types of functions in Python are:(A)System function(B)Custom function(C)Built-in function User defined function(D)User function Answer: (C)Explanation:Quiz ...
Read More
Python | as a Programming Language | Question 23
What is the return type of the function id?(A)float(B)string(C)char(D)int Answer: (D)Explanation:Quiz of this QuestionPlease comment below if you find anything wrong in t...
Read More
Python | as a Programming Language | Question 19
Choose the correct function definition for the following so that it returns true:a = fun(2)b = fun(3)print(a b)(A)class fun: def __init__(self, x): self.x = x ...
Read More
Python | as a Programming Language | Question 17
Guess the output of the following code:def fun(t): t[0] = ['pqr'] t[1] = ['mno'] return id(t)x = ['mno', 'pqr']print(id(x) == fun(x))(A)True(B)False(C)None(D)Erro...
Read More
Python | as a Programming Language | Question 16
Which of the following is not a valid keyword?(A)nonlocal(B)eval(C)pass(D)assert Answer: (B)Explanation:Quiz of this QuestionPlease comment below if you find anything wro...
Read More
Python | as a Programming Language | Question 14
As what datatype are the *args stored, when passed into a function?(A)List(B)Tuple(C)Dictionary(D)Heaps Answer: (B)Explanation:Quiz of this QuestionPlease comment below i...
Read More
Python | as a Programming Language | Question 12
Guess the output of the following code snippet: (A)five five five five(B)five neither thrive three(C)three three three three(D)five neither five neither Answer: (B)Explan...
Read More
Python | as a Programming Language | Question 10
Which of these is not known in Python?(A)Pointers(B)Loops(C)Dynamic Typing(D)All of these Answer: (A)Explanation:Quiz of this QuestionPlease comment below if you find any...
Read More
Python | as a Programming Language | Question 6
How do you make an object from a class do something when it is created?(A)def __onmake__(self, [...]):(B)def __del__(self, [...]):(C)def __create__(self, [...]):(D)def __i...
Read More
Python | as a Programming Language | Question 5
How do you create a new class in PYTHON?(A)class MyClass():(B)class MyClass:(C)class (MyClass)(D)class (MyClass): Answer: (B)Explanation:Quiz of this QuestionPlease comme...
Read More
Python | as a Programming Language | Question 4
How do you create a new class in PYTHON?(A)class MyClass():(B)class MyClass:(C)class (MyClass)(D)class (MyClass): Answer: (B)Explanation:Quiz of this QuestionPlease comme...
Read More
Python | as a Programming Language | Question 3
Quick sort is better than Merge Sort because(A)Merge sort takes more time asymptotically(B)Merge Sort takes more space asymptotically(C)Selection sort is more time efficie...
Read More
Python | as a Programming Language | Question 22
What would be the output of the following code?names1 = ['gfg', 'dsa', 'course']names2 = [name.lower() for name in names1]print(names2[2][0])(A)f(B)d(C)s(D)c Answer: (D)E...
Read More
Python | as a Programming Language | Question 20
Which of the following is used to overload the operator?(A)_more_()(B)_gt_()(C)_ge_()(D)None of these Answer: (D)Explanation:Quiz of this QuestionPlease comment below if...
Read More
Python | as a Programming Language | Question 18
What would be the output of the following code:def fun(): try: return 6 finally: return 5t = fun()print(t)(A)7(B)6(C)5(D)Error Answer: (C)Explanation:...
Read More
1
...
3517
3518
3519
...
11266