{ "@context": "https://schema.org", "@type": "Organization", "name": "Brainscape", "url": "https://www.brainscape.com/", "logo": "https://www.brainscape.com/pks/images/cms/public-views/shared/Brainscape-logo-c4e172b280b4616f7fda.svg", "sameAs": [ "https://www.facebook.com/Brainscape", "https://x.com/brainscape", "https://www.linkedin.com/company/brainscape", "https://www.instagram.com/brainscape/", "https://www.tiktok.com/@brainscapeu", "https://www.pinterest.com/brainscape/", "https://www.youtube.com/@BrainscapeNY" ], "contactPoint": { "@type": "ContactPoint", "telephone": "(929) 334-4005", "contactType": "customer service", "availableLanguage": ["English"] }, "founder": { "@type": "Person", "name": "Andrew Cohen" }, "description": "Brainscape’s spaced repetition system is proven to DOUBLE learning results! Find, make, and study flashcards online or in our mobile app. Serious learners only.", "address": { "@type": "PostalAddress", "streetAddress": "159 W 25th St, Ste 517", "addressLocality": "New York", "addressRegion": "NY", "postalCode": "10001", "addressCountry": "USA" } }

programming Flashcards

(14 cards)

1
Q

A class describes…

A

A class describes a kind of object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does a class specify?

A

Classes specify different types of attributes, e.g. colours, designs, location

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Define an algorithm

A

a set of instructions that are followed in order to complete a task or solve a problem

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Pseudocode

A

a human-readable way to write algorithms
using exactly these features

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is an array?

A

a data structure that stores related data in a collection that are all the same size or type.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Name 4 different control structures

A
  1. Direct Sequencing
  2. Conditional Sequencing
  3. Bounded iteration
  4. Conditional Iteration
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Define direct sequencing

A

the order in which steps are executed in an algorithm or program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Define conditional sequencing

A

a way to control the order in which lines of code are executed by a computer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

for-loop

A

a control flow statement that is used to repeatedly execute a group of statements as long as the condition is satisfied

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Define Bounded iteration

A

where a loop executes a fixed, predetermined number of times.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Define Conditional iteration

A

repeatedly executes. a section of code until a condition is met - or no longer met.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

while-loop

A

a control flow statement that allows code to be executed repeatedly based on a given Boolean condition.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the main ArrayList methods?

A

add, get, remove, size

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly