stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Coding Basics Flashcards | StudBud
Explore
/
Coding Basics
Coding Basics
43 terms
·
StudBud Administration
·
384 plays
Coding questions for new coders!!!
Flashcards
43 cards
F
Practice quiz
P
Host live
L
Questions
43
Answers
1
A computer is only as smart as the person who programmed it.
False
True
2
Sometimes, your code may not act the way you want it to, or it might give you an error.
True
False
3
What is a for loop?
A loop that is for your grandma
A loop that repeats a set amount of times
A loop that repeats forever
A loop that keeps looping until a certain condition is false
4
What is a loop?
Code that executes code if a certain statement is true.
A bunch of instructions
A piece of code that repeats code over and over again
A piece of code that never repeats
5
Comments are a part of the code which the computer doesn't ignore.
False
True
6
Which should you check first if your code gives you an error?
spelling
print statements
the name of a variable
syntax
7
What are parameters?
They are pieces of information that you can pass to a function
a type of hard programming language
They are the sum of all of the side lengths of a polygon
Operators inside of a function
8
What does this operator do?
multiply two numbers
that's not an operator
raises a number to a power of another
Add two numbers
9
What are the two types of comments most coding languages use?
comment out a block of code
comments the whole thing
comments out the rest of line
comments one word
10
What is hardware?
The elements that create a robot.
The physical elements of a computer.
A piece of food that is radioactive.
Instructions that tell software how to perform a task.
11
Which one doesn't belong?
if
yes
else if
else
12
What does this operator do?
It raises a number to the power of another
It creates a tic tac toe game board
It is not an operator
It finds the average of two numbers
13
What is a conditional?
A piece of code that repeats forever
A piece of code used to execute code when a statement is true.
A piece of reusable code
A set of steps used to accomplish a goal.
14
For a variable keeping track of the score you get in a game, which is the best name?
Game_score
Happy_Cats
asdf
43e@@#bhv_3f38t7e&u
15
What is computer science?
computer science is the study of computers.
computer science is the study of food.
computer science is the study of computation.
The use of math and logic to develop algorithms that solve problems.
16
Programming languages follow the order of operations
False
True
17
What does this operator do?
It's not an operator
It multiplies two numbers together
It subtracts a number from another
It adds two numbers together
18
What does this operator do?
multiply two numbers
divide a number by another
add two numbers
subtract two numbers
19
What is a while loop?
A loop that repeats a set amount of times
A forever loop!
A loop that keeps repeating until a certain condition is false
it's not a type of loop
20
Two variables can have the same name
True
False
21
Which is the closest to a function?
conditional
variable
loop
bug
22
What is a function?
A function is a piece of code that you can't reuse in multiple places
A piece of code that shows the commands needed to achieve a goal
A function is a piece of code that you use to repeat code over and over
A function is a piece of code that you can reuse in multiple places
23
What is user input?
The result that the program gives, so the user can see it
Errors in the code that only the user can fix
The variables that are unnecessary in your code
The way the person using your program interacts with it.
24
How many types of main loops are there?
4
3
1
2
25
In most languages, when the computer takes user input, it stores it as a...
function
conditional
variable
loop
26
Which is an example of a for loop?
multiplication
food
division
dice
27
You can name a variable whatever you want as long as it's valid.
True
False
28
What is the key to having good readable code?
Comments!
Free Food!
Lots of variables!
Core 4s!
29
What does this operator do?
It's not an operator
It is mod(the quotient when you divide a number by another)
It is mod(the remainder when you divide a number by another)
It finds a percentage of a number
30
What is a variable?
A variable executes if a certain statement is true
A variable checks over your code and find errors in your code
variables store information/data
A variable repeats over and over again
31
What does this operator do?
divides a number by another
Adds two numbers together
subtracts a number from another
multiplies a number by another
32
What is debugging?
The process of fixing bugs
the process of finding a more inefficient solution
The process of making bugs
the process of finding a more efficient solution
33
You can't have more than one condition in a conditional.
True
False
34
What is an algorithm?
A fast procedure for solving a problem or reaching a goal, often lacking.
procedure for creating problems or deviating from a goal.
Something thats not a procedure.
A step by step procedure for solving a problem or reaching a goal.
35
What are conditionals sometimes referred to as?
else-then-if
if-then-else
if
elif
36
What is a bug
an error in your code
A way to protect your code from hackers
A way to fix your code
aN iNsEcT tHaT hAs mOuThPaRtS mOdIfIeD fOr pIeRcInG aNd sUcKiNg
37
What does this operator do?
It isn't an operator
This operator divides a number by another
This operator adds two numbers
It subtracts a number from another
38
What is software?
A mushy gushy potato that is overcooked :D
The physical elements of a computer.
The emotional elements of a computer.
Instructions that tell hardware how to perform a task.
39
What algorithms do people use in everyday life?
Brushing your teeth
Getting dressed
FOOOOOODDDDDD :P
Cooking
40
Which are valid as a condition for any variable?
spaces
ends with a number
starts with a letter
starts with a number
41
Which variable is invalid?
Happy Seal
xsdcksa_ebcd234
food
jbhv232g2322
42
You can't call a function while defining it.
True
False
43
What is called when you check if an input is valid?
Hacking
Frustrated
input invalidation
Input validation