Back to marketplace

Chapter 1

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

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

Card preview (20)

#1
Front (Question)

asasignment

Back (Answer)

giving a value to a variable on constant

#2
Front (Question)

variable

Back (Answer)

item of data that can be changed throughout the lifetime of a program

#3
Front (Question)

constant

Back (Answer)

item of data that cannot be changed throughout the lifetime of a program

#4
Front (Question)

What is a local variable?

Back (Answer)

a variable wthat’s scope is only within a certain subroutine

#5
Front (Question)

What are the benefits of subroutines?

Back (Answer)

code reuse, easier to design

#6
Front (Question)

What are the various types available in most languages?

Back (Answer)

integer, float, string, Boolean, list/array

#7
Front (Question)

what is the difference between a list and an array?

Back (Answer)

An array is fixed in size(static) and a list is dynamic

#8
Front (Question)

when would you use a while loop and when would you use a for loop?

Back (Answer)

while loop when you are not sure how long it will repeat (indefinite iteration) and a for loop is sued when you know how many (definite iteration)

#9
Front (Question)

what is 14%5

Back (Answer)

4

#10
Front (Question)

what is concatenation

Back (Answer)

the operation of merging 2 stings into one string

#11
Front (Question)

What is the difference between a procedure and a function

Back (Answer)

a procedure carries out a sequence on instructions and doesn’t return anything, where as a ffunction must return a valie

#12
Front (Question)

what is a parameter

Back (Answer)

data passed into a subroutine

#13
Front (Question)

there are two types of subroutine - what are they

Back (Answer)

function and procedure

#14
Front (Question)

A2: what is encapsultaion

Back (Answer)

the concept of putting properties and methods in one object

#15
Front (Question)

A2: what is a method

Back (Answer)

a routine within an object

#16
Front (Question)

A2: What is a class

Back (Answer)

a blueprint that definies the properties and methods of similar objects

#17
Front (Question)

A2: what is an object?

Back (Answer)

A specific instance of a class

#18
Front (Question)

A2: what is inheritance?

Back (Answer)

using a class to share the porperties and methods wwith a subclass

#19
Front (Question)

A2: what is polymorphism

Back (Answer)

havin the same method name with different arguments

#20
Front (Question)

A2: what is overriding?

Back (Answer)

changing the implementation of a method in a subclass. This new method takes precedence over the method in the baseclass.