Applications of Java Flashcards

1
Q

What is a notable benefit of programming in Java?

a) Java programs can only run on Windows
b) Java programs are difficult to debug
c) Java programs can be run on any platform with the JVM
d) Java requires complex setup procedures

A

c) Java programs can be run on any platform with the JVM

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

What feature allows for code-reusability in Java?

a) Interface
b) Class
c) Method
d) Package

A

b) Class

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

How does Java’s automatic garbage collection benefit developers?

a) It allows for manual memory management
b) It requires developers to deallocate resources
c) It helps focus on business logic without worrying about memory management
d) It reduces the number of available objects

A

c) It helps focus on business logic without worrying about memory management

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

What is a limitation of Java in terms of performance?

a) Java programs cannot use multi-threading
b) Java does not support object-oriented programming
c) Java performance may not match languages like C/C++
d) Java programs run slower on modern machines

A

c) Java performance may not match languages like C/C++

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

What is one of the common use cases of Java?

a) Developing video games exclusively for consoles
b) Web programming using Java Server Pages and servlets
c) Operating system development
d) Writing scripts for automation in Linux

A

b) Web programming using Java Server Pages and servlets

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

In which field is Java widely adopted for its applications?

a) Web design
b) Data analysis
c) Scientific applications
d) Hardware development

A

c) Scientific applications

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

What big data platform is written in Java?

a) Apache Spark
b) Hadoop
c) MongoDB
d) Redis

A

b) Hadoop

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

Which framework can be used for developing graphical user interfaces (GUIs) in Java?

a) Bootstrap
b) Swing
c) Flask
d) Angular

A

b) Swing

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

What is the first official programming language for Android applications?

a) JavaScript
b) Python
c) Java
d) Ruby

A

c) Java

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

Which programming language is now recommended for Android apps, having taken over from Java?

a) C#
b) Kotlin
c) PHP
d) Swift

A

b) Kotlin

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

What is jMonkeyEngine used for?

a) Developing web applications
b) Creating mobile apps
c) Building 3D games
d) Analyzing big data

A

c) Building 3D games

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

What is one of the fields where Java is very popular?

a) Mobile application development
b) Data visualization
c) Distributed computing
d) Game development

A

c) Distributed computing

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

What library allows Java applications to connect to databases?

a) JPA
b) JDBC
c) JNDI
d) Hibernate

A

b) JDBC

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

What does ETL stand for?

a) Extract, Transform, Load
b) Extract, Transmit, Load
c) Encode, Transform, Load
d) Extract, Transform, Link

A

a) Extract, Transform, Load

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

What is a component in Java that allows defining responses to HTTP requests?

a) Java Server Pages
b) Servlet
c) Spring framework
d) REST API

A

b) Servlet

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

What combination simplifies building dynamic websites in Java?

a) HTML and JavaScript
b) HTML and JSP
c) HTML and CSS
d) HTML and Java

A

d) HTML and Java

17
Q

What is a significant feature of the Spring framework?

a) It requires a lot of boilerplate code
b) It simplifies server-side development
c) It is only for mobile applications
d) It does not support REST APIs

A

b) It simplifies server-side development

18
Q

What are boilerplate codes?

a) Code that is unique for each application
b) Repetitive code written in many parts of an application
c) Code that is only found in mobile applications
d) Code that is used for testing

A

b) Repetitive code written in many parts of an application

19
Q

What type of APIs can be easily built using the Spring framework?

a) SOAP APIs
b) REST APIs
c) GraphQL APIs
d) gRPC APIs

A

b) REST APIs

20
Q

Which framework is widely used for big data operations and is written in Java?

a) Apache Flink
b) Apache Hadoop
c) Apache Storm
d) Apache Spark

A

b) Apache Hadoop

21
Q

What popular big data tool is written in both Java and Scala?

a) Apache Hive
b) Apache Kafka
c) Apache Flume
d) Apache Cassandra

A

b) Apache Kafka

22
Q

What is the preferred language for Android application development as of this recording?

a) Java
b) C++
c) Kotlin
d) Swift

A

c) Kotlin

23
Q

How is Kotlin related to Java?

a) Kotlin is a completely different language
b) Kotlin does not support Java code
c) Kotlin is fully interoperable with Java
d) Kotlin cannot be used for Android development

A

c) Kotlin is fully interoperable with Java

24
Q

What is the argument for knowing Java as a programming language?

a) Java is less useful than other languages
b) Java is easy to forget once learned
c) Java is arguably the most important programming language to know
d) Java is only useful for web applications

A

c) Java is arguably the most important programming language to know