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 | OOPs quiz | Question 3
What is an instance variable in a class? (A)A variable shared among all instances of a class(B)A variable defined outside the class(C)A variable spe...
Read More
Misc
Python | While Loop Quiz | Question 17
In Python, can a while loop have multiple else blocks? (A)Yes(B)No(C)Only if the loop has multiple conditions.(D)Only if the loop uses nested if sta...
Read More
Misc
Python | While Loop Quiz | Question 16
What is the purpose of the assert statement in a while loop? (A)To terminate the loop.(B)To check if a condition is true and raise an error if not.(...
Read More
Misc
Python | While Loop Quiz | Question 13
What is the purpose of the continue statement in a while loop? (A)Terminates the loop.(B)Skips the remaining code in the loop and moves to the next ...
Read More
Misc
Python | While Loop Quiz | Question 8
What is the output of the following Python code?count = 0while count 3: print("Hello") count += 1else: print("Else block") (A)Prints "Hello" three ...
Read More
Misc
Python | Numpy Quiz | Question 12
How can you extract all elements from a NumPy array arr that are greater than 10? (A)filtered_elements = arr[arr 10](B)filtered_elements = np.extra...
Read More
Misc
Python | Pandas Quiz | Question 20
How can you save a Pandas DataFrame to a CSV file? (A)df.save_csv("filename.csv")(B)df.write_csv("filename.csv")(C)df.to_csv("filename.csv")(D)df.ex...
Read More
Misc
Python | Pandas Quiz | Question 11
What does the groupby() function in Pandas allow you to do? (A)Group DataFrame columns(B)Group DataFrame rows based on a condition(C)Group data base...
Read More
Misc
Python | Pandas Quiz | Question 6
What is the purpose of the head() method in Pandas? (A)To display the last few rows of a DataFrame(B)To display the first few rows of a DataFrame(C)...
Read More
Misc
Python | Pandas Quiz | Question 4
What is the default index type when a DataFrame is created? (A)Numeric index starting from 1(B)Alphanumeric index based on row number(C)Numeric inde...
Read More
Misc
Python | OOPs quiz | Question 15
How can you achieve method overloading in Python? (A)By defining multiple methods with the same name in a class(B)By using the @overload decorator(C...
Read More
Misc
Python | OOPs quiz | Question 11
In OOP, what is the benefit of using encapsulation? (A)Improved code organization(B)Code reusability(C)Enhanced code readability(D)Increased system ...
Read More
Misc
Python | While Loop Quiz | Question 14
How does the while-else construct work in Python? (A)It is not a valid construct in Python.(B)The else block always runs after the loop.(C)The else ...
Read More
Misc
Python | While Loop Quiz | Question 9
What does the following Python code do?num = 10while num 0: if num % 2 == 0: print(num, end=" ") num -= 1 (A)Prints even numbers in reverse order...
Read More
Misc
What is 0.05 as a Percent?
A decimal is a numerical representation that expresses a quantity as a fraction of 100, with the base unit as 1. In contrast, a percent is a way to represent a quantity a...
Read More
Mathematics
School Learning
Maths MAQ
Math-Queries
1
...
1219
1220
1221
...
11245