stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
IT June Exam Prep 2023 Flashcards | StudBud
Explore
/
IT June Exam Prep 2023
IT June Exam Prep 2023
30 terms
·
StudBud Administration
·
27 plays
Imported from external platform
Flashcards
30 cards
F
Practice quiz
P
Host live
L
Questions
30
Answers
1
What is the use of the 'System.out.println()' function in Java?
Reads user input
Creates a new string
None of the above
Prints output to the console
2
What is the correct syntax for an 'if' statement in Java?
if condition {}
if (condition) {}
if then (condition) {}
if condition then {}
3
How does Java define the term 'integer'?
A whole number
A true or false value
A string of characters
A floating point number
4
How do you declare a character variable in Java?
int var;
double var;
char var;
string var;
5
Which pair of components below is critical for a gaming setup in an E-Sports arena?
Inkjet printer and optical scanner
High-end headphones and microphone
Robust graphics card (GPU) and high-speed processor (CPU)
Advanced word processing software and spreadsheet program
6
Which Java method can be used to calculate the square root of a number?
Math.sqrt()
Math.squareRoot()
Math.sqroot()
Math.root()
7
In Java, what is the purpose of the 'break' keyword?
It is used to break the program execution
It is used to break or terminate a loop or switch statement
It is used to break a variable declaration
None of the above
8
Why is the security of electronic communication paramount in an educational setting?
To ensure system availability and uptime
To protect sensitive data from unauthorized access
To safeguard against physical theft of devices
To prevent hardware failures
9
What differentiates volatile memory from non-volatile memory?
Volatile keeps data without power while non-volatile doesn't
Volatile is slower than non-volatile
Volatile doesn't keep data without power while non-volatile does
Non-volatile is used for temporary data while volatile for permanent
10
In Java, what does the 'parseDouble' method do?
Converts a string to a double
Parses a string and returns the double value of the first number found
Converts a double to a string
None of the above
11
What Java keyword is used for conditional statements?
switch
if
all of the above
else
12
What is one potential drawback of integrating ICT into education?
Can lead to over-reliance on technology
Enhances communication and collaboration
Facilitates access to a wide range of resources
Promotes interactive learning
13
What does the "double" keyword in Java represent?
A floating-point type variable
A string type variable
A boolean type variable
An integer type variable
14
How do you calculate the length of a string in Java?
len()
length()
lengthOfString()
size()
15
In Java, which of the following methods is used to convert a string to uppercase?
stringToUpper()
toUpperCase()
upperCase()
toUpper()
16
The mouse is an _____ device, and the printer is an _____ device.
input, output
input, input
output, input
output, output
17
The binary number 11010 converts to what in decimal?
28
32
30
26
18
Which of the following is used to read user input in Java?
JOptionPane.userInput()
JOptionPane.showInputDialog()
JOptionPane.getInput()
JOptionPane.readInput()
19
How do you declare a variable in Java?
declare variableName;
variable name;
type variableName;
type name;
20
What is the correct way to convert a string to an integer in Java?
parseInteger()
parse.Int()
Integer.parseInt()
int.parse()
21
The decimal number 20 converts to what in binary?
11001
10010
10101
10100
22
What does the 'default' keyword denote in a switch statement in Java?
None of the above
It specifies the code to run if there is no match with any cases
It declares default values for variables
It specifies the code to run if there is a match with the case
23
What does the term 'string' mean in Java?
A series of characters
A mathematical operation
A type of loop
None of the above
24
What distinguishes system software from application software?
System software includes browsers, but application software includes OS
System software manages hardware but application software does user-tasks
System software can't be installed by users, but application software can
There is no difference; the two terms are interchangeable
25
Which Java class is primarily used for mathematical operations?
Calculation
Arithmetic
Numbers
Math
26
What does the 'NaN' in Java stand for?
Not a Number
Non-Applicable Number
Not a Name
None of the above
27
Which of the following is the correct syntax for a switch statement in Java?
switch: variable { case value1: code; break; ... default: defaultCode; }
switch (variable) case value1: code; break; ... default: defaultCode;
switch variable { case: value1; code; break; ... default: defaultCode; }
switch (variable) { case value1: code; break; ... default: defaultCode; }
28
In the realm of Information and Communication Technologies (ICT), which technology is NOT usually included?
Internet connectivity
Cloud-based services
Social media platforms
Power grid systems
29
Why is it not advisable to run games on a system with a low-performance GPU?
The system may crash frequently.
All of the above.
The gameplay may be poor due to low frame rates and poor image rendering.
The games may not load at all.
30
How can you concatenate two strings in Java?
With the 'concat()' method
All of the above
With the '+' operator
With the '.' operator