Programming Puzzles
Which puzzle would you like to explore?
Puzzle 1: Coding Languages
Puzzle 2: Website Design
Puzzle 3: Arduino Programming
Puzzle 4: Ethical Hacking
Languages
The most popular object-oriented language that can be used in data science, web development, and machine learning.
A backend language that features in mobile, web, and game development and is also used to teach concepts in AP Computer Science A.
The most popular markup language responsible for text on websites.
The most popular style-sheet language responsible for the presentation and layout of websites.
An object-oriented language responsible for interactivity on websites.
A language commonly used for web development that was created by Yukihiro Matsumoto.
A scripting language used on the server-side to create dynamic web pages.
A language developed by JetBrains that is fully compatible with Java.
A language developed by Apple for iOS and Mac development.
A language developed by Google for web development.
A command language that executes various tasks based on user input and is associated with the command line.
A general purpose procedural language that is the parent to similarly named languages and is where the Python language is implemented.
The most popular object-oriented language for use in robotics and software (ex. Arduino programming).
A very popular language used in game development, mobile applications, and enterprise software.
The language used to operate CNC machines and 3D printing.
A statistical programming language used by academia and the tech industry that is helpful with data science and analysis.
A query or standard regional data management language used by data scientists and engineers to process information within databases.
A feature-rich language able to run on over 100 platforms with the capabilities to prototype and manage large projects.
Extra credit
: Can you guess my favorite language?
Arduino Programming
What language is used to program Arduinos?
Which of the following are variable types in this language?
var
int
float
double
bool
final
char
string
What goes in front of an array name to declare an array with values that cannot be changed?
final byte
const byte
const
How can you write a comment in an Arduino sketch?
`//` at the beginning of a line
`#` at the beginning of a line
`comment:` at the beginning of a line
`/* */` surrounding the comment
Which statement will print out the phrase "Hello World!" to the console in Arduino?
console.log("Hello World!")
System.out.print("Hello World!")
Serial.print("Hello World!")
Functions
Where are functions called so that they repeat continuously (exclude parentheses)?
Which function contains initialization code that runs before the rest of the program (exclude parentheses)?
What is the function that can pause a program (exclude parentheses)?
What is the function that takes a variable (ex. an array) as a parameter and returns its size as an int (exclude parentheses)?
LEDs
Which function turns on an LED by controlling the voltage of a specified pin?
pinMode
digitalRead
digitalWrite
Which function sets up an LED pin as an input or output and is included in void setup()?
pinMode
digitalRead
digitalWrite
Which function reads the value of an LED pin as either HIGH or LOW?
pinMode
digitalRead
digitalWrite
Website Design
HTML
What does HTML stand for?
True or false: HTML is considered a programming language.
True
False
The
Select an option
div
section
tag is considered semantic HTML, while the
Select an option
div
section
tag is not.
Which of the following tags are self-closing?
img
video
audio
embed
CSS
What does CSS stand for?
True or false: CSS is considered a programming language.
True
False
The
Select an option
.
#
symbol is used to select an element's class name, while the
Select an option
.
#
symbol is used to select an element's id name.
If you want to change an element's color, you can do so by writing "color: " and...
the color's hex code.
rgb(_, _, _) with the color's red, green, and blue values.
referencing another element with the desired color.
JavaScript
What was JavaScript's original name?
True or false: JavaScript is an object-oriented language.
True
False
The interface that connects HTML and JavaScript is known as the
Select an option
Application Programming Interface
Document Object Model
Graphical User Interface
, and it represents web documents as collections of elements.
JavaScript is used for...
website development.
game development.
cybersecurity.
Ethical Hacking
How can ethical hacking be defined?
Accessing a system with permission from the owners
Accessing a system without permission
What is the goal of ethical hacking?
To steal information
To detect system vulnerabilities
To disrupt networks
Which organization offers the Certified Ethical Hacker certification?
Microsoft
Cisco
EC-Council
What is the term for a simulated cyber attack used to test a system's security?
Denial-of-Service Attack
Phishing
Penetration Test
Name a tool that is used for network scanning.
Nmap
Microsoft Excel
Honeynet
What is social engineering in the context of cybersecurity?
Using social media to promote the benefits of ethical hacking
Manipulating others to share confidential data
Engineering secure social networking sites
Are hackers required to know programming?
Yes
No
Which fields have uses for ethical hackinig?
Cybersecurity
Government and Defense
Financial Services
Where can you practice hacking skills?
picoCTF, a website with capture the flag challenges
Codecademy, a website with with courses on ethical hacking and cybersecurity
Any website that allows you to view its code
Hat Types
What kind of hacker hacks with authorization and without malicious intentions?
Black Hat
White Hat
Gray Hat
Blue Hat
Red Hat
Green Hat
What kind of hacker hacks without authorization and with malicious intentions?
Black Hat
White Hat
Gray Hat
Blue Hat
Red Hat
Green Hat
What kind of hacker hacks without authorization or malicious intentions?
Black Hat
White Hat
Gray Hat
Blue Hat
Red Hat
Green Hat
What kind of hacker acts as a vigilante and prevents malicious hackers from accessing unauthorized information?
Black Hat
White Hat
Gray Hat
Blue Hat
Red Hat
Green Hat
What kind of hacker is hired by tech companies to locate security vulnerabilities or test products?
Black Hat
White Hat
Gray Hat
Blue Hat
Red Hat
Green Hat
What kind of hacker is just beginning to develop their skills?
Black Hat
White Hat
Gray Hat
Blue Hat
Red Hat
Green Hat
Extra credit
: Can you find the hidden answer to this question? (Hint: Inspect the page)