stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Prep Quiz Flashcards | StudBud
Explore
/
Prep Quiz
Prep Quiz
35 terms
·
StudBud Administration
·
37 plays
Imported from external platform
Flashcards
35 cards
F
Practice quiz
P
Host live
L
Questions
35
Answers
1
What are the features of Java
Robust
OOP Concepts: Object Orientated, Inheritance, Encapsulation, Polymorphism
OOP Concepts, Platform Independent, High Performance, Multi-threaded
OOP Concepts and Platform Independent
2
What is an array in Java programming?
Arrays are used to store single values in single variable.
Arrays are used to store multiple values in a single variable.
Arrays are used to store single values in multiple variables.
Arrays are used to store multiple values in multiple variable.
3
Which one of the following is NOT a Java feature ?
Use of pointers
Portable
Object-Oriented
Dynamic and Extensible
4
Java is a type of ?
Operating System
Knowledge Base
Scripting Language
Programming Language
5
What kind of error is typically harder to find and debug in code writing?
Syntax Error
Error 404
Logic Error
Human Error
6
How many unique combinations of 0’s and 1’s can be made with a 5-binary-digit code ?
16
15
32
64
7
How to write single line comment in Java programming?
\* *\
\ \
/ /
/* */
8
Method used to take a string as input in Java ?
nextLine()
Next()
Both option A & B
None of the above
9
What is Encapsulation ?
Code maintainability
Invisible
Protects the code from others and Code maintainability.
Protects the code from others.
10
Object Oriented Programming (OOP) …
computer code that is written to respond to actions generated
complex cognitive process of decoding symbols to derive meaning.
defined as a programming model which is derived from structured programming
a software design pattern that allows you to think about problems
11
Based on the flowchart below, what is the output if P = 10, Q = 11 and R = 12?
13
132.0
1320
13.2
12
To get PASS for this final exam, you need to get 40% and above. What definition below is right?
40 > Pass
40 >= Pass
Pass >= 40
Pass > 40
13
JRE stands for ?
Java Runtime Environment
JDK runtime Environment
None of the above
Java Run Ecosystem
14
How to call and send value to parameters to method below?
displayValue();
void displayValue();
displayValue(60);
static void displayValue(60);
15
do-while loop
Execute the statements repeat the execution if the condition is true.
Execute condition and repeat statement if true.
If true, exit the block.
If false, loop the block.
16
What kind of error is typically harder to find and debug in code writing?
Female Logic
Logic Error
Human Logic
Error 404
17
Number of primitive data type ?
7 - char, boolean, byte, long, float, short, double
6 - int, char, boolean, byte, long, float
8 - int, char, boolean, byte, long, float, short, double
9 - int, char, boolean, byte, long, float, short, double, point
18
What is Encapsulation ?
Invisible
Protects the code from others and Code maintainability.
Code maintainability
Protects the code from others.
19
Number of primitive data types in Java are?
6 - int, char, boolean, byte, long, float
8 - int, char, boolean, byte, long, float, short, double
9 - int, char, boolean, byte, long, float, short, double, point
7 - char, boolean, byte, long, float, short, double
20
What will the following code output?
4
1
3
2
21
What is the full form of JVM ?
Jukebox Vending Machine
Java Virtual Machine
Java Very Large Machine
Java Verified Machine
22
What will the following code output?
12.9
12.90
12
10
23
What is Polymorphism ?
many forms
variable
security
features of programming language
24
What is CPU?
Computer Part Unit
Click Per Use
Common Personal Usage
Central Processing Unit
25
Result of the code ?
Compilation Error
None of the above
Execption
0
26
Choose a valid loop name in Java below
while
do while
All of the above
for
27
Why programming languages are called high-level language (HLL)?
A system of communication used by a particular country or community
Allows speakers to express thoughts in sentences
The method of human communication
Considered high-level because they are closer to human languages
28
What kind of data type if the desired data to be assigned is “Hello World!”?
double
char
int
String
29
Multiline comment is created using ?
<!---->
/* */
**
/ /
30
Which one of the following is NOT a feature of Java ?
Use of Pointers
Dynamic and Extensible
Portable
Object Oriented
31
Method example ?
wait()
public void run()
Thread t = new Thread();
public static void main (String[] args)
32
Computer uses which number system to store data and perform calculations ?
Binary
Octal
Decimal
Hexadecimal
33
What is the correct syntax to output “Hello World” in Java ?
print (“Hello World”);
Console.WriteLine (“Hello World”);
System.out.println (“Hello World”);
echo (“Hello World”);
34
Which of the following is the binary of the decimal number 35 ?
100011
100101
101001
100001
35
What is the Binary for the decimal 35 ?
100011
100001
101001
100101