Flashcards

What does CPU stand for?
Central Processing Unit
What is an algorithm?
Step-by-step set of instructions to solve a problem
What is the difference between RAM and ROM?
RAM is temperorary memory, ROM is permanent memory
What is the purpose of the operating software?
It manages hardware, software, and provides a user interface.
What does "binary" mean in computing?
A number system that used 0s and 1s.
What is a compiler?
A program that translates code from a high-level language into machine code.
What is the difference between hardware and software?
Hardware is physical parts of the computer, software is the program
What is a database?
An organized collection of data stored and accessed electronically.
What is recursion in computing?
When a function calls itself to solve a smaller version of the problem.
What is an IP address for?
To uniquely identify a device on a network.



Coding Quiz

Which of the following is a valid variable name in Python?

2number
number_2
class

What will the code in Python print given that x=5 and y=2: print(x//y)

2.5
3
2

In Java, what keyword is used to define a new class

object
define
class

Which data structure uses first-in-first-out ordering?

queue
stack
array

What will the Java code print out if a=7 and b=3: System.out.println(a%b);

1
2
3