Section Six - Programming

0.0(0)
studied byStudied by 1 person
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/6

flashcard set

Earn XP

Description and Tags

will be updating weekly with more questions https://knowt.com/folder/49ce6500-b988-4e7b-80d1-418b6bfacb79

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

7 Terms

1
New cards

What are the 5 main data types?

Integer, Real/Float, Boolean, Character, String

2
New cards

What are the cast operators for each data type?

int, real, float, bool, str

3
New cards

Pros of using the right data type

Makes code more memory efficient, robust and predictable

4
New cards

How to convert a letter to ASCII and vice versa

ASC() or CHR()

5
New cards

What is casting?

Manually converting between data types

6
New cards

What is DIV?

Gives the highest possible multiplier within the bounds (ie. 20 —- 3 would give 6 as 6×3 is 18)

7
New cards

What is MOD?

Gives the remainder left after the division (ie. 20 —- 3 would give 2 as thats the remainder)