Back to marketplace

MSCDSA01 - Foundation

No description yet. This curated deck is ready for daily study.

Total cards: 24•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (24)

#1
Front (Question)

What is Tkinter and what is it used for?

Back (Answer)

A python module, for building a graphical interface

#2
Front (Question)

What is SQLite and what is it used for?

Back (Answer)

(an alternative to writing to a text file)

#3
Front (Question)

What is ‘pdb’ and what is it used for?

Back (Answer)

which can be used to find elusive logic errors

#4
Front (Question)

What are the string type identifiers in Python?

Back (Answer)

you can use single or double quotes, either is fine - ‘ or “

#5
Front (Question)

what does the ‘' character inside a string do?

Back (Answer)

The \ tells python to expect a number or character afterwards which will indicate printing a special character \ = newline \\ = \ \' = ' \" = " \a = ASCII Bell(BEL) \b = ASCII Backspace (BS) \f = ASCII Formfeed (FF) \n = ASCII Linefeed (LF)(newline) ..etc

#6
Front (Question)

How do you ‘print’ to the console in python?

Back (Answer)

print ( ) eg: print (‘Hello World’) —— or print ("Hello World") but NOT Print ('Hello World') = capital Would not be recognised (case sensitive) and whitespace means something and is not ignored)

#7
Front (Question)

What is ‘Spyder’ and what is it used for?

Back (Answer)

Spyder is an open source integrated development environment (IDE) for scientific programming in the Python language

#8
Front (Question)

What does ‘Syntax’ mean in programming?

Back (Answer)

the rules (like grammar in written language) define combinations of symbols to make a correctly structured expression. -------- Applies both for programming languages, (source code), and for markup languages, where the document represents data.

#9
Front (Question)

What is a ‘markup language’?

Back (Answer)

from the “marking up” of paper manuscripts; replaced digitally by tags, indicating what the elements of text ARE, rather than how they might be shown on a display

#10
Front (Question)

Is python a ‘compiled’ or an ‘interpreted’ language, and what is the difference?

Back (Answer)

It has elements of a ‘compiled’ language, having compilers available

#11
Front (Question)

What are the two modes of entering and running programs in Python?

Back (Answer)

Interactive mode = type instructions and python responds immediately Script mode = type in and SAVE

#12
Front (Question)

In ‘Jupyter’ what is the key combination to run a python program?

Back (Answer)

alt+enter or ctrl+enter or cmd+enter

#13
Front (Question)

In language theory and programming what is the term for joining character strings end-to-end?

Back (Answer)

For example, the concatenation of “snow” and “ball” is “snowball”

#14
Front (Question)

How would you put single or double quotes inside a string in python?

Back (Answer)

eg if you want a “ inside the string, then encapsulate (define) the string using the ‘ (single quote) character

#15
Front (Question)

What symbol is used to concatenate strings in Python

Back (Answer)

+ so “A” + “B” would produce AB

#16
Front (Question)

What are the the numeric data types in python?

Back (Answer)

int = integer (a whole number) float = floating point (a number with a decimal point)

#17
Front (Question)

what are the standard arithmetic operators in python?

Back (Answer)

\+, -, * (multiply) and / (divide) ** for exponentiation (eg 2 ** 3 = 8 = 2^3) % (mod) returns the remainder when an integer is divided by another (11 % 5 = 1) // (div) performs integer division (11 // 5 = 2)

#18
Front (Question)

In python when does numerical division result in a floating point number?

Back (Answer)

use ‘//’ to get an integer without remainder or decimal

#19
Front (Question)

In python which is the divide symbol ‘ \ ‘ or ‘ / ‘

Back (Answer)

remember your Christmas tree, it was the right hand slope ‘ \ ‘ that gave the problem because its an escape sequence and you needed ‘\' to get \

#20
Front (Question)

In Python why does 1.62+0.53 = 2.1500000000000004 how to avoid it?

Back (Answer)

To be certain of out put use the round() function: round(1.62+0.53,2)

#21
Front (Question)

What is the TRUE/FALSE data type called?

Back (Answer)

Boolean

#22
Front (Question)

What are the true false answers to the following: 9 == 3*3 9 != 3*3 9 == 4*4 9 != 4*4 (5 > 1) and (7 > 1) (1 > 5) and (7 > 1) (1 > 5) or (7 > 1)

Back (Answer)

TRUE FALSE FALSE TRUE TRUE FALSE TRUE

#23
Front (Question)

In Python what would the following evaluate to: 9 != 4*4

Back (Answer)

TRUE

#24
Front (Question)

In Python what would the following evaluate to: 1 > 5) and (7 > 1

Back (Answer)

FALSE