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 10
Exam Duration:
00:33:00
C Programming Mock Test 10
: Question
1
of 37
The database state is restored to what it was before the first statement of the transaction was executed, in the:
1 Mark(s)
Your Answer:
Transmit work
Transmit work
Trace work
Trace work
Commit work
Commit work
Rollback work
Rollback work
A number of letter that appears a little above the normal text is called?
1 Mark(s)
Your Answer:
Superscript
Superscript
Subscript
Subscript
Supertext
Supertext
None of these
None of these
It was 19th century when scientists discovered that diseases are caused by:
1 Mark(s)
Your Answer:
microorganisms
microorganisms
dead animals
dead animals
contaminated water
contaminated water
plants
plants
The data structure required to check whether an expression contains a balanced parenthesis is?
1 Mark(s)
Your Answer:
Stack
Stack
Queue
Queue
Array
Array
Tree
Tree
Which of the following property defines the style for the bottom border of an element?
1 Mark(s)
Your Answer:
border-bottom-style
border-bottom-style
border-collapse
border-collapse
border-style-bottom
border-style-bottom
none of the mentioned
none of the mentioned
In Ruby, what is the purpose of the Module#prepend method?
1 Mark(s)
Your Answer:
It includes a module in the inheritance chain after the class itself
It includes a module in the inheritance chain after the class itself
It extends a module to add new functionality
It extends a module to add new functionality
It creates a copy of the module and appends it to the end of the inheritance chain
It creates a copy of the module and appends it to the end of the inheritance chain
It includes a module in the inheritance chain before the class itself
It includes a module in the inheritance chain before the class itself
In R, which package is commonly used for parallel computing, especially for tasks involving loops?
1 Mark(s)
Your Answer:
parallelR
parallelR
doParallel
doParallel
foreach
foreach
multicore
multicore
Sun operating system is an operating system that provides:
1 Mark(s)
Your Answer:
symmetric multiprocessor
symmetric multiprocessor
slave relationship
slave relationship
symmetric multiprogramming
symmetric multiprogramming
asymmetric multiprocessing
asymmetric multiprocessing
How do you display current date only in MS Excel?
1 Mark(s)
Your Answer:
Date ()
Date ()
Today ()
Today ()
Now ()
Now ()
Time ()
Time ()
You may specify an object identifier with only one unique tag name.
1 Mark(s)
Your Answer:
True
True
False
False
You can specify parameter names and parameter values in one of the ways?
1 Mark(s)
Your Answer:
As part of a command line.
As part of a command line.
In parameter file, as part of a command line
In parameter file, as part of a command line
With the declare statement, as part of Pig script
With the declare statement, as part of Pig script
All of the mentioned
All of the mentioned
The send window in the Go-Back-N Protocol is an abstract concept defining an imaginary box with:
1 Mark(s)
Your Answer:
one variable
one variable
two variables
two variables
three variables
three variables
four variables
four variables
Which syntax is used to describe elements in CSS?
1 Mark(s)
Your Answer:
Protectors
Protectors
Selectors
Selectors
Both Protectors and Selectors
Both Protectors and Selectors
None of the mentioned
None of the mentioned
Which of the following R code generate a uniform random number?
1 Mark(s)
Your Answer:
x <- runif(1, 0, 10) if(x > 3) { y <- 10 } else { y <- 0 }
x <- runif(1, 0, 10) if(x > 3) { y <- 10 } else { y <- 0 }
x <- run(1, 0, 10) if(x > 3) { y <- 10 } else { y <- 0 }
x <- run(1, 0, 10) if(x > 3) { y <- 10 } else { y <- 0 }
x <- random(1, 0, 10) if(x > 3) { y <- 10 } else { y <- 0 }
x <- random(1, 0, 10) if(x > 3) { y <- 10 } else { y <- 0 }
x <- random(1, 0, 10) if(x > 1) { y <- 0 } else { x <- 0 }
x <- random(1, 0, 10) if(x > 1) { y <- 0 } else { x <- 0 }
For a more extensive search, which keyword needs to be used?
1 Mark(s)
Your Answer:
??
??
?
?
?=
?=
=?
=?
Which model assumes that systems are created from reusable components, scripting or database programming ?
1 Mark(s)
Your Answer:
An application-composition model
An application-composition model
A post-architecture model
A post-architecture model
A reuse model
A reuse model
An early design model
An early design model
Which of this keyword can be used in a subclass to call the constructor of superclass?
1 Mark(s)
Your Answer:
super
super
this
this
extent
extent
extends
extends
Predict the output of following C++ program? CPP #include<iostream> using namespace std; class Test { private: int x; public: Test() {x = 0;} void destroy() { delete this; } void print() { cout << "x = " << x; } }; int main() { Test obj; obj.destroy(); obj.print(); return 0; }
1 Mark(s)
Your Answer:
x = 0
x = 0
compiler error
compiler error
runtime error
runtime error
What is the significance of the 'extern' storage class?
1 Mark(s)
Your Answer:
Local scope
Local scope
External linkage
External linkage
Automatic alloc.
Automatic alloc.
Static duration
Static duration
Which operator is having the right to left associativity in the following?
1 Mark(s)
Your Answer:
Array subscripting
Array subscripting
Function call
Function call
Addition and subtraction
Addition and subtraction
Type cast
Type cast
Computer that uses microprocessor as its central processing unit is known as:
1 Mark(s)
Your Answer:
personal computer
personal computer
micro computer
micro computer
mini computer
mini computer
both A and B
both A and B
What is the purpose of the pending keyword in RSpec?
1 Mark(s)
Your Answer:
Skips a test or example without running it
Skips a test or example without running it
Marks a test or example as failing
Marks a test or example as failing
Marks a test or example as passing
Marks a test or example as passing
Marks a test or example as pending, meaning it has not been implemented yet
Marks a test or example as pending, meaning it has not been implemented yet
The number of edges from the node to the deepest leaf is called . . . . . . . . of the tree.
1 Mark(s)
Your Answer:
Height
Height
Depth
Depth
Length
Length
Width
Width
In Hadoop MapReduce, what is the role of the Hadoop Counters?
1 Mark(s)
Your Answer:
Track the progress of MapReduce jobs
Track the progress of MapReduce jobs
Manage computation resources
Manage computation resources
Execute MapReduce jobs
Execute MapReduce jobs
Manage Hadoop ecosystem tools
Manage Hadoop ecosystem tools
What will be the output of the following Python code? try: if '1' != 1: raise "someError" else: print("someError has not occurred") except "someError": print ("someError has occurred")
1 Mark(s)
Your Answer:
someError has occurred
someError has occurred
someError has not occurred
someError has not occurred
invalid code
invalid code
none of the mentioned
none of the mentioned
What is the output of the given code? print "Hey" puts "Everyone!" print "We are learning Ruby"
1 Mark(s)
Your Answer:
Error
Error
Hey everyone we are learning Ruby
Hey everyone we are learning Ruby
Hey everyone
Hey everyone
Hey Everyone We are learning Ruby
Hey Everyone We are learning Ruby
In the following C++ code how many times the string "A's constructor called" will be printed? #include <iostream> #include <string> using namespace std; class A{ int a; public: A(){ cout<<"A's constructor called"; } }; class B{ static A a; public: B(){ cout<<"B's constructor called"; } static A get(){ return a; } }; A B::a; int main(int argc, char const *argv[]) { B b; A a1 = b.get(); A a2 = b.get(); A a3 = b.get(); }
1 Mark(s)
Your Answer:
3
3
4
4
2
2
1
1
Which of the following is not a type of computer's memory ROM?
1 Mark(s)
Your Answer:
PROM
PROM
EPROM
EPROM
EEPROM
EEPROM
FPROM
FPROM
To select one hyperlink after another during a slide presentation, what do you press?
1 Mark(s)
Your Answer:
Tab
Tab
Ctrl + K
Ctrl + K
Ctrl + h
Ctrl + h
All of above
All of above
Can the following C code be compiled successfully? #include <stdio.h> struct p { int k; char c; float f; }; int main() { struct p x = {.c = 97, .f = 3, .k = 1}; printf("%f\n", x.f); }
1 Mark(s)
Your Answer:
Yes
Yes
No
No
Depends on the standard
Depends on the standard
Depends on the platform
Depends on the platform
Hadoop is used for:
1 Mark(s)
Your Answer:
Web hosting
Web hosting
Big Data
Big Data
Graphics
Graphics
Email
Email
A guard against accidental damage to the database, is known to be:
1 Mark(s)
Your Answer:
Redundancy constraints
Redundancy constraints
Integrity constraints
Integrity constraints
Isolated integrity
Isolated integrity
Atomicity
Atomicity
#pragma GCC poison should be followed by a list of identifiers that are . . . . . . . .
1 Mark(s)
Your Answer:
even in number
even in number
odd in number
odd in number
valid
valid
invalid
invalid
The equivalent infix expression and value for the postfix form 1 2 + 3 * 4 5 * - will be . . . . . . . .
1 Mark(s)
Your Answer:
1 + 2 * 3 - 4 * 5 and -13
1 + 2 * 3 - 4 * 5 and -13
(2 + 1) * (3 - 4) * 5 and 13
(2 + 1) * (3 - 4) * 5 and 13
1 + 2 * (3 - 4) * 5 and -11
1 + 2 * (3 - 4) * 5 and -11
(1 + 2) * 3 - (4 * 5) and -11
(1 + 2) * 3 - (4 * 5) and -11
What does the __FILE__ constant represent in Ruby?
1 Mark(s)
Your Answer:
The name of the script being executed
The name of the script being executed
The name of the directory containing the current file
The name of the directory containing the current file
The name of the current file being executed
The name of the current file being executed
The current line number in the source file
The current line number in the source file
What will be the output? String str1 = "abcde"; System.out.println(str1.substring(1, 3));
1 Mark(s)
Your Answer:
abc
abc
bc
bc
bcd
bcd
abcd
abcd
None of these
None of these
Which of the following function is used to insert an element at the end of a vector?
1 Mark(s)
Your Answer:
push_back()
push_back()
pop_back()
pop_back()
front()
front()
end()
end()
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.