Programming Basics
Data Structures and Algorithms
Class/OOPS
Computer Hardware
Computer Facts
100

What is the output?

x = 3

if x > 5:
    print("A")
elif x > 2:
    print("B")
else:
    print("C")

B

100

This data structure stores elements in an ordered sequence and allows them to be accessed using an index.

List and Array

100

What is a class

A blueprint or template used to create individual objects in object-oriented programming

100

Unlike a hard drive or SSD, this type of memory loses its contents when the computer is turned off.

RAM

100

The tool developers use to track changes and collaborate, created by Linus Torvalds.

Git/Github

200

In programming, this stores a value that can change while a program is running.

Variable

200

This data structure follows the principle of “Last In, First Out.”

Stacks

200

The object-oriented principle where a new class automatically receives the attributes and methods of an existing class.

Inheritance

200

This component executes instructions and performs calculations for a computer.

CPU

200

What is chatgpt?

LLM

300

This programming structure repeatedly executes a block of code while a condition is true.

Loop

300

This data structure follows the principle of “First In, First Out,” like people waiting in a line.

Queue

300

A single instance created from a class, like one specific dog built from the Dog blueprint. 


In other words a self-contained component of a program that combines data (state) and actions (behavior) into a single bundle

Object

300

This component is designed specifically to perform large numbers of parallel calculations and is commonly used for graphics and machine learning.

What is a GPU?

300

what are the two most common computer languages.

Python and Javascript (also Java)

400

A named, reusable block of code that performs a task and can be called from anywhere in your program.

Function

400

This algorithm searches through a list one element at a time until it finds what it is looking for.

What is linear search?

400

A function defined inside a class, as opposed to a standalone one.

What is a method?

400

A space in the memory where the variables are stored

Memory Address

400

Injecting malicious database commands through an unsanitized input field.

What is SQL injection?

500

What's the difference between a list and dictionary. 

A list keeps the order of items and allows duplicates, while a set does not keep a specific order and only stores unique items

500

This algorithm can search a sorted list in O(log n) time by repeatedly cutting the search space in half.

What is binary search?

500

The pillar whose name literally means "many forms"  one command, different results depending on who receives it.

polymorphism

500

The main circuit board everything else plugs into.

The motherboard 
500

The measure of how many images per second a game renders, ideally 60 or higher.

What is frame rate (FPS)?