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
:
33
:
00
Q:
1
/
37
🤖
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.
C++ Programming Mock Test 2
Exam Duration:
00:33:00
C++ Programming Mock Test 2
: Question
1
of 37
Sergen Brin and Larry Page are the founder of ____?
1 Mark(s)
Your Answer:
Twitter
Twitter
Facebook
Facebook
YouTube
YouTube
Google
Google
Instagram
Instagram
A class consists of two interfaces with each interface consisting of three methods. The class had no instance data. Which of the following indicates the correct size of object created from this class?
1 Mark(s)
Your Answer:
12 bytes
12 bytes
16 bytes
16 bytes
0 bytes
0 bytes
24 bytes
24 bytes
Mount Everest has gravitational acceleration of:
1 Mark(s)
Your Answer:
9.80 m/s2
9.80 m/s2
9.71 m/s2
9.71 m/s2
8.70 m/s2
8.70 m/s2
0.225 m/s2
0.225 m/s2
Command which is used to copy files is:
1 Mark(s)
Your Answer:
copy
copy
diskcopy
diskcopy
type
type
cut
cut
Output?int a=5; int b=3; cout << a|b;
1 Mark(s)
Your Answer:
6
6
7
7
1
1
0
0
What will be the output of the following PHP code? <?php $num = "123"; if (!filter_var($num, FILTER_VALIDATE_INT)) echo("Integer is not valid"); else echo("Integer is valid"); ?>
1 Mark(s)
Your Answer:
No output is returned
No output is returned
Integer is not valid
Integer is not valid
Integer is valid
Integer is valid
Error
Error
Roles can be granted to users, as well as to other:
1 Mark(s)
Your Answer:
Administrators
Administrators
Roles
Roles
Developers
Developers
Creators
Creators
In MapReduce, what does the term "Map" refer to?
1 Mark(s)
Your Answer:
Task that processes the Map output
Task that processes the Map output
Task that processes the Reduce output
Task that processes the Reduce output
Task that processes the Map input
Task that processes the Map input
Task that processes the Reduce input
Task that processes the Reduce input
7.15x107 m is the radius of:
1 Mark(s)
Your Answer:
Earth
Earth
Jupiter
Jupiter
Earth's moon
Earth's moon
Neutron star
Neutron star
Inverse Laplace transform of f(s)=4/(s2-2s-3) is:
1 Mark(s)
Your Answer:
e3t-et
e3t-et
e-3t-et
e-3t-et
e-3t-e-t
e-3t-e-t
e3t-e-t
e3t-e-t
When real battery of EMF E and internal resistance r does work on the charge carrier in a current i through the battery, rate P of energy transfer to the charge carrier, if V is potential, is:
1 Mark(s)
Your Answer:
P=iV
P=iV
P=V/i
P=V/i
P=i/V
P=i/V
P=i+V
P=i+V
At which level Theme can be applied:
1 Mark(s)
Your Answer:
Page level
Page level
Site level (through the Web.config file)
Site level (through the Web.config file)
Individual control level
Individual control level
All of the above
All of the above
What will be the output of the following C++ code? #include <stdio.h> #include <math.h> int main () { printf ("The value of -3.1416 is %lf\n", fabs (-3.1416)); return 0; }
1 Mark(s)
Your Answer:
3.1416
3.1416
-3.1416
-3.1416
-3.141600
-3.141600
3.141600
3.141600
What does DMA stand for?
1 Mark(s)
Your Answer:
Distinct Memory Access
Distinct Memory Access
Direct Memory Access
Direct Memory Access
Direct Module Access
Direct Module Access
Direct Memory Allocation
Direct Memory Allocation
What will be the output of the following C code? #include <stdio.h> void main() { int k; for (k = -3; k
1 Mark(s)
Your Answer:
Hello
Hello
Infinite hello
Infinite hello
Run time error
Run time error
Nothing
Nothing
What is the purpose of Hadoop ResourceManager in YARN?
1 Mark(s)
Your Answer:
Manage storage layer
Manage storage layer
Manage computation resources
Manage computation resources
Execute MapReduce jobs
Execute MapReduce jobs
Manage Hadoop ecosystem tools
Manage Hadoop ecosystem tools
The adaptive system management refers to:
1 Mark(s)
Your Answer:
Science of making machine performs the task that would require intelligence when performed by humans.
Science of making machine performs the task that would require intelligence when performed by humans.
A computational procedure that takes some values as input and produces some values as the output.
A computational procedure that takes some values as input and produces some values as the output.
It uses machine learning techniques, in which programs learn from their past experience and adapt themself to new conditions or situations.
It uses machine learning techniques, in which programs learn from their past experience and adapt themself to new conditions or situations.
All of the above.
All of the above.
Which of the following script is used to check scripts that have failed jobs?
1 Mark(s)
Your Answer:
a = load '/mapred/history/done' using HadoopJobHistoryLoader() as (j:map[], m:map[], r:map[]); b = foreach a generate (Chararray) j#'STATUS' as status, j#'PIG_SCRIPT_ID' as id, j#'USER' as user, j#'JOBNAME' as script_name, j#'JOBID' as job; c = filter b by status != 'SUCCESS'; dump c;
a = load '/mapred/history/done' using HadoopJobHistoryLoader() as (j:map[], m:map[], r:map[]); b = foreach a generate (Chararray) j#'STATUS' as status, j#'PIG_SCRIPT_ID' as id, j#'USER' as user, j#'JOBNAME' as script_name, j#'JOBID' as job; c = filter b by status != 'SUCCESS'; dump c;
a = load '/mapred/history/done' using HadoopJobHistoryLoader() as (j:map[], m:map[], r:map[]); b = foreach a generate j#'PIG_SCRIPT_ID' as id, j#'USER' as user, j#'JOBNAME' as script_name, (Long) r#'NUMBER_REDUCES' as reduces; c = group b by (id, user, script_name) parallel 10; d = foreach c generate group.user, group.script_name, MAX(b.reduces) as max_reduces; e = filter d by max_reduces == 1; dump e;
a = load '/mapred/history/done' using HadoopJobHistoryLoader() as (j:map[], m:map[], r:map[]); b = foreach a generate j#'PIG_SCRIPT_ID' as id, j#'USER' as user, j#'JOBNAME' as script_name, (Long) r#'NUMBER_REDUCES' as reduces; c = group b by (id, user, script_name) parallel 10; d = foreach c generate group.user, group.script_name, MAX(b.reduces) as max_reduces; e = filter d by max_reduces == 1; dump e;
a = load '/mapred/history/done' using HadoopJobHistoryLoader() as (j:map[], m:map[], r:map[]); b = foreach a generate j#'PIG_SCRIPT_ID' as id, j#'USER' as user, j#'QUEUE_NAME' as queue; c = group b by (id, user, queue) parallel 10; d = foreach c generate group.user, group.queue, COUNT(b); dump d;
a = load '/mapred/history/done' using HadoopJobHistoryLoader() as (j:map[], m:map[], r:map[]); b = foreach a generate j#'PIG_SCRIPT_ID' as id, j#'USER' as user, j#'QUEUE_NAME' as queue; c = group b by (id, user, queue) parallel 10; d = foreach c generate group.user, group.queue, COUNT(b); dump d;
None of the mentioned
None of the mentioned
One common design problem when designing a database from existing data is the presence of missing values, called blank values, in received data.
1 Mark(s)
Your Answer:
True
True
False
False
Which command will copy the IOS to a backup host on your network?
1 Mark(s)
Your Answer:
transfer IOS to 172.16.10.1
transfer IOS to 172.16.10.1
copy run start
copy run start
copy start tftp
copy start tftp
copy flash tftp
copy flash tftp
What is the output of the following code: char str[] = "Hello"; cout << strlen(str); in C++?
1 Mark(s)
Your Answer:
Hello
Hello
5
5
Compilation error
Compilation error
Runtime error
Runtime error
Which of the following is true? 1. A class can extend more than one class. 2. A class can extend only one class but many interfaces. 3. An interface can extend many interfaces. 4. An interface can implement many interfaces. 5. A class can extend one class and implement many interfaces.
1 Mark(s)
Your Answer:
1 and 2
1 and 2
2 and 4
2 and 4
3 and 5
3 and 5
3 and 4
3 and 4
2 and 5
2 and 5
The recommended basic size for a favicon is ___________ pixels
1 Mark(s)
Your Answer:
16×16
16×16
26×26
26×26
48×48
48×48
both a and c
both a and c
What will be the output of the following Java code? class output { public static void main(String args[]) { String s1 = "Hello i love java"; String s2 = new String(s1); System.out.println((s1 == s2) + " " + s1.equals(s2)); } }
1 Mark(s)
Your Answer:
true true
true true
false false
false false
true false
true false
false true
false true
The defines a:
1 Mark(s)
Your Answer:
link to reset all the form values
link to reset all the form values
Reset button
Reset button
Reset field
Reset field
Reset radio button
Reset radio button
To add a new element to a list we use which command?
1 Mark(s)
Your Answer:
list1.add(5)
list1.add(5)
list1.append(5)
list1.append(5)
list1.addLast(5)
list1.addLast(5)
list1.addEnd(5)
list1.addEnd(5)
Collision in which kinetic energy is not conserved is termed as:
1 Mark(s)
Your Answer:
singular collision
singular collision
inelastic collision
inelastic collision
head on collision
head on collision
elastic collision
elastic collision
When drawing off cylinders rotate in a positive direction, it takes the fibers forward by around:
1 Mark(s)
Your Answer:
1-2 cm
1-2 cm
3-4 cm
3-4 cm
6-7 cm
6-7 cm
8-9 cm
8-9 cm
How do you filter rows where a specific variable is not equal to a given value using filter() in dplyr?
1 Mark(s)
Your Answer:
filter(variable != value)
filter(variable != value)
filter(not_equal(variable, value))
filter(not_equal(variable, value))
filter(variable <> value)
filter(variable <> value)
filter(variable not in value)
filter(variable not in value)
Which Ruby tool is commonly used for automated testing to ensure code quality and reliability?
1 Mark(s)
Your Answer:
RSpec
RSpec
Cucumber
Cucumber
MiniTest
MiniTest
RuboCop
RuboCop
Which operator is used to check whether the expression is "NULL"?
1 Mark(s)
Your Answer:
IS NULL
IS NULL
NOT NULL
NOT NULL
ON
ON
None of the mentioned
None of the mentioned
NRZ-L and NRZ-J both have a problem of:
1 Mark(s)
Your Answer:
conversion
conversion
phase shift
phase shift
doesn't changes at all
doesn't changes at all
DC component
DC component
Which operator is used to access the member functions and variables of an object in C++?
1 Mark(s)
Your Answer:
:
:
::
::
->
->
.
.
Determine Output: void main() { int i = -1; +i; printf("i = %d, +i = %d", i, +i); }
1 Mark(s)
Your Answer:
i = -1, +i = 1
i = -1, +i = 1
i = 1, +i = 1
i = 1, +i = 1
i = -1, +i = -1
i = -1, +i = -1
None of These
None of These
If you select Insert > Picture > From File
1 Mark(s)
Your Answer:
You can insert pictures and clipart
You can insert pictures and clipart
You can insert clipart only
You can insert clipart only
You can insert pictures only
You can insert pictures only
None of above
None of above
When comparing two values of type char, if they are of different lengths, then for comparison:
1 Mark(s)
Your Answer:
Extra bits are added
Extra bits are added
Extra characters are added
Extra characters are added
Extra spaces are added
Extra spaces are added
Special characters are added
Special characters are added
What does public int end(int group) return?
1 Mark(s)
Your Answer:
offset from last character of the subsequent group
offset from last character of the subsequent group
offset from first character of the subsequent group
offset from first character of the subsequent group
offset from last character matched
offset from last character matched
offset from first character matched
offset from first character matched
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.