Introductory modules - '5 basic Concepts of any programming language' Flashcards
Variables - general concept.
> 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.
Variables - In Java
> Different - data types based on what kind of information they will store.
Strongly Typed Language - Java
> 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’.
Data Types
> The types of values within a program.
Primitive Types / Scalar types – JAVA
> Simple data types
> They relate to a single piece of information
Control Structures
> 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)
Choosing which lines of code to execute and which ones to skip
- 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.
Data Structures - In computer Science
- 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.
Syntax - Concept in Computer Science
- 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.
Defining a variable in Java
- Variable type
- Variable’s name
- Value of the variable