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
which type of data container is fixed in length?
array
26
which type of data container can hold only one data type at a time?
array
27
which type of data container can have dynamically adjusted length?
vector
28
which type of data container can store multiple data types at once?
vector
29
which two programming concepts are used to break code into smaller, reusable chunks?
function and methods
30
the three characteristics of an object in programming are what?
properties, attributes and methods
31
what are some examples of object-oriented programming languages?
c++, python, c#, java, php, perl, ruby
32
flowcharts depict which one of the following? objects, programs, identifiers, functions
programs
33
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
adult
34
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
red
35
which of the following is an example of a markup language? java, python, XML, SQL
XML
36
which of the following are examples of interpreted languages? choose two: compiled, markup, scripted, query
markup and scripted
37
a program shows the number 11010.11 which data type is this? float, integer, boolean, binary
float
38
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
flowchart
39
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
string
40
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
b) create a vector and replace the array with it.
41
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.
c) arrays contain one data type and are fixed in length. vectors can have multiple data types and are dynamic in length.
42
what high level programming language is translated into machine code once and then executed many times? compiled, scripted, scripting, markup
compiled
43
which of the following are examples of object oriented programming languages? choose two: python, C, SQL, java
java and python
44
in object oriented programming, which of the following are integral parts of objects? choose two: variables, attributes, properties, arrays
properties and attributes
45
what type of programming language is designed to retrieve data from a database? interpreted, assembly, query, compiled
query
46
which of the following programming language types is the lowest-level language? interpreted, assembly, query, compiled
assembly
47
which of the following numbers is written in hexadecimal format? choose two: 3268, 18AF, 100101.11, 100101
3268, 18AF
48
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
assembly
49
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
unicode
50
looping logic makes use of which of the following statements? loop, if, while, when
while
51
which of the following terms describe concepts related to breaking code into smaller, repeatable sections? choose two: variables, constants, methods, objects, functions
methods and functions
52
needs a command interpreter to be built into the program assembly, markup, scripted, compiled, interpreted, scripting
scripted
53
reads the source code line by line and generates error if written incorrectly assembly, markup, scripted, compiled, interpreted, scripting
interpreted
54
allows the developer to provide instructions directly to the hardware assembly, markup, scripted, compiled, interpreted, scripting
assembly
55
translates the source code into machine code assembly, markup, scripted, compiled, interpreted, scripting
compiled
56
annotates text to tell how to process or manipulate the text assembly, markup, scripted, compiled, interpreted, scripting
markup
57
executes a list of tasks and supports the use of objects, variables and functions assembly, markup, scripted, compiled, interpreted, scripting
scripting
58
convert 145 base 10 to binary
10010001
59
convert 122 base 10 to octa base 8:
172
60
convert 169 base 10 to hexadecimal:
A9
61
analyzing source code. interpreter: faster, slower, lower, or easier compiler: faster, slower, higher, or harder
interpreter: faster compiler: slower
62
executing code: interpreter: faster, slower, lower, or easier compiler: faster, slower, higher, or harder
interpreter: slower compiler: faster
63
using memory interpreter: faster, slower, lower, or easier compiler: faster, slower, higher, or harder
interpreter: lower compiler: higher
64
debugging interpreter: faster, slower, lower, or easier compiler: faster, slower, higher, or harder
interpreter: easier compiler: harder
65
var = 'a' data type: string, integer, char, float, boolean
char
66
var = "a" data type: string, integer, char, float, boolean
string
67
a = 10; a = a+10; data type: string, integer, char, float, boolean
integer
68
double sum; sum = 12.50; data type: string, integer, char, float, boolean
float
69
3 + 4 == 7 data type: string, integer, char, float, boolean
boolean
70
(T/F) looping logic is circular rather than linear like branching logic
T
71
(T/F) branching logic is good for complex logic comparisons
F
72
(T/F) boolean output of the comparison is used to determine the path that the program takes
T
73
(T/F) looping is useful for monitoring a state within a program
T
74
(T/F) branching logic statements can be used across same data types
F
75
a true or false condition, usually represented by 1 (true) or 0 (false) string, char, integer, float, boolean
boolean
76
any number with a decimal place string, char, integer, float, boolean
float
77
one character such as a UTF-16 or UTF-32 character string, char, integer, float, boolean
char
78
zero or more characters string, char, integer, float, boolean
string
79
whole number with no decimal point string, char, integer, float, boolean
integer