Terms Flashcards

1
Q

What is the difference between assembly language and machine language

A

Assembly language uses mnemonics whale machine language uses binary

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

What is the difference between interpreters and compilers

A

Interpreters execute each line of code by converting into executable form while compilers check the source code for errors, and if there’s none converts the whole code into object code 

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

What is a variable

A

It is an identifier used to represent some specified type of information within a designated portion of the program

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

What are constants

A

Identifiers whose values never change

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

Control string?

A

String that contains formatting information

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

What are comments used for

A

1.Documentation of variables and their usage
2. Explaining difficult sections of code
3. Describes the program
4.Copyrighting

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

What is an array

A

An array is an identifier that refers to a collection of data items (of the same data type)that all have the same name

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

What are control structures

A

These are statements used to control the sequence in which instructions of a program are executed

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

What is a function

A

A self contained program Segment that carries out some specific well-defined task

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

The structure of a function

A

Data type name(type1 arg1, type2 arg2,…,typen argn )

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

What is a local variable

A

These are declared within a function and are local to that function

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

What are global variables

A

Variables that are not confined to single functions

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

What is recursion

A

It is the process by which some functions call itself repeatedly until some specified condition has been satisfied 

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

What are algorithms

A

Series of steps that are used to solve a programming problem 

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

What is static variable

A

Variables that have the property of preserving their value even after they are out of their scope

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

What is a pointer

A

Pointer is a variable that represents the location rather than the value of a data item