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
:
53
:
00
Q:
1
/
59
🤖
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 16
Exam Duration:
00:53:00
Java Programming Mock Test 16
: Question
1
of 59
Transactions are used to treat sets of SQL statements atomically.
1 Mark(s)
Your Answer:
True
True
False
False
The ODBC core API consists of which of the following functions?
1 Mark(s)
Your Answer:
Commit or rollback transactions only
Commit or rollback transactions only
Connect to data sources with driver-specific information only
Connect to data sources with driver-specific information only
Connect to data sources only
Connect to data sources only
Both 1 and 3 above are in the OBDC core API
Both 1 and 3 above are in the OBDC core API
Which one of the following namespaces contains the definition for IdbConnection ?
1 Mark(s)
Your Answer:
System.Data.Interfaces
System.Data.Interfaces
System.Data.Connection
System.Data.Connection
System.Data.Common
System.Data.Common
System.Data
System.Data
What will be the output of the following Python code? l=[-2, 4] m=map(lambda x:x*2, l) print(m)
1 Mark(s)
Your Answer:
[-4, 16]
[-4, 16]
Address of m
Address of m
Error
Error
-4 16
-4 16
1atm is equals to:
1 Mark(s)
Your Answer:
120 torr
120 torr
760 torr
760 torr
234 torr
234 torr
520 torr
520 torr
The primary device that a computer uses to store information ____________________?
1 Mark(s)
Your Answer:
TV
TV
Storehouse
Storehouse
Desk
Desk
Hard drive
Hard drive
Which of the following formatting options can be used in order to add 'n' blank spaces after a given string 'S'?
1 Mark(s)
Your Answer:
print("-ns"%S)
print("-ns"%S)
print("-ns"%s)
print("-ns"%s)
print("%ns"%S)
print("%ns"%S)
print("%-ns"%S)
print("%-ns"%S)
Which of these is a a type of sound file?
1 Mark(s)
Your Answer:
.DAT files
.DAT files
.LOG files
.LOG files
.DRV files
.DRV files
.WAV files
.WAV files
In drawing aggregate, upper cylinders are called as:
1 Mark(s)
Your Answer:
Pressure cylinders
Pressure cylinders
Draft cylinders
Draft cylinders
Drawing cylinder
Drawing cylinder
Cylinders
Cylinders
Animals which hunt at night and can see in dark nights are:
1 Mark(s)
Your Answer:
cats
cats
owl
owl
fox
fox
all of them
all of them
The idea of Return to Zero (RZ) and Non-Return to Zero-Level (NRZ-L) are combined into the:
1 Mark(s)
Your Answer:
manchester
manchester
Differential Manchester
Differential Manchester
multilevel bipolar transition
multilevel bipolar transition
multi transition scheme
multi transition scheme
What is the purpose of the ctrl + ] shortcut key in applications like MS Word?
1 Mark(s)
Your Answer:
Increase font size
Increase font size
Decrease font size
Decrease font size
Increase paragraph spacing
Increase paragraph spacing
Close the document
Close the document
In case of non-static member functions how many maximum object arguments a unary operator overloaded function can take?
1 Mark(s)
Your Answer:
1
1
2
2
3
3
0
0
What will be the output of the following C code? #include <stdio.h> void foo( int[] ); int main() { int ary[4] = {1, 2, 3, 4}; foo(ary); printf("%d ", ary[0]); } void foo(int p[4]) { int i = 10; p = &i; printf("%d ", p[0]); }
1 Mark(s)
Your Answer:
10 10
10 10
Compile time error
Compile time error
10 1
10 1
Undefined behaviour
Undefined behaviour
Orbital speed of Venus is:
1 Mark(s)
Your Answer:
35.0 Km/s
35.0 Km/s
47.9 Km/s
47.9 Km/s
13.1 Km/s
13.1 Km/s
29.8 Km/s
29.8 Km/s
What is the size of myArray in the code shown below? (Assume that 1 character occupies 1 byte) typedef char x[10]; x myArray[5];
1 Mark(s)
Your Answer:
5 bytes
5 bytes
10 bytes
10 bytes
40 bytes
40 bytes
50 bytes
50 bytes
What will be the output if we execute the following C++ code and pass the given arguments on the terminal? #include
usingnamespace std; int main(intargc, charconst*argv[]) { for(int i=0;i
usingnamespace std; int main(intargc, charconst*argv[]) { for(int i=0;i
1 Mark(s)
Your Answer:
./output Hello World
./output Hello World
Hello World
Hello World
program.cpp Hello
program.cpp Hello
program.cpp Hello World
program.cpp Hello World
What is the primary purpose of the Hadoop YARN ResourceManager?
1 Mark(s)
Your Answer:
Manages computation resources
Manages computation resources
Manages storage layer
Manages storage layer
Executes MapReduce jobs
Executes MapReduce jobs
Manages Hadoop ecosystem tools
Manages Hadoop ecosystem tools
Generalization of the group by construct is supported by SQL to perform the:
1 Mark(s)
Your Answer:
all operation
all operation
commit operation
commit operation
rollup operation
rollup operation
null operation
null operation
Good electrical conductors allow the current pass through which is very:
1 Mark(s)
Your Answer:
high
high
low
low
constant
constant
medium
medium
Diameter of carrier bead from photocopying machine is about:
1 Mark(s)
Your Answer:
0.3 mm
0.3 mm
2 mm
2 mm
1.5 mm
1.5 mm
0.05 mm
0.05 mm
Incorrect gauge leads to:
1 Mark(s)
Your Answer:
floating fibers
floating fibers
short fibers
short fibers
long fibers
long fibers
thick fibers
thick fibers
Inverse Laplace transform of f(s)=a2/s3 is:
1 Mark(s)
Your Answer:
a/2 t2
a/2 t2
a2/2 t3
a2/2 t3
a2/2 t4
a2/2 t4
a2/2 t2
a2/2 t2
Non-magnetic elements are mostly:
1 Mark(s)
Your Answer:
non-metal
non-metal
metal
metal
semi-solid
semi-solid
liquid
liquid
In Hive, what is the function of the LATERAL VIEW statement?
1 Mark(s)
Your Answer:
Sort the result set based on specified columns
Sort the result set based on specified columns
Explode complex types in Hive tables
Explode complex types in Hive tables
Group records based on a column
Group records based on a column
None of the above
None of the above
Staining of heavy metal at times results in:
1 Mark(s)
Your Answer:
extra details
extra details
less details
less details
wrong details
wrong details
enhanced details
enhanced details
In NiFi, what is the purpose of the "connection" between processors?
1 Mark(s)
Your Answer:
Group records based on a condition
Group records based on a condition
Define the flow of data between processors
Define the flow of data between processors
Join records from multiple tables
Join records from multiple tables
None of the above
None of the above
Where is metadata stored in MySQL?
1 Mark(s)
Your Answer:
In the MySQL database metadata
In the MySQL database metadata
In the MySQL database metasql
In the MySQL database metasql
In the MySQL database mysql
In the MySQL database mysql
None of the above is correct
None of the above is correct
x=x+1 is equivalent to _________________?
1 Mark(s)
Your Answer:
x++
x++
++x
++x
x=x-1
x=x-1
None of these
None of these
Which MS Word feature lets you reuse preformatted text blocks?
1 Mark(s)
Your Answer:
Macros
Macros
Bullets
Bullets
Quick Parts
Quick Parts
None of these
None of these
Which of the following loops will execute the body of loop even when condition controlling the loop is initially false?
1 Mark(s)
Your Answer:
do-while
do-while
while
while
for
for
none of the mentioned
none of the mentioned
In the given connected graph G, what is the value of rad(G) and diam(G)?
1 Mark(s)
Your Answer:
2, 3
2, 3
3, 2
3, 2
2, 2
2, 2
3, 3
3, 3
What is the purpose of the seq() function in R?
1 Mark(s)
Your Answer:
Create a sequence of numbers
Create a sequence of numbers
Sort a vector
Sort a vector
Merge two data frames
Merge two data frames
Compute the mean of a numeric vector
Compute the mean of a numeric vector
Which topology is most expensive to implement due to cabling costs?
1 Mark(s)
Your Answer:
Star
Star
Bus
Bus
Ring
Ring
Mesh
Mesh
What is the function used to stop capturing the ad hoc timing ?
1 Mark(s)
Your Answer:
stopadhoc()
stopadhoc()
stopTimer()
stopTimer()
stopTimeLogging()
stopTimeLogging()
none of the mentioned
none of the mentioned
The input must be a collection of numbers for the aggregate function:
1 Mark(s)
Your Answer:
Avg
Avg
Sum
Sum
Both A and B
Both A and B
Min/Max
Min/Max
To remove the content of selected cells you must issue ______ command
1 Mark(s)
Your Answer:
Delete
Delete
Clear Contents
Clear Contents
Clear All
Clear All
Clear Delete
Clear Delete
What is the output of the given code? a=5 b=15 while b>a puts a*(b-a) while a>b a+=1 b-=1 end end
1 Mark(s)
Your Answer:
5..15
5..15
50
50
Infinite loop
Infinite loop
5 50
5 50
How many Character per sec(7bits + 1parity) can be transmitted over a 2400 bps line if the transfer is synchronous (1 "Start" and 1 "stop" bit)?
1 Mark(s)
Your Answer:
300
300
240
240
250
250
275
275
What will be the output of the following PHP code ? <?php $y = 2; if (--$y <> ($y != $y++)) { echo $y; } ?>
1 Mark(s)
Your Answer:
1
1
0
0
2
2
no output
no output
In which type of computer, data are represented as discrete signals?
1 Mark(s)
Your Answer:
Analog computer
Analog computer
Digital computer
Digital computer
both
both
Hybrid Computer
Hybrid Computer
A conditional expression is also called a
1 Mark(s)
Your Answer:
Alternate to if-else
Alternate to if-else
Immediate if
Immediate if
If-then-else statement
If-then-else statement
None of the mentioned
None of the mentioned
Which would you choose to move selected text from one place to another?
1 Mark(s)
Your Answer:
Move and Paste
Move and Paste
Copy and Paste
Copy and Paste
Cut and Paste
Cut and Paste
Delete and Paste Answer
Delete and Paste Answer
What will be the output of the following C# code? static void Main(string[] args) { byte b1 = 0 * AB; byte b2 = 0 * 99; byte temp; temp = (byte) ~b2; Console.Write( temp + " "); temp = (byte) (b1 << b2); Console.Write(temp + " "); temp = (byte)(b2 >> 2); Console.WriteLine(temp); Console.ReadLine(); }
1 Mark(s)
Your Answer:
101 0 34
101 0 34
103 2 38
103 2 38
102 0 38
102 0 38
101 1 35
101 1 35
What is the difference between class composition and class inheritance?
1 Mark(s)
Your Answer:
Composition allows creating new classes
Composition allows creating new classes
Inheritance allows creating new classes
Inheritance allows creating new classes
Composition involves using existing classes
Composition involves using existing classes
Inheritance involves using existing classes
Inheritance involves using existing classes
Semimajor axis of planet Venus is:
1 Mark(s)
Your Answer:
5.79x1010 m
5.79x1010 m
15.0x1010 m
15.0x1010 m
10.8x1010 m
10.8x1010 m
22.8x1010 m
22.8x1010 m
The output of the following Python code is either 1 or 2. import random random.randint(1,2)
1 Mark(s)
Your Answer:
True
True
False
False
Coefficient of thermal expansion of Copper is:
1 Mark(s)
Your Answer:
23x10-6/C°
23x10-6/C°
29x10-6/C°
29x10-6/C°
17x10-6/C°
17x10-6/C°
19x10-6/C°
19x10-6/C°
Which of the following problems is not typically solved using Dynamic Programming?
1 Mark(s)
Your Answer:
Binary Search Tree Traversal
Binary Search Tree Traversal
Shortest Path Problems
Shortest Path Problems
Longest Increasing Subsequence
Longest Increasing Subsequence
Knapsack Problem
Knapsack Problem
Berkeley Software Distribution (BSD) is a series of:
1 Mark(s)
Your Answer:
Microsoft Windows OS
Microsoft Windows OS
Linux OS
Linux OS
UNIX OS
UNIX OS
Window Vista OS
Window Vista OS
What will be the output of the following PHP code ? <?php var $one = 1; var $two = 2; echo $one / $two * $one / $two * $two; ?>
1 Mark(s)
Your Answer:
1
1
0
0
0.5
0.5
Error
Error
Which of the following is NOT an isolation level for database transactions?
1 Mark(s)
Your Answer:
READ UNCOMMITTED
READ UNCOMMITTED
READ COMMITTED
READ COMMITTED
REPEATABLE READ
REPEATABLE READ
DATA UNCHANGED
DATA UNCHANGED
Which algorithm can be used to detect negative weight cycles in a graph?
1 Mark(s)
Your Answer:
Dijkstra's Algorithm
Dijkstra's Algorithm
Prim's Algorithm
Prim's Algorithm
Bellman-Ford Algorithm
Bellman-Ford Algorithm
Kruskal's Algorithm
Kruskal's Algorithm
Which of the following is true about array indexes?
1 Mark(s)
Your Answer:
They start from 1
They start from 1
They can be negative
They can be negative
They start from 0
They start from 0
They start from a user-defined value
They start from a user-defined value
Animals that lack the presence of backbone in their skeleton is known as:
1 Mark(s)
Your Answer:
invertebrate
invertebrate
birds
birds
marine
marine
vertebrate
vertebrate
Special program which can detect and remove viruses from computer is called:
1 Mark(s)
Your Answer:
virus
virus
anti-virus
anti-virus
groupware
groupware
custom
custom
Which one of the following statements is correct about the FIDM?
1 Mark(s)
Your Answer:
SAML have access control
SAML have access control
It typically uses the Security Markup Language (SAML) for packaging the user's security credentials.
It typically uses the Security Markup Language (SAML) for packaging the user's security credentials.
It describes the protocols and technologies.
It describes the protocols and technologies.
All of the above
All of the above
What will be the output of the following Java program if input given is 'abcqfghqbcd'? class Input_Output { public static void main(String args[]) throws IOException { char c; BufferedReader obj = new BufferedReader(new InputStreamReader(System.in)); do { c = (char) obj.read(); System.out.print(c); } while(c != 'q'); } }
1 Mark(s)
Your Answer:
abcqfgh
abcqfgh
abc
abc
abcq
abcq
abcqfghq
abcqfghq
What is the output of this code?void swap(int a, int b) { int temp = a; a = b; b = temp; }int main() { int x = 2, y = 3; swap(x, y); cout << x << " " << y; }
1 Mark(s)
Your Answer:
3 2
3 2
3 3
3 3
2 2
2 2
2 3
2 3
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.