Introductory modules - '5 basic Concepts of any programming language' Flashcards

1
Q

Variables - general concept.

A

> Hold values, which the program will interpret and communicate.

>They store information for later use. > A word is assigned to the information by which it can be retrieved.

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

Variables - In Java

A

> Different - data types based on what kind of information they will store.

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

Strongly Typed Language - Java

A

> Concept used to refer to a programming language that enforces strict restrictions on intermixing of values with differing data types. When such restrictions are violated and error (exception) occurs.

> Typing in Java: allows the programming language to know with absolutely certainty that the information being stored in a variable will be ‘a certain way’.

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

Data Types

A

> The types of values within a program.

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

Primitive Types / Scalar types – JAVA

A

> Simple data types

> They relate to a single piece of information

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

Control Structures

A

> When the program needs to make a decision:

  • Decision in based on the variables given
  • The control strucutre are the decision that will effect the flow of the code
  • The code flow is the direction the code is being read by the computter (running program)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Choosing which lines of code to execute and which ones to skip

A
  • Dependent on the state of of the variables (the value at any given time).
  • W h i l e - loop -
  • Purpose: To excecute code between ‘ { } ‘ over and over until the condition becomes false.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Data Structures - In computer Science

A
  • A particular way od storing and organizing data in a computer so that it can be used efficiently
  • Just a way to get around havinf to create tons of variables.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Syntax - Concept in Computer Science

A
  • Set of rules that define the combinations of symbols that are considered to be correctly structured progrmas in that language.
  • Particular layout of brackets ( ), curly brackets { }, variables, indentation etc.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Defining a variable in Java

A
  1. Variable type
  2. Variable’s name
  3. Value of the variable
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly