What happens when this code runs?
Anonymous Quiz
64%
Prints 11
3%
Prints 10
21%
Raises an UnboundLocalError
12%
Prints 1
Which method creates a new array without modifying the original?
Anonymous Quiz
16%
push()
38%
splice()
32%
filter()
13%
pop()
Which data structure uses LIFO (Last In, First Out) order?
Anonymous Quiz
23%
Queue
66%
Stack
9%
Linked List
3%
Heap
Which statement removes a table entirely, including its structure?
Anonymous Quiz
17%
DELETE
17%
TRUNCATE
63%
DROP
3%
REMOVE
What is an API primarily used for?
Anonymous Quiz
4%
Styling a webpage
96%
Allowing different software systems to communicate with each other
0%
Compressing image files
0%
Managing hardware drivers
Which device typically connects multiple devices within the same local network?
Anonymous Quiz
47%
Router
38%
Switch
3%
Firewall
13%
Modem
Topic: Debugging & Code Output
🔍 Quick look before the question:
🔍 Quick look before the question:
def append_item(item, my_list=[]):
my_list.append(item)
return my_list
print(append_item(1))
print(append_item(2))
print(append_item(3))
What is printed on the third call, append_item(3)?
Anonymous Quiz
35%
[3]
54%
[1, 2, 3]
12%
[1, 3]
0%
[2, 3]
What is encapsulation in object-oriented programming?
Anonymous Quiz
4%
Writing code in fewer lines
92%
Bundling data and methods together while hiding internal details
0%
Running code in parallel
4%
Converting code between languages
What does the acronym DOM stand for?
Anonymous Quiz
86%
Document Object Model
4%
Data Object Management
6%
Display Output Module
4%
Document Order Mapping
Why is Merge Sort considered a stable sorting algorithm?
Anonymous Quiz
9%
It never uses recursion
48%
Equal elements keep their original relative order
13%
It always sorts in-place, not out-place
30%
It requires no extra memory
Which SQL clause is used to filter groups after a GROUP BY?
Anonymous Quiz
17%
WHERE
50%
HAVING
15%
FILTER
18%
ORDER BY
Why do interviewers often ask "What is your greatest weakness?"
Anonymous Quiz
7%
To disqualify candidates immediately
93%
To assess self-awareness and how you handle growth areas
0%
To test memorization
0%
To fill time
Which HTTP method is generally considered idempotent, meaning multiple identical requests should have the same effect as one?
Anonymous Quiz
26%
POST
26%
PATCH
11%
DELETE
37%
GET
Which method converts a JSON string into a JavaScript object?
Anonymous Quiz
29%
JSON.stringify()
48%
JSON.parse()
6%
Object.assign()
16%
JSON.toObject()
What does responsive design primarily aim to achieve?
Anonymous Quiz
18%
Faster server response times
79%
Layouts that adapt well to different screen sizes
0%
Reducing HTTP requests
4%
Improving SEO rankings only
What exception does Python raise when you divide by zero?
Anonymous Quiz
14%
ValueError
74%
ZeroDivisionError
10%
ArithmeticError
1%
TypeError
What is the purpose of an API rate limiter?
Anonymous Quiz
0%
To speed up all requests equally
93%
To restrict how many requests a client can make in a given time window
4%
To translate API responses into JSON
4%
To cache database queries
Which statement best explains why binary numbers are used inside computers?
Anonymous Quiz
6%
Binary calculations are always shorter
63%
Electronic circuits can reliably represent 2 stable states
9%
Binary stores more information than decimal
22%
CPUs cannot process decimal numbers
What HTTP status code indicates a resource was not found?
Anonymous Quiz
8%
200
6%
301
81%
404
5%
500
Topic: Debugging & Code Output
🔍 Quick look before the question:
🔍 Quick look before the question:
def greet(name):
print("Hello " + name)
greet()