Create Account
Sign In
Toggle navigation
Home
Practice Exams
Official IQ Testing Hub
MCQ Learn
Board Exams
Learn
BISE Courses
Blog
About Us
Contact Us
00
:
32
:
00
Q:
1
/
35
🤖
Evaluating Your Answers
Please wait while our AI system evaluates your descriptive answers...
This may take a few moments.
⏳ Processing...
We're using advanced AI to provide detailed feedback on your answers.
Java Programming Mock Test 4
Exam Duration:
00:32:00
Java Programming Mock Test 4
: Question
1
of 35
What is the recommended way to install Ruby gems in a project?
1 Mark(s)
Your Answer:
Manually downloading and adding gem files to the project
Manually downloading and adding gem files to the project
Using RubyGems
Using RubyGems
Using gem install command
Using gem install command
Using Bundler
Using Bundler
Which of the following is used in hash tables to determine the index of any input record?
1 Mark(s)
Your Answer:
hash function
hash function
hash linked list
hash linked list
hash tree
hash tree
hash chaining
hash chaining
An increasingly popular option for data distribution as well as for fault tolerance of any database is to store a separate copy of the database at each of two or more sites.
1 Mark(s)
Your Answer:
True
True
False
False
Row sets can be scanned:
1 Mark(s)
Your Answer:
Backward
Backward
Forward
Forward
Modifying
Modifying
All of the Above
All of the Above
What is the output for the below code? public class Test{ public static void printValue(int i, int j, int k){ System.out.println("int"); } public static void printValue(byte...b){ System.out.println("long"); } public static void main(String... args){ byte b = 9; printValue(b,b,b); } }
1 Mark(s)
Your Answer:
long
long
int
int
Compilation fails
Compilation fails
Compilation clean but throws RuntimeException
Compilation clean but throws RuntimeException
None of these
None of these
: Which of the following statements about one-dimensional arrays is false?
1 Mark(s)
Your Answer:
Arrays can store multiple values of the same type.
Arrays can store multiple values of the same type.
Array elements are stored in contiguous memory locations.
Array elements are stored in contiguous memory locations.
The size of an array must be a constant expression in C.
The size of an array must be a constant expression in C.
The size of an array can be changed after declaration.
The size of an array can be changed after declaration.
Statement that may specify restrict in order to prevent cascading revocation, is called:
1 Mark(s)
Your Answer:
Revoke
Revoke
Restrict
Restrict
Assign
Assign
Cascade
Cascade
Group of cells that are similar in task and nature form a:
1 Mark(s)
Your Answer:
Tissue
Tissue
organ
organ
organism
organism
cytoplasm
cytoplasm
In OOOVBOVB, V stands for violation and B stands for:
1 Mark(s)
Your Answer:
Bit
Bit
Baud
Baud
Bandwidth
Bandwidth
Bipolm
Bipolm
Shallow roots obtain water by spreading to:
1 Mark(s)
Your Answer:
larger surface area
larger surface area
reach ground
reach ground
touch stones
touch stones
absorb sand
absorb sand
Mirrors used in reflecting telescopes, catadioptric lens systems and headlamps are:
1 Mark(s)
Your Answer:
plane mirrors
plane mirrors
concave mirrors
concave mirrors
convex mirrors
convex mirrors
virtual mirrors
virtual mirrors
The statement that is used to tell the database system to delete the temporary relation that held the result of the query, is said to be:
1 Mark(s)
Your Answer:
Delete statement
Delete statement
End statement
End statement
Terminate statement
Terminate statement
Close statement
Close statement
An abstract class may contain:
1 Mark(s)
Your Answer:
instance variables
instance variables
constructors
constructors
another class
another class
all of the above
all of the above
What will be the output of the following C++ code? #include <iostream> using namespace std; int f(int &x, int c) { c = c - 1; if (c == 0) return 1; x = x + 1; return f(x, c) * x; } int main(int argc, char const *argv[]) { int a = 4; cout<<f(a,a); return 0; }
1 Mark(s)
Your Answer:
343
343
336
336
120
120
840
840
Computer word size is a multiple of:
1 Mark(s)
Your Answer:
16 bits
16 bits
4 bits
4 bits
1024 bits
1024 bits
10 bits
10 bits
What is the load factor?
1 Mark(s)
Your Answer:
Average array size
Average array size
Average key size
Average key size
Average chain length
Average chain length
Average hash table length
Average hash table length
In a regular expression, what does the metacharacter `^` represent when used at the beginning of a pattern?
1 Mark(s)
Your Answer:
The start of a line
The start of a line
The end of a line
The end of a line
Any character
Any character
A space
A space
In computer, process of superimposing a low frequency signal over a high frequency signal is called:
1 Mark(s)
Your Answer:
modulation
modulation
demodulation
demodulation
conversion
conversion
transformation
transformation
Offline device is _____________________?
1 Mark(s)
Your Answer:
a device which is connected to CPU
a device which is connected to CPU
a device which is not connected to CPU
a device which is not connected to CPU
a direct access storage device
a direct access storage device
an I/O device
an I/O device
Which of the following is not true about the 2-3 tree?
1 Mark(s)
Your Answer:
all leaves are at the same level
all leaves are at the same level
it is perfectly balanced
it is perfectly balanced
postorder traversal yields elements in sorted order
postorder traversal yields elements in sorted order
it is B-tree of order 3
it is B-tree of order 3
The process used to obtain the solute from a solution is known as:
1 Mark(s)
Your Answer:
sublimation
sublimation
distillation
distillation
filtration
filtration
evaporation
evaporation
Which is not included in a Font Style in MS-Word?
1 Mark(s)
Your Answer:
Bold
Bold
Italic
Italic
Regular
Regular
Superscript
Superscript
In connection-oriented protocols, a sequence of packets are sent on the same path in:
1 Mark(s)
Your Answer:
random order
random order
sequential order
sequential order
no specific order
no specific order
according to priority
according to priority
What will be the output of the following PHP code ? <?php for ($count = 1; $count != 20;$count++) { print $count; $count++; } ?>
1 Mark(s)
Your Answer:
Infinite
Infinite
123…….20
123…….20
1357…19
1357…19
13579…21
13579…21
A chip in a computer that converts parallel data from the bus into serial data that flows through a serial cable, is called:
1 Mark(s)
Your Answer:
UART
UART
SCSI
SCSI
MIDI
MIDI
USB
USB
C #include <stdio.h> int main() { const int x; x = 10; printf("%d", x); return 0; }
1 Mark(s)
Your Answer:
10
10
0
0
Runtime Error
Runtime Error
What is the main drawback of using linear probing in hash tables?
1 Mark(s)
Your Answer:
Increased memory usage.
Increased memory usage.
Decreased speed of hash functions.
Decreased speed of hash functions.
Clustering of elements can occur.
Clustering of elements can occur.
Difficulty in implementing the hash function.
Difficulty in implementing the hash function.
Stream Control Transmission Protocol (SCTP) is a new:
1 Mark(s)
Your Answer:
message-oriented transport layer protocol
message-oriented transport layer protocol
connectionless protocol
connectionless protocol
connection oriented protocol
connection oriented protocol
stream oriented protocol
stream oriented protocol
What does the sort() function do in R?
1 Mark(s)
Your Answer:
Arrange elements in ascending order
Arrange elements in ascending order
Shuffle the elements randomly
Shuffle the elements randomly
Reverse the order of elements
Reverse the order of elements
Sort elements in descending order
Sort elements in descending order
What is the correct syntax for a function pointer?
1 Mark(s)
Your Answer:
int *ptr(int, int)
int *ptr(int, int)
int (*ptr)(int, int)
int (*ptr)(int, int)
int ptr(int, int)
int ptr(int, int)
*int ptr(int, int)
*int ptr(int, int)
The space left between the margin and the start of a paragraph is called ___________?
1 Mark(s)
Your Answer:
Spacing
Spacing
Gutter
Gutter
Indentation
Indentation
Alignment
Alignment
Which of the following can be used to create an abstract class in the C++ programming language?
1 Mark(s)
Your Answer:
By using the pure virtual function in the class
By using the pure virtual function in the class
By declaring a virtual function in the base class
By declaring a virtual function in the base class
By declaring the virtual keyword afterward, the class Declaration
By declaring the virtual keyword afterward, the class Declaration
None of the above
None of the above
As an example to find the set of all courses taught in the Fall 2009 or in Spring 2010, or both, the operation to be used is:
1 Mark(s)
Your Answer:
The Intersection all Operation
The Intersection all Operation
The Intersection Operation
The Intersection Operation
The Union Operation
The Union Operation
The Except Operation
The Except Operation
In which environment we can performed the Beta testing?
1 Mark(s)
Your Answer:
User's and developer's end
User's and developer's end
Developer's end
Developer's end
User's end
User's end
None of the above
None of the above
A Synchronous Optical Networking (SONET) network, can be used as a high-speed backbone carrying loads from other networks such as:
1 Mark(s)
Your Answer:
Card Swapping Machine
Card Swapping Machine
ATM
ATM
master card
master card
gold card
gold card
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.