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