IT- Module 15

Ace your homework & exams now with Quizwiz!

Which two are both types of high-level programming languages but not considered scripting languages? JavaScript and Tcl Tcl and BASIC BASIC and Ada Ada and JavaScript

BASIC and Ada

Which language can create an executable program?

Compiled

Compiled and Interpreted language compared during software programming

Compiled: Errors are found as the program is being written so they can be fixed before the software is ran. Interpreted: Errors are only found when they come up, so it's too late once you've ran the software.

MVC- Model

Does the work. Sorts through the data and finds the results for the information you want

8 Examples of high-level programming languages

Examples of high-level programming languages include, but are not limited to, Python, BASIC, C, C++, COBOL, FORTRAN, Ada, and Pascal.

True or False: Machine language is more concise than high-level languages.

False. High-level languages are more concise because they only require one step to execute a task.

Why do high-level programming languages need to be translated?

In order for the computer to understand the code.

What is another term that defines a script?

Interpreted program

Scripting Languages Translator

Interpreter

What is the main disadvantage of compiled program?

It is not portable

7 of the Scripting Languages

JavaScript ASP JSP PHP Perl Tcl Python

Which of the following is a scripting language? Java C++ BASIC Javascript

Javascript

What is a disadvantage of a compiled program compared to an interpreted languages?

Lack of portability

What two inventions have allowed programmers to avoid writing programs in machine language? Computers and Language Translators High Level Programming Languages and Binary Numbers Binary Numbers and Computers Language Translators and High Level Programming Languages

Language Translators and High Level Programming Languages

MVC Architecture

Model-View-Controller

N-tier

N-tier architecture is also called multi-tier architecture because the software is engineered to have the processing, data management, and presentation functions physically and logically separated. That means that these different functions are hosted on several machines or clusters, ensuring that services are provided without resources being shared and, as such, these services are delivered at top capacity. The "N" in the name n-tier architecture refers to any number from 1.

High-Level Complied Language Disadvantage

Not portable. When the entire program is translated it is translated into machine code that is compatible with a specific type of computer. Different types of PCs, Apple, and mobile devices need different machine languages to work.

Hexadecimal numbers are on which base system?

16 base

How many bits does a single hexadecimal digit represent?

4 bits

Language Translators

A language translator is a program that takes one program, written in a high-level language, as input, and creates a machine language program as output.

Which two are both types of scripting languages? Pascal and ASP C++ and Pascal ASP and Python Python and C++

ASP and Python

High-Level Language Interpreted Advantages

Allows for experimentation. If a programmer isn't sure what a code will do, they can easily test it and adjust as needed.

Python

Also meets the criteria for a high-level language and is considered a high level scripting language

Algorithm

An algorithm is a formula or procedure for solving a problem.

What is the function of an interpreter?

Takes the most recently entered instruction, translates it into machine language, and executes it

Data Tier

The data tier is where data are stored, retrieved, and updated from database tables.

Logic Tier

The logic tier sits between the user interface and the data. As such the logic tier is a conduit through which the data flows to the user from the databases as well as how data input from the user is used to update the underlying records in the database. The logic tier is where the system performs its logic processing. Using our e-commerce example, the logic tier is where a query will be run to determine the quantity of items in an order, the price, the available shipping date, etc. When a customer browses items within the e-commerce site this data will be presented to them. The logic-tier resides on the server where the processing occurs.

Script:

The term script is sometimes used to refer to a small program (i.e., one that contains relatively few lines of code). Scripts are short and the instructions simple (compared to applications or systems software). Scripts have been used more for automation than for software development. (Automation means like when a computer turns on and all of the icons show up and some software automatically loads. Those have to be programmed to do so.)

Presentation Tier

The top level of the application is the user interface. The main purpose of the interface is to translate tasks and results to something the user can understand. For example, if I am looking at a product's availability on Amazon. I don't see all the behind the scenes things such as where the product is, how it'd be shipped, etc. I just see that it is available to be to me by Friday.

Script:

This term is also used to describe coding that is for a specific environment. For example, JavaScript is designed to be used inside a web browser environment. The Internet was a major factor in the development of scripting languages, which commonly add functionality to a Web page by influencing the data that the user sees in a browser window.

High-Level Language Interpreted DISadvantages

To execute an interpreted program, every instruction is translated first and then executed; this must be done every time the program is run. This causes execution time to be lengthier than over a similarly compiled program.

What is the function of a compiler?

Translates the entire program, creating an executable program, which can be run at a later time.

MVC- View

This is where you view the information the model produced. The report.

MVC- Controller

This is where you tell the system what information you want

High-Level Compiled Language Translator

Translator: Compiler- translates the entire program, creating a program that can be run at a later time.

High-Level Language Interpreted Translator

Translator: The interpreter takes the most recently entered instruction, translates it into machine language, and executes it.

True or False: High-level languages often use words or abbreviations from the English language.

True. Many programs will use words that are recognizable from the English language to set up commands.

Programming Languages

Which are a vocabulary and set of rules for instructing a computer to perform certain tasks.


Related study sets

Microbiology-chapter 6 (exam 2) pt3

View Set

CompTIA SY0-401 - Topic 3, Threats and Vulnerabilities

View Set

AP Stat - Chapters 1-4 - Multiple Choice - Cumulative Test

View Set

Topic 8 (The Cabinet and Departments)

View Set

Disability Income and Related Insurance

View Set

Database Design : Chapter 9, 10, 11

View Set

N20025: E3: Drugs to Decrease Histamine Effects & Allergic Response

View Set

Chapter 3 Methods and Encapsulation

View Set