Chapt 6 Flashcards

1
Q

binary numbers can have the values of _____ or ______

A

0 or 1

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

hexadecimal uses what numbers and letters?

A

0-9 and A-F

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

what is the data notational system that contains only English letters, numbers and symbols?

A

ASCII

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

if you need a notational system that has non-english letters, what do you need to use?

A

unicode

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

which data type represents a single letter or number?

A

char

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

which data type represents several letters or numbers?

A

string

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

which data type indicates a number with no decimal places?

A

integer

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

which data type indicates a number with decimal places?

A

float

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

a boolean data type represents which two values?

A

true or false

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

name three types of interpreted languages

A

scripted, scripting, markup

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

what are two examples of markup languages?

A

html, xml

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

what type of high level language is read line by line every time it’s executed?

A

interpreted

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

which programming language category is used to write scripts?

A

scripting

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

programming languages that are converted a single time into low-level code are called what?

A

compiled languages

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

what type of programming language is designed to pull data from a database?

A

query

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

what is the low level programming language best suited for direct hardware access?

A

assembly

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

code that is for people to read and does not affect a program is called what?

A

comments or pseudo code

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

to map out a program, you would use a(n) ___________?

A

flow chart

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

which programming logic component uses if and else if statements?

A

branching

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

which program logic component uses while statements?

A

looping

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

in programming, what are the two types of data identifiers?

A

variables and constants

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

which type of programming data identifier does not change?

A

constant

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

which type of programming data identifier can change?

A

variable

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

what are the two types of data containers in programming?

A

arrays and vectors

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

which type of data container is fixed in length?

A

array

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

which type of data container can hold only one data type at a time?

A

array

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

which type of data container can have dynamically adjusted length?

A

vector

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

which type of data container can store multiple data types at once?

A

vector

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

which two programming concepts are used to break code into smaller, reusable chunks?

A

function and methods

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

the three characteristics of an object in programming are what?

A

properties, attributes and methods

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

what are some examples of object-oriented programming languages?

A

c++, python, c#, java, php, perl, ruby

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

flowcharts depict which one of the following?

objects, programs, identifiers, functions

A

programs

33
Q

interpret the following logic. for data input on someone who is 20yrs old, which category will they fall into?

if age<13, then category “child”
else if age<20, then category “teen”
else if age<65, then category “adult”
else category “senior”

teen, child, senior, adult

A

adult

34
Q

a cop has recieved data indicating there are 10 current threats to public safety. what should the threat level be?

if threats < 3, then level “green”
else if threats < 6, then level “yellow”
else if threats < 9, then level “orange”
else if threats < 12, then level “red”
else level “emergency”

orange, red, yellow, green, emergency

A

red

35
Q

which of the following is an example of a markup language?

java, python, XML, SQL

A

XML

36
Q

which of the following are examples of interpreted languages? choose two:

compiled, markup, scripted, query

A

markup and scripted

37
Q

a program shows the number 11010.11 which data type is this?

float, integer, boolean, binary

A

float

38
Q

you want to understand the sequence of a program, from start to finish. which of the following is best to use for this purpose?

object, pseudocode, function, flowchart

A

flowchart

39
Q

a programmer is writing a program that needs to accept an input of someone’s name. what type of variable should the programmer create?

char, string, float, unicode

A

string

40
Q

you have created an array that can hold 15 items, all of the integer data type. you want to add a 16th integer. which of the following is best to approach doing this?

a) add it to the existing array
b) create a vector and replace the array with it.
c) convert the integers to floats and add the 16th integer
d) create a separate variable for the 16th integer

A

b) create a vector and replace the array with it.

41
Q

which of the following statements is true regarding arrays and vectors?

a) arrays can have multiple data types and are fixed in length. vectors have one data type and are dynamic in length.
b) arrays can have multiple data types and are dynamic in length. vectors have one data type and are fixed in length.
c) arrays contain one data type and are fixed in length. vectors can have multiple data types and are dynamic in length.
d) arrays contain one data type and are dynamic in length. vectors can have multiple data types and are fixed in length.

A

c) arrays contain one data type and are fixed in length. vectors can have multiple data types and are dynamic in length.

42
Q

what high level programming language is translated into machine code once and then executed many times?

compiled, scripted, scripting, markup

A

compiled

43
Q

which of the following are examples of object oriented programming languages? choose two:

python, C, SQL, java

A

java and python

44
Q

in object oriented programming, which of the following are integral parts of objects? choose two:

variables, attributes, properties, arrays

A

properties and attributes

45
Q

what type of programming language is designed to retrieve data from a database?

interpreted, assembly, query, compiled

A

query

46
Q

which of the following programming language types is the lowest-level language?

interpreted, assembly, query, compiled

A

assembly

47
Q

which of the following numbers is written in hexadecimal format? choose two:

3268, 18AF, 100101.11, 100101

A

3268, 18AF

48
Q

a programmer wants to write code that directly accesses the computer’s hardware. which is the best type of language for the programmer to use?

compiled, query, interpreted, assembly

A

assembly

49
Q

a developer needs to use a code designation for non-English letters. which notation system does the developer need to use?

international, unicode, ascii, strings

A

unicode

50
Q

looping logic makes use of which of the following statements?

loop, if, while, when

A

while

51
Q

which of the following terms describe concepts related to breaking code into smaller, repeatable sections? choose two:

variables, constants, methods, objects, functions

A

methods and functions

52
Q

needs a command interpreter to be built into the program

assembly, markup, scripted, compiled, interpreted, scripting

A

scripted

53
Q

reads the source code line by line and generates error if written incorrectly

assembly, markup, scripted, compiled, interpreted, scripting

A

interpreted

54
Q

allows the developer to provide instructions directly to the hardware

assembly, markup, scripted, compiled, interpreted, scripting

A

assembly

55
Q

translates the source code into machine code

assembly, markup, scripted, compiled, interpreted, scripting

A

compiled

56
Q

annotates text to tell how to process or manipulate the text

assembly, markup, scripted, compiled, interpreted, scripting

A

markup

57
Q

executes a list of tasks and supports the use of objects, variables and functions

assembly, markup, scripted, compiled, interpreted, scripting

A

scripting

58
Q

convert 145 base 10 to binary

A

10010001

59
Q

convert 122 base 10 to octa base 8:

A

172

60
Q

convert 169 base 10 to hexadecimal:

A

A9

61
Q

analyzing source code.
interpreter: faster, slower, lower, or easier
compiler: faster, slower, higher, or harder

A

interpreter: faster
compiler: slower

62
Q

executing code:
interpreter: faster, slower, lower, or easier
compiler: faster, slower, higher, or harder

A

interpreter: slower
compiler: faster

63
Q

using memory
interpreter: faster, slower, lower, or easier
compiler: faster, slower, higher, or harder

A

interpreter: lower
compiler: higher

64
Q

debugging
interpreter: faster, slower, lower, or easier
compiler: faster, slower, higher, or harder

A

interpreter: easier
compiler: harder

65
Q

var = ‘a’

data type: string, integer, char, float, boolean

A

char

66
Q

var = “a”

data type: string, integer, char, float, boolean

A

string

67
Q

a = 10; a = a+10;

data type: string, integer, char, float, boolean

A

integer

68
Q

double sum; sum = 12.50;

data type: string, integer, char, float, boolean

A

float

69
Q

3 + 4 == 7

data type: string, integer, char, float, boolean

A

boolean

70
Q

(T/F) looping logic is circular rather than linear like branching logic

A

T

71
Q

(T/F) branching logic is good for complex logic comparisons

A

F

72
Q

(T/F) boolean output of the comparison is used to determine the path that the program takes

A

T

73
Q

(T/F) looping is useful for monitoring a state within a program

A

T

74
Q

(T/F) branching logic statements can be used across same data types

A

F

75
Q

a true or false condition, usually represented by 1 (true) or 0 (false)

string, char, integer, float, boolean

A

boolean

76
Q

any number with a decimal place

string, char, integer, float, boolean

A

float

77
Q

one character such as a UTF-16 or UTF-32 character

string, char, integer, float, boolean

A

char

78
Q

zero or more characters

string, char, integer, float, boolean

A

string

79
Q

whole number with no decimal point

string, char, integer, float, boolean

A

integer