stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Final 2019 Flashcards | StudBud
Explore
/
Final 2019
Final 2019
80 terms
·
StudBud Administration
·
114 plays
Add 5 questions per person (group work allowed). Write your initials at the end of your questions.
Flashcards
80 cards
F
Practice quiz
P
Host live
L
Questions
80
Answers
1
What is the value of the expression (double) (7 / 2) + (int) (7.2) ------ BP
10.7
10
10.5
11
2
Sample question- Computer Science is which of the following?
cool
epic
fun
neato
3
true or false java was made for reliability not speed -ej
true
false
4
What is "abc".indexOf( "b" )? ----MI
0
2
1
3
5
The part of the machine-level instruction that tells the central processor what‘s to be done KO
Operation code
None
Operand
Address
6
Which of the following does not create a new line after printing "Hello"? ----- EW
System.out.printf("Hello"\n);
System.out.println("Hello");
System.out.print("Hello");
System.out.print("Hello"); System.out.println();
7
The difference between memory and storage is that memory is ____ and storage is ____ (by KO)
Slow, Fast
Temporary, Permanent
Permanent, Temporary
Fast, Slow
8
When you declare a variable and give it a value at the beginning of a program -SN
Initialize
Imitate
Initiate
Start-up
9
What does OSI stand for? ---- AY
Open Source Internet
Optional Source Information
Open Server Interconnection
Open Systems Interconnection
10
int t; t = (int)99.999999;-----T.L.
100
99.0
99
11
Which test asks for user recommendations? -- N.D.
Alpha Testing
Comparison Testing
Beta Testing
Integration Testing
12
Which of the following defines polymorphism?-EL
The ability to assign a different usage to a method/object
A method that only assigns values to variables or objects
A method that returns a value to an invoking statement
A type of class that is not meant to be instantiated
13
Actual execution of instructions in a computer takes place in (by KO)
Control unit
Storage unit
Motherboard
ALU
14
Which is not a benefit of polymorphism? ---- AY
Simplicity
Extensibility
Reusability
Maintainability
15
Express -15 as a 6-bit signed binary number. L.I.
101111
001111
001110
101110
16
The number 4E3 is equal to------T.L.
4000.0
400.0
30000.0
4300.0
17
Which of these best describes an array? L.I
Container of objects of mixed types
Container of objects of similar types
18
Which of the following would typically be the name of an accessor method? ------ EW
deleteName()
setName()
getName()
sortNames()
19
How big is a byte? C.W.
8 GB
100 g
8 bits
1024 bites
20
Which of the following declares int "int"? ----NS
int int
int lint
lint lint
lint int
21
Which of the following is used as a primary storage device (by KO)
Magnetic tape
CD-ROM
Floppy disk
PROM
22
Which language type uses English statements and symbols to write computer instructions? ---- BP
High-Level
Machine
Assembly
23
What is the data type of the value of 7 + "2.5"? ----MI
String
int
double
number
24
Simplifying complexity in computer science is called -SN
Abstraction
Simplification
Data Mining
Functional Programming
25
An example of a higher level programming language -DJ
Pseudocode
Machine language
Assembly
Python
26
What is a bit array? L.I
Data structure that compactly stores bits
None of the mentioned
An array in which most of the elements have the same value
Data structure for representing arrays of records
27
When does a while loop end? NA
When Mr. Roxborough says so
When a for loop is introduced
When a println is stated
When the conditions end the loop
28
Which of the following defines a nested loop? -EL
A loop which appears within the body of another loop
a method that accesses private instance variables
Froot Loop
an instance of a class, has a state and a behavior
29
What is the binary number 10 in decimal? ----NS
1
2
10
20
30
What is the most widely used programming language? ------ BP
Javascript
C++
Java
Python
31
what was the original name for javascript -ej
coffee
mocha
latte
tea
32
Convert the number 42 to binary. ------ BP
101101
101010
110010
010010
33
Which of the following is a double? ----NS
2.2
2^2
2/2
2
34
Malware that replicates itself is called -SN
Ransomware
Exploit
Virus
Bootlooper
35
What are the advantages of using an ArrayList over an array? ----- EW
ArrayList allows you to include different types of variables
ArrayList has no limit to the number of values it can hold
There's no advantage - they're the same thing
ArrayList allows you to delete and add values more easily
36
Who wrote the first computer program in 1842? ---- AY
Augusta Ada King-Noel
Jacob Bernoulli
Tom Roxborough
Charles Babbage
37
AND, NOT, OR are examples of what? C.W.
Boolean operators
Search Engine
Software
Conjunctions
38
What does P2P stand for? ---- AY
Pay-to-play
Person-to-person
Peer-to-peer
Pay-to-person
39
The decimal number for a binary number 100101 is? - (AP)
42
33
12
37
40
What is the most popular coding language-CL
Ruby
Python
C++
Java
41
Searching a set by starting at the beginning and working your way to the end -SN
Linear Search
Bubble Search
Quick Search
Binary Search
42
Code that is meant to be read by humans, not instructions for a computer - DJ
fake code
written code
pseudocode
paper code
43
What is the minimum value that an int can have? ----- EW
-231
-7,617,893,567
negative infinity
-10000000000000
44
What is the value of int(3.1415)? NA
3.0
3
3.1415
3.145
45
Which of the following is a modifier method? ----MI
getGrade()
getName()
setName()
getAge()
46
8 bits is a -DJ
bite
byte
bitrate
kilobit
47
Who invented Java in 1991? ------ BP
Bjarne Stroustrup
Brendan Eich
James Gosling
Dennis Ritchie
48
The access method used for magnetic tape is (by KO)
Random
None of the above
Sequential
Direct
49
Which of the following is an integer? ----NS
1/(1+1)
0.1
1.1
1
50
who created JAVASCRIPT -ej
patrick naughton
james gosling
brendan eich
51
What is another topic that requires computer science? C.W.
Accounting
Artificial Intelligence
Biology
Chemistry
52
What is the value of (int)3.14 + ""? ----MI
"3"
"3.14"
3.14
3
53
What are the advantages of arrays? L.I
to implement other data structures like stack and queue
Convenient way to represent matrices as a 2D array
All of the Above
Easier to store elements of same data type
54
What does UML stand for? -- N.D.
Uninterrupted Machining Lathe
Unified Modelling Language
User Manual Lessons
Ultra Mega Laser
55
which language is easier to understand -ej
java
javascript
56
What is object-oriented programming? -EL
A type of programming that defines the types of operations
Machine language instructions
Something that is defined as "smaller versions" of itself
Correctly written programming statements
57
Who wrote the first computer program?-CL
Albert Einstein
Ada Lovelace
No Clue
James Gosling
58
JPEG and MP3 are examples of this type of data compression -SN
Lossy
Lossless
Encrypted
Media
59
Which one of these count as a peripheral? -- N.D.
Mouse Driver
Firewall
Keyboard
Processor
60
The number 1.5E2 is equal to------T.L.
2.25
1.5
150
61
The number 2.5E2 is equal to... ----MI
0.25
2.05
250.0
25.0
62
Which is not a stylistic convention of variable names in Java? - (AP)
camel-case for multiple words
Meaningful
Start with capital letter
Starts with a lowercase
63
Convert 34.625 to binary. ---- AY
100010.101
101010.001
010001.011
100010.111
64
Which of the following defines a boolean? -EL
The process of determining an expression
The greatest integer equal to the floating point number
Binary variable having 2 possible values (true/false)
Stores single keyboard characters
65
double r; r = 3.14;-----T.L.
3.14
0
6.28
66
A _________ statement gives a value or an object to its caller - (AP)
Parameter
Program
Class
Return
67
What does DNS stand for? - (AP)
Digital Name Server
Domain Norming Servers
Domain Name System
Dongle Network Stream
68
Which statement would print a new line? ----NS
system.out.print()
system.out.print(")
system.out.println()
system.out.print("")
69
The minimum # of bits needed to encode the alphabet plus a space (total- 27 characters) -EL
5 bits
2 bits
6 bits
3 bits
70
Which of the following is an example of a for loop? C.W.
For(i > 10)
For (i = 10);
For(i = 10; i < 20; i++)
For(i == true)
71
How many times will this for loop iterate? for ( n=0; n<5; n++) ---- EW
6
4
5
7
72
who created JAVA -ej
ada lovelace
patrick naughton
james gosling
73
Declaring a variable at the beginning and end of a program -DJ
Initiate
Instance
Establish
Initialize
74
How many ram types are there? -- N.D.
1
4
3
2
75
Who invented computer science? C.W.
Daffy Duck
Bill Gates
Ada Lovelace
Charles Babbage
76
When a function calls itself, it is called - DJ
Restricted
Recursive
Repetitive
Redundant
77
The maximum rate at which data can transfer? - (AP)
Latency
Bitstream
Bandspeed
Bandwidth
78
What is 35 in hexadecimal? -- N.D.
22
23
42
1C
79
Identify the disadvantages of bit array. L.I
All of the Above
Accessing individual bits is expensive
Without compression, they might become sparse
80
double a; a = 3; ----TL
3.0
0
6