Who invented Scratch? What is a program called in Scratch?
MIT / Script
Does white space affected your code?
No
What number is this 00011010
26 = 2 + 2^3 + 2^4
What is the relationship between current and voltage? Bonus Ten Points: What formula relates current and voltage?
They are directly proportional.
V=IR (Ohm's Law)
Who is Grace Hopper? Who did she work for?
Grace Hopper was a computer scientist. She worked for the US Navy rear admiral.
What type of graph is this?
Undirected Weighted
What is the purpose of the head section in HTML? (100 pts)
<H1><font color=blue>Information HERE</H1><font>
Is this correct? If not.... what's wrong? (100 pts)
Purpose of head section is metadata.
<h1><font color="hexadecimal">Information</font></h1>
What is the Turing Test?
Have a human have a conversation with a real person and a computer/chatbot. If the human judge can't tell the person from the computer then the ai has passed the Turing Test.
How do simplify multiple capacitors in series? in parallel?
Series: (C1^-1 + C2^-1 + ... + Cn^-1)^-1
Parallel: C1 + C2 + ... + Cn
What does this program print? (150 pts)
x = 5
print(x)
z = x
x = 7
print(x)
print(z)
Give an Example of Type Casting. (150 pts)
5
7
5
Write the CSS syntax to change the font and color of the body.
Body{
color: purple;
font-family: "Georgia";
}
* Multiple Answers May be Correct
Which edge has the highest cost?
BC
Why are arduinos important and useful (provide two reasons)?
1. Cheap hardware
2. Free software
3. Relatively easy to learn
Name 3 out of the 5 sorting algorithm names?
1. Bubble sort
2. Insertion sort
3. Quick sort
4. Merge sort
5. Selection sort
What does this C code do?
int main() {
int check = 1;
switch(check){
case(0):
printf("You got this");
case(1):
printf("Wait I'm not sure");
case(2):
printf("Wait I'm really not sure");
break;
case(3):
printf("I think you can again");
break;
default:
printf("good job");
}
return 0;
}
Wait I'm not sureWait I'm really not sure
Describe the difference between a for loop and a while loop.
For loop- repeats for a given number of times
While loop-repeats for as long as the specified conditions are true
Describe Kirchhoff's voltage AND current laws (200 points each)
KVL: all change in voltage around a circuit nets to 0
KCL: the amount of current entering a node must equal the current leaving that node
What would this print? Is there a bug? What is the bug?
x=23
y=75
if x<=22:
if x<=23 and y>= 75:
print("ok")
else:
print("no")
elif x>=23 or y>= 75:
if not(x <= 23):
print("stop")
if not(x <= 22) and not(y <= 22):
print("this seems right")
elif (x >= 14):
print("confused?")
else
print("im done")
else:
print(4)
this seems right
colon missing in last else statement
What is the difference between a while and a do while loop?
While loop's conditions are checked before the code
Do while loop's conditions are checked after the code
Draw the top, front, and side view of the object shown by the coordinators.
Answer on the board
Solve for the current through R1 and R2 for the circuit on the board.
Current through R1= 0.17 A
Current through R2= 0.06375 A
What are the majors of all the coordinators?
Alexa: Electrical Engineering
Sharani: Biomedical Engineering
Divya: Computer Science and Psychology
Amelia: Data Science