Introduction to programming Flashcards
The following languages are compiled except for which?
C, C++, C#, Objective C, Cobal, Swift
C# is not compiled, it is considered a hybrid.
The following languages are considered hybrid languages except for which?
Java, C#, PHP, Python, VB.NET,
PHP# is an interpreted scripting language.
The following are interpreted scripting languages except for which?
VBScript, Javascript, Java, PHP, Actionscript,
Java is considered a hybrid language.
If (boolean condition) Then (consequent) Else (alternative) End If //All are considered what?
Conditional statements, conditional expressions and conditional constructs
Modules, Subroutines, Subprograms, Routines, Functions, Callable Units, Procedures, and Methods are what?
A piece of program code that is executed when the subroutine is called or invoked. Sometimes called a “code block” or block of code”.
What happens when a function is called?
All of the code inside the function is executed.
Should functions be defined first?
Yes, define them all together at the top of your code. This makes for better code readability.
What two things that functions do?
Return values and accept data.
What is a Library?
A library is a set of functions that come with your language compiler. The library is integrated into the compiler.
Library code is organized in such a way that it can be used how?
Libraries are organized to be used by multiple programs that have no connection to each other.
Who created Python?
Guido van Rossum
When was Python created?
Python was conceived in the late 1980s, and its implementation began in December 1989 by Guido van Rossum
Python Version 1.0 was released in what year?
Python reached version 1.0 in January 1994.
What is the latest version of Python?
Python 3.6 - Released in December 23, 2016
What is the file extension for Python?
*.py
What is an Algorithm
A algorithm is a solution to a problem and meets one of the following.
- A list of instructions, procedures, or formula that solves a problem.
- Can be proven.
- Something that always finishes and works.
What is an Argument?
An argument is a value that is passed into a command, function, or routine.
What is a boolean?
A Boolean, bool, or Boolean expression is a value that is either TRUE or FALSE.
What is a boolean data type?
A boolean data type is any data type that has either a true or false value, yes or no value, or on or off (1 or 0) value.
What is a Data Type?
A data type is a classification of the type of data that a variable or object can hold in computer programming.
What is a floating point?
A floating-point number is one where the position of the decimal point can “float” rather than being in a fixed position within a number.
Define an If Else statement?
An if else statement in programming is a conditional statement that runs a different set of statements depending on whether an expression is true or false.
Define an If statement?
An if statement is a programming conditional statement that, if proved true, performs a function or displays information.
What is a Loop?
A loop describes the process of a software program or script repeats the same instructions or processes the same information over and over until receiving the order to stop.
A good example of a class is?
A blueprint, or template.
An object is created from what?
An object is created from a class (blueprint).
What is inheritance in programming?
Inheritance allows you to use properties from an existing class. It reduces redundancies in coding.