num = float(input("Enter a number: "))
if num > 0:
print("Positive number")
elif num == 0:
print("Zero")
else:
print("Negative number")
Python
Convert the number 7 to binary
111
When referring to computer memory, what does that acronym RAM stand for?
Random Access Memory
Where did the word "bug," referring to an error in code, come from?
A real-life moth; It was found within the Mark II Aiken Relay Calculator at Harvard in 1947.
What are the most popular programming languages in 2024? (Name 1) (source: https://survey.stackoverflow.co/2024/technology)
JavaScript / Python
public class MultiplyTwoNumbers {
public static void main(String[] args) {
float first = 1.5f;
float second = 2.0f;
float product = first * second;
System.out.println("The product is: " + product);
}
}
Java
Convert 1011 to decimal
What is the purpose of the motherboard?
To connect all internal elements of computer hardware within a PC
Who founded Microsoft? (name 1)
Bill Gates/Paul Allen
What popular operating system, launched in 1991, also has its own mascot, Tux the penguin?
Linux
#include <iostream>
using namespace std;
int main() {
int number;
cout << "Enter an integer: ";
cin >> number;
cout << "You entered " << number;
return 0;
}
C++
Add binary numbers 1110 and 1010; Display the answer in decimal
24
In the acronym BIOS, which refers to the firmware that provides runtime services for operating systems and programs, the "B" stands for "Basic" and the "S" for "System." What two words do the "I" and "O" stand for?
Input and Output
Microsoft reportedly included what one-person card game on its earliest machines because they wanted to calm down users who were intimidated by computers?
Solitaire
What is the DMCA?
Digital Millennium Copyright Act; US copyright law that criminalizes production and dissemination of technology, devices, or services intended to circumvent measures that control access to copyrighted works
section .text
global _start
_start:
mov edx, len
mov ecx, msg
mov ebx, 1
mov eax, 4
int 0x80
mov eax, 1
int 0x80section .data
msg db "Hello world!", 0xa
len equ $ -msg
Assembly
Convert the binary number 11110111 to decimal
247
What is a semantic error?
A program that produces the unintended results
Who invented the World Wide Web?
Tim Berners-Lee
What is the digital divide?
the gap between those who have access to the Internet and computers and those who do not
puts 'Hi!' # puts the string to stdout
print 'ram:' # print does not terminate with default \n
name = gets.chomp # read from stdin
puts "Hi! #{name}" # interpolates the string
Ruby
Convert the decimal number 263 to binary
100000111
What is a wireless access point that provides an attacker with unauthorized access to the traffic going over the network?
Rogue Access Point
What was the name of the first computer network/Internet?
ARPANET (Advanced Research Projects Agency Network)
What does ASCII stand for?
American Standard Code for Information Interchange