State the differences between a compiled language and an interpreted language.
Compiled language:
After compilation, the program can be freely distributed without the need of the interpreter. You must have a compiler for each type of system. Faster execution. Examples: C, C++, Go.
Interpreted language:
The translation is done each time the program runs. The interpreter must be installed in all the computers to make the code run. Slower execution. Examples: PHP, Ruby, Python, Java.
How do you use binary, hexadecimal and scientific notation in Python?
Binary: 0bnnnnnnn
Hexadecimal: 0xnnnnnnn
Scientific notation: nEn, example: 3E8
Large numbers: use underscores (_) to separate big chunks of numbers
What are the three different ways you can specify a range in Python?
range(2,8,3): range(start, end, increment). The end does not touchList two ways in which you can slice a sequence in Python:
lista = [i for i in range(10)]x = slice(start=None, end, step=None)sliced = lista[x]lista = [i for i in range(10)]x = lista [start : end : step]Calculate the module of the following operations:
4 % 6 = 2.33 % 2.1 = 10 % 3 = RAr(AbArAb)

What are the different tuple methods?
Leia Meditated Meanwhile Surfers Inhaled Clever Irishmen.
len, min, max, slice, in, count, index
List two ways in which you can declare a tuple.
my_tuple = (1, )(s1, s2) = (1, 2)my_tuple = 1, 2, 3s1, s2 = 1, 2random Module most used functions and methods:
Strong Robocop Romanced Round Croutons Slowly
Seed, Random, Randrange, Randint, Choice, Sample
Useful methods of the datetime.date class:
.weekday():0 : Monday.isoweekday(): 1: Monday (ISO).isoformat(): string : YYYY-MM-DD.replace(): replaces the specified parameters..strftime(): readable string format.Useful methods of the datetime.datetime class:
.today(), .now()
.strftime().strptime()
.fromisoformat(): returns a datetime coming from a string in ISO format.isoformat()
.combine(): combines a date and a time.replace()Enlist all the different formatting styles that can be used with strftime:

Useful methods of the Calendar.Calendar class:
Generators:
.itermonthdates(year, month): datetime objects..itermonthdays(year, month): int (day#)..itermonthdays2(year, month): tuple (day#, weekday#).itermonthdays3(year, month): tuple (year#, month#, day#).itermonthdays4(year, month): tuple (year#, month#, day#, weekday#)Lists:
monthdatescalendar(year, month): datetime (separated in weeks).monthdayscalendar(year,month): int (day#) (separated in weeks).monthdays2calendar(year,month): tuple (day#, weekday#) (separated in weeks).What is a Python generator?
yield statement:def gen():
x = 0
for x in range(10):
if x%2 :
yield x
it = (x for x in range(10) if x % 2)
(PARENTHESIS)
tkinter
How do you create the root window in an OOP program?
root = tkinter.Tk()app = Application(root)def \_\_init\_\_(Frame):super().\_\_init\_\_()self.main = tkinter.Frameself.main and this will be the master of all widgets.tkinter
What is the process to create a RadioButton?
1. Create a variable: tkinter.BooleanVar, DoubleVar, IntVar, StringVar.
r1 = tkinter.RadioButton(master, variable =, value=,...)tkinter variable.tkinter:
What is the process for creating a Calendar?
pip install tkcalendarimport tkcalendar. tcal = tkcalendar.Calendar(master, )date_temp = tcal.get_date():Stringtkinter:
What is the process to create image widgets?
pip install Pillowimport PILfrom PIL import ImageTk, Imageima = ImageTk.PhotoImage(Image.open("whatever.jpg"))ima = ImageTk.BitmapImage(Image.open("whatever.bmp"))lbl = tkinter.Label(master, image=ima)What is the process to use gspread?
https://console.cloud.google.com/pip install oauth2clientimport gspreadfrom oauth2client.service_account import ServiceAccountCredentialscreds = ServiceAccountCredentials.from_json_keyfile_name("")client = gspread.authorize(creds)sheet = client.open("name")worksheet1 = sheet.worksheet("name")val = ws.cell(1,2)vals = ws.row_values(2)ws.update_cell(1,2, "hello")ws.update("A1:B1", [[1, 2],[3, 4]])What is the meaning of API?
Application Programming Interface
What are the basic principles of a REST API?
REpresentational State Transfer.
It has 6 constraints (LUCCCS):
What does OAuth stand for?
Open Authorization
(HTTP requests)
What types of OAuth grants exist?
How do you use map()?
lambda functions.mapa = map(lambda x,y: x-y, [5,5,5],[1,3,5])>> 4 2 0How do you use a lambda function? What are they useful for?
lambda arguments(n, *): expression(just 1, no statements)lambda: syntactic sugar, anonymous function).map(), filter(), reduce().