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
Frontend Developer Roadmap 2024
Frontend development means to design the face of a website or application. It involves working on the appearance of the website. Building interactive buttons, using images...
Read More
Python | Variables Quiz | Question 9
What is the scope of a global variable in Python? (A)Limited to the function it is defined in(B)Limited to the module it is defined in(C)Limited to ...
Read More
Python | Variables Quiz | Question 7
What is the output of the following code?x = 10y = 5z = x + yprint(z) (A)10(B)15(C)"10+5"(D)Error Answer: (B) Explanation: ...
Read More
Python | Variables Quiz | Question 6
Which of the following data types is immutable in Python? (A)List(B)Tuple(C)Set(D)Dictionary Answer: (B) Explanation: ...
Read More
Python | Variables Quiz | Question 4
Which of the following is a valid variable name in Python? (A)1variable(B)my_variable(C)global(D)variable-1 Answer: (B) Expl...
Read More
Python | Variables Quiz | Question 1
What is a variable in Python? (A)A reserved word(B)A data type(C)A location in memory to store data(D)A function Answer: (C) ...
Read More
Python | Namespaces and Scope Quiz | Question 19
In Python, what is the purpose of the super() function? (A)To call a method in the parent class(B)To create a superclass(C)To access global variable...
Read More
Python | RegEx MCQ | Question 20
In RegEx, what does the "(?=...)" construct represent? (A)Positive lookahead(B)Positive lookbehind(C)Negative lookahead(D)Negative lookbehind Answer...
Read More
Python | RegEx MCQ | Question 7
What is the purpose of the re.search() function in Python? (A)Searches for a pattern at the end of a string(B)Searches for a pattern anywhere in a s...
Read More
Python | RegEx MCQ | Question 3
Which character is used to represent zero or more occurrences of the preceding character in a regular expression? (A)+(B)?(C)*(D)$ Answer: (C) ...
Read More
Python | Namespaces and Scope Quiz | Question 24
What is the purpose of the 'staticmethod' decorator in Python? (A)To define a static method in a class(B)To access global variables(C)To create a st...
Read More
Python | Namespaces and Scope Quiz | Question 21
What is the purpose of the threading module in Python? (A)To create threads and implement multithreading(B)To access global variables(C)To define cl...
Read More
Python | Namespaces and Scope Quiz | Question 10
What does the locals() function return in Python? (A)All global variables(B)All local variables(C)Both global and local variables(D)The current name...
Read More
Python | Namespaces and Scope Quiz | Question 9
What is the purpose of the __init__ method in Python classes? (A)To initialize the class object(B)To create a new instance of the class(C)To define ...
Read More
Python | Namespaces and Scope Quiz | Question 2
In Python, what is the scope of a variable declared inside a function? (A)Global scope(B)Local scope(C)Module scope(D)Class scope Answer: (B) ...
Read More
Python | RegEx MCQ | Question 11
What does the \s in a regular expression pattern represent? (A)Any character(B)Any digit(C)Any whitespace character(D)Any special character Answer: ...
Read More
1
...
1343
1344
1345
...
11271