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
:
34
:
00
Q:
1
/
38
🤖
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 9
Exam Duration:
00:34:00
Java Programming Mock Test 9
: Question
1
of 38
Which method of the character stream class returns the numbers of characters successfully read starting at index?
1 Mark(s)
Your Answer:
int Read()
int Read()
int Read(char[] buffer, int index, int count)
int Read(char[] buffer, int index, int count)
int ReadBlock(char[ ] buffer, int index, int count)
int ReadBlock(char[ ] buffer, int index, int count)
none of the mentioned
none of the mentioned
Which of the following statements about C++ arrays is true?
1 Mark(s)
Your Answer:
The size of an array can be changed at runtime.
The size of an array can be changed at runtime.
Arrays automatically check for out-of-bounds access.
Arrays automatically check for out-of-bounds access.
Arrays are stored in contiguous memory locations.
Arrays are stored in contiguous memory locations.
Arrays can store elements of different data types.
Arrays can store elements of different data types.
A sales clerk at a checkout counter scanning a tag on an item rather than keying it into the system, is using __________________?
1 Mark(s)
Your Answer:
input automation
input automation
item data automation
item data automation
scanning automation
scanning automation
source data automation
source data automation
Bubble sort is an adaptive sorting algorithm.
1 Mark(s)
Your Answer:
true
true
false
false
Which of the following is a base package for R language?
1 Mark(s)
Your Answer:
util
util
lang
lang
tools
tools
spatial
spatial
What will be the output of the following C++ code? #include <iostream> #include <string> #include <cstdlib> using namespace std; void func(const int &a) { int temp = 10; a = temp; cout<<a; } int main(int argc, char const *argv[]) { int a = 5; func(a); return 0; }
1 Mark(s)
Your Answer:
5
5
10
10
Error
Error
Segmentation fault
Segmentation fault
The current date is returned by the method:
1 Mark(s)
Your Answer:
system.date
system.date
current.date
current.date
machine.date
machine.date
today.date
today.date
Which of this method of class String is used to obtain a length of String object?
1 Mark(s)
Your Answer:
get()
get()
Sizeof()
Sizeof()
lengthof()
lengthof()
length()
length()
Software used to drive microprocessor -based systems is called:
1 Mark(s)
Your Answer:
assembly language programs
assembly language programs
firmware
firmware
flowchart instructions
flowchart instructions
BASIC interpreter instructions
BASIC interpreter instructions
Which of the following provide inter-switch VLAN communication? 1. ISL 2. VTP 3. 802.1Q 4. 802.3Z
1 Mark(s)
Your Answer:
2 only
2 only
1 and 3
1 and 3
2 and 4
2 and 4
2, 3 and 4
2, 3 and 4
Which of the following framework was used by Google for Gmail?
1 Mark(s)
Your Answer:
Dojo
Dojo
GWT
GWT
Closure
Closure
YUI
YUI
Hungarian notation is:
1 Mark(s)
Your Answer:
A rule for naming variables
A rule for naming variables
A notation for namespace declaration
A notation for namespace declaration
For conversion of variables
For conversion of variables
a and b
a and b
How are required arguments specified in the function heading?
1 Mark(s)
Your Answer:
identifier followed by an equal to sign and the default value
identifier followed by an equal to sign and the default value
identifier followed by the default value within backticks (")
identifier followed by the default value within backticks (")
identifier followed by the default value within square brackets ([])
identifier followed by the default value within square brackets ([])
identifier
identifier
If a noiseless channel with a bandwidth of 3000 Hz transmitting a signal with two signal levels the maximum Bit rate would be:
1 Mark(s)
Your Answer:
12000 bps
12000 bps
6000 bps
6000 bps
1800 bps
1800 bps
zero
zero
If photosynthesis stops on Earth, which will be the first major consequence?
1 Mark(s)
Your Answer:
A) Increase in oxygen
A) Increase in oxygen
B) Decrease in carbon dioxide
B) Decrease in carbon dioxide
C) Decrease in oxygen and food supply
C) Decrease in oxygen and food supply
D) Increase in nitrogen
D) Increase in nitrogen
Abstract class cannot have a constructor.
1 Mark(s)
Your Answer:
True
True
False
False
What is the purpose of an event in GUI programming?
1 Mark(s)
Your Answer:
Creating graphical elements
Creating graphical elements
Handling user interactions
Handling user interactions
Designing user interfaces
Designing user interfaces
Displaying images
Displaying images
What is the role of the facet_wrap() function in ggplot2?
1 Mark(s)
Your Answer:
Creates a scatter plot with wrapped facets
Creates a scatter plot with wrapped facets
Divides the plot into multiple facets
Divides the plot into multiple facets
Adds a wrap-around border to the plot
Adds a wrap-around border to the plot
Creates a ribbon-like effect in the plot
Creates a ribbon-like effect in the plot
What does the slice_before method do in Ruby enumerators?
1 Mark(s)
Your Answer:
Slices a collection based on a given condition
Slices a collection based on a given condition
Removes elements from a collection before a given condition
Removes elements from a collection before a given condition
Removes elements from a collection after a given condition
Removes elements from a collection after a given condition
Splits a collection into slices before elements that satisfy a given condition
Splits a collection into slices before elements that satisfy a given condition
What will be the output of the following Python code? def to_upper(k): return k.upper() x = ['ab', 'cd'] print(list(map(upper, x)))
1 Mark(s)
Your Answer:
['AB', 'CD']
['AB', 'CD']
['ab', 'cd']
['ab', 'cd']
none of the mentioned
none of the mentioned
error
error
Which option is used to copy company's data into pendrive or CD
1 Mark(s)
Your Answer:
Backup
Backup
Restore
Restore
Split Company Data
Split Company Data
Copy Data
Copy Data
Example of non-numeric data is_________?
1 Mark(s)
Your Answer:
Employee address
Employee address
Examination score
Examination score
Bank balance
Bank balance
All of these
All of these
Tears are produced by:
1 Mark(s)
Your Answer:
tear glands
tear glands
endocrine glands
endocrine glands
sensory cell
sensory cell
receptors
receptors
Which keyword is used to access methods and variables within the same class in Ruby?
1 Mark(s)
Your Answer:
this
this
self
self
object
object
instance
instance
All classes in Java are inherited from which class?
1 Mark(s)
Your Answer:
java.lang.class
java.lang.class
java.class.inherited
java.class.inherited
java.class.object
java.class.object
java.lang.Object
java.lang.Object
Which operator is overloaded by the __or__() function?
1 Mark(s)
Your Answer:
||
||
|
|
//
//
/
/
What will be the output of the following C++ code? #include <iostream> #include <vector> using namespace std; int main () { vector<int> first; first.assign (7,100); vector<int>::iterator it; it=first.begin()+1; int myints[] = {1776,7,4}; cout << int (first.size()) << '\n'; return 0; }
1 Mark(s)
Your Answer:
10
10
9
9
8
8
7
7
Who are the people that actually use the system to perform or support the work to be completed ?
1 Mark(s)
Your Answer:
system analysts
system analysts
system designers
system designers
system owners
system owners
none of the above
none of the above
Internet Protocol Version (IPv6) has the address space of:
1 Mark(s)
Your Answer:
232
232
248
248
2128
2128
2256
2256
If two substances are mixed together physically, they form a:
1 Mark(s)
Your Answer:
solution
solution
compound
compound
mixture
mixture
molecules
molecules
What is a topological sort in a directed graph?
1 Mark(s)
Your Answer:
A minimum spanning tree of the graph.
A minimum spanning tree of the graph.
A breadth-first search traversal of the graph.
A breadth-first search traversal of the graph.
A depth-first search traversal of the graph.
A depth-first search traversal of the graph.
A linear ordering of vertices such that for every directed edge u -> v, vertex u comes before v.
A linear ordering of vertices such that for every directed edge u -> v, vertex u comes before v.
The real numbers include all the:
1 Mark(s)
Your Answer:
irrational numbers
irrational numbers
rational numbers
rational numbers
positive numbers
positive numbers
negative numbers
negative numbers
Identify the incorrect option.
1 Mark(s)
Your Answer:
1 <= sizeof(bool) <= sizeof(long)
1 <= sizeof(bool) <= sizeof(long)
sizeof(float) <= sizeof(double) <= sizeof(long double)
sizeof(float) <= sizeof(double) <= sizeof(long double)
sizeof(char) <= sizeof(long) <=sizeof(wchar_t)
sizeof(char) <= sizeof(long) <=sizeof(wchar_t)
sizeof(N) = sizeof(signed N) = sizeof(unsigned N)
sizeof(N) = sizeof(signed N) = sizeof(unsigned N)
What is the main advantage of IPv6 over IPv4?
1 Mark(s)
Your Answer:
More addresses
More addresses
Faster
Faster
Simpler
Simpler
Cheaper
Cheaper
To process the file, you need to break the array from $_FILES into individual values. You can do this using the ________ function.
1 Mark(s)
Your Answer:
divide()
divide()
list()
list()
break()
break()
indi()
indi()
What will be the output of the following C# code? static void Main(string[] args) { int i= 0,k; label: Console.WriteLine(i); if (i == 0) goto label; Console.ReadLine(); }
1 Mark(s)
Your Answer:
0 0 0 0
0 0 0 0
0 0 0
0 0 0
0 infinite times
0 infinite times
0
0
. . . . . . . . is an indication that a fatal problem has occurred and execution of the function stops.
1 Mark(s)
Your Answer:
message
message
error
error
warning
warning
message & warning
message & warning
Impala on Amazon EMR requires . . . . . . . . running Hadoop 2.x or greater.
1 Mark(s)
Your Answer:
AMS
AMS
AMI
AMI
AWR
AWR
All of the mentioned
All of the mentioned
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.