Name a programming language.
E.g.
- Python
- C++
- SQL
What does AI stand for?
Artificial intelligence
When does our CCA take place?
Fridays 3.00-5.00pm
print(“hello world!’)
print(“hello world!”)
What is the name of this school?
Methodist Girls’ School
Explain why functions are useful.
- Organise code
- Prevent complexity
- Avoid repetition
How many megabytes are there in each gigabyte?
1000
Where is our CCA venue?
Computer lab 1 (lvl 2)
n = 3
while n > 0:
print(“hello”)
n -= 1
n = 3
while n > 0:
print(“hello”)
n -= 1
Name the classes in each level. (10)
M, E, T, H, O, D, I, S, G, R
Name a type of error.
E.g.
- Runtime
- Logic
- Syntax
What does https stand for?
Hypertext Transfer Protocol Secure
Name a competition that our CCA frequently participates in.
E.g. NOI, NJIO, NYTC
age = 15
print(f”she is {Age} years old.”)
age = 15
print(f”she is {age} years old.”)
Ada Lovelace
Explain the difference between = and == in python.
= : to assign a value to a variable
==: to check if 2 values are equal
Name any two components of a computer.
E.g.
- Processor
- Data bus
- Memory
- Monitor
Name an Infocomm teacher in charge.
- Mr Winston Seow
- Mrs Karen Chia
- Mdm Sim Lay Ling
#print fruits one by one
list = [“strawberry”, “‘banana”, “lemon”]
numfruits = 0
for i in range(len(list)):
print(f”there is a {i}.”)
list = [“strawberry”, “‘banana”, “lemon”]
numfruits = 0
for i in range(list):
print(f”there is a {i}.”)
Tennis for Two, 1958
Explain what lambda is.
Lambda is a small anonymous function.
E.g.
x = lambda a, b: a+b
print(x(5, 6))
output: 11
Explain the difference between front and backend coding.
Frontend: builds what the users see, user interface and experience
Backend: builds the server, database and logic that powers the frontend
Name a vice-president of our CCA.
- Nguyen
- Elly#include <iostream>
using namespace std;
int main() {
int x = 5, y = 6;
cout << x + y
return 0;
}
#include <iostream>
using namespace std;
int main() {
int x = 5, y = 6;
cout << x + y;
return 0;
}
Explain the difference between a web browser and a search engine.
Web browser: the software application you install to access and view websites
Search engine: service within the browser that helps you find information by indexing the web