The study of the principles and use of computers.
What is Computer Science?
An electronic device consisting of hardware and software.
What is a computer?
A function that translates strings into integers.
What is the int() function?
What does this program print?
print(" _ _")
print("(0)_(0)")
print(" |><|")
print("=| |=")
print(" ^ ^")
A picture or little man.
A program that translates written code into machine language.
What is a compiler?
An object in Python that stores letters, numbers and words. Not used for calculations.
What is a string?
A computer component that carries out a program's instructions.
What is CPU?
A function that tells Python to handle the value in the parentheses as a string, not as a number.
What is the str() function?
What does the output of this code?
print("Moon and stars wonder \nwhere have all the people gone \nalone in hiding. \n - Albrecht Classen")
(Number of lines and what it prints)
A quote by Albrecht Classen on 4 lines properly spaces.
Information sent to the computer by the user, in the form of letters, numbers, or symbols.
What is input?
Instructions that a computer follows, written in code.
What is a program?
The physical machine; any part of the computer that you can touch
What is hardware?
A command that displays text and numbers on the screen.
What is the print() function?
Is the person who was being quoted's name on its own line?
print("\"The computer was born to solve problems that \n did not exist before.\" \n- Bill Gates")
Yes
Special sequences marked with the \ symbol. Can allow you to make a new line, tab, print a quotation mark, or print a backslash.
What is an escape sequence?
Special sequences marked with the \ symbol. Can allow you to make a new line, tab, print a quotation mark, or print a backslash.
What is an escape sequence?
Program that runs on hardware.
*RANDOM BONUS*
A note written in computer code for the programmer to read, that the computer ignores. Marked in Python with a # symbol.
What is a comment?
Is there an error in this code?
print(" )")
print(" ( ")
print(" ^ )")
print(" / \\\ ---")
print(" / \\| |")
print(" / _ \\ |")
print(" / (_) \\\\|")
print(" / \\")
print(" /| __ __ \\")
print(" | | | | | \\")
print(" | |__| |__| |\\")
print(" | __ _ |")
print(" | | | | | | *")
print(" | | 0| |_| | ***")
print(" | | | | *****")
print(" \\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/")
Yessssssss, to many slant marks on lines 4 and 7.
Data and information in the real world that can be measured continuously, instead of discretely. Example: volume or color.
What is analog?
Also called a programming environment, it allows users to write a program, run the program, and debug the program all within one application. (IDE)
What is the Integrated Development Environment?
The software that supports a computer's basic functions, such as controlling computer memory, scheduling tasks, and running applications.
What is an operating system?
A sequence of program instructions that performs a specific task.
What is a function?
What does this code do?
name= input("What is your name")
adjective= input("Enter an adjective")
print("Hello " + name + ", let's go to the zoo. The panda bears \n are " + adjective + " today.")
It asks the user their name and an adjective and puts them into a sentence using those words.
Ex: User inputs Melinda and fat:
Hello Melinda, let's go to the zoo. The panda bears are looking fat today.
A number system based on two numbers, 0 and 1.
What is binary?