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
:
51
:
00
Q:
1
/
57
🤖
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 6
Exam Duration:
00:51:00
C Programming Mock Test 6
: Question
1
of 57
Value of one relation for a given set of attributes, appearing for a certain set of attributes in another relation, is known as:
1 Mark(s)
Your Answer:
Integrity constraint
Integrity constraint
Referential integrity
Referential integrity
Referenced integrity
Referenced integrity
Dubbed integrity
Dubbed integrity
Human accepted comfort zone Fahrenheit temperature is:
1 Mark(s)
Your Answer:
212°F
212°F
98.6°F
98.6°F
32°F
32°F
68°F
68°F
Pressing F8 key for three time selects____________?
1 Mark(s)
Your Answer:
A sentence
A sentence
A paragraph
A paragraph
A word
A word
Entire document
Entire document
What will be the output? class MyClass{ public String test(){ try{ System.out.print("One"); return ""; } finally{ System.out.print("Two"); } } } public class Test{ public static void main(String args[]){ MyClass m = new MyClass(); m.test(); } }
1 Mark(s)
Your Answer:
One
One
Two
Two
One Two
One Two
Compilation Error
Compilation Error
None of these
None of these
A query using a join with an on condition can be replaced by an equivalent expression without an ON condition, with predicate to:
1 Mark(s)
Your Answer:
Select clause
Select clause
Where clause
Where clause
From clause
From clause
Define clause
Define clause
Sun also has the Hadoop Live CD . . . . . . . . project, which allows running a fully functional Hadoop cluster using a live CD.
1 Mark(s)
Your Answer:
OpenOffice.org
OpenOffice.org
OpenSolaris
OpenSolaris
GNU
GNU
Linux
Linux
What will be the output of the following code: with open('data.txt', 'r') as file: lines = file.readlines() print(len(lines))
1 Mark(s)
Your Answer:
The number of lines in data.txt
The number of lines in data.txt
An error will occur
An error will occur
The content of data.txt
The content of data.txt
The file object file
The file object file
Which of the following keywords is used to rescue specific types of exceptions in Ruby?
1 Mark(s)
Your Answer:
ensure
ensure
raise
raise
rescue
rescue
catch
catch
What is the purpose of Slide Master in Microsoft PowerPoint?
1 Mark(s)
Your Answer:
To apply formatting to all slides in a presentation.
To apply formatting to all slides in a presentation.
To create custom slide layouts.
To create custom slide layouts.
To change the slide size and orientation.
To change the slide size and orientation.
None of these
None of these
Eccentricity is the:
1 Mark(s)
Your Answer:
deviation of curve
deviation of curve
integration of curve
integration of curve
linearity of curve
linearity of curve
angle of cube
angle of cube
What is the purpose of declaring constants in C#?
1 Mark(s)
Your Answer:
To store and manipulate data
To store and manipulate data
To declare variables
To declare variables
To handle exceptions
To handle exceptions
To define values that do not change
To define values that do not change
In Java Networking, which class is used for creating a UDP socket?
1 Mark(s)
Your Answer:
`MulticastSocket`
`MulticastSocket`
`ServerSocket`
`ServerSocket`
`DatagramSocket`
`DatagramSocket`
`Socket`
`Socket`
Inheritance is which of the following?
1 Mark(s)
Your Answer:
When a supertype entity inherits values of the subtype attribute
When a supertype entity inherits values of the subtype attribute
When a subtype entity inherits values of the supertype attribute
When a subtype entity inherits values of the supertype attribute
When a supertype entity inherits values of another supertype attribute
When a supertype entity inherits values of another supertype attribute
When a subtype entity inherits values of another subtype attribute
When a subtype entity inherits values of another subtype attribute
An object's mass 'm' and its energy 'E' are related by:
1 Mark(s)
Your Answer:
Em=c2
Em=c2
E=mc2
E=mc2
E=m/c2
E=m/c2
E=m/c3
E=m/c3
What is the syntax for defining a recursive function in C++?
1 Mark(s)
Your Answer:
returnType functionName(parameters) { if (condition) functionName(parameters); }
returnType functionName(parameters) { if (condition) functionName(parameters); }
functionName(parameters) { returnType if (condition) functionName(parameters); }
functionName(parameters) { returnType if (condition) functionName(parameters); }
functionName(parameters) { functionName(parameters); }
functionName(parameters) { functionName(parameters); }
returnType functionName(parameters) { functionName(parameters); }
returnType functionName(parameters) { functionName(parameters); }
What type of operating system MS-DOS is?
1 Mark(s)
Your Answer:
Command Line Interface
Command Line Interface
Graphical User Interface
Graphical User Interface
Multitasking
Multitasking
Menu Driven Interface
Menu Driven Interface
_________________ view shows the system hardware and how software components are distributed across the processors in the system ?
1 Mark(s)
Your Answer:
physical
physical
logical
logical
process
process
all of the mentioned
all of the mentioned
EPROM is an example of:?
1 Mark(s)
Your Answer:
Algorithmic logic device
Algorithmic logic device
Programmable logic device
Programmable logic device
Digital logic device
Digital logic device
None of the Above Answer
None of the Above Answer
Which sphere includes glaciers and ice?
1 Mark(s)
Your Answer:
A) Hydrosphere
A) Hydrosphere
B) Cryosphere
B) Cryosphere
C) Biosphere
C) Biosphere
D) Atmosphere
D) Atmosphere
What IP address class allocates 8 bits for the host identification part?
1 Mark(s)
Your Answer:
Class A
Class A
Class B
Class B
Class C
Class C
Class D
Class D
The greatest threat to business security is often internal rather than external.
1 Mark(s)
Your Answer:
True
True
False
False
Just like the SQL update privilege, the privilege that is granted on specific attributes, is:
1 Mark(s)
Your Answer:
Insert privilege
Insert privilege
References privilege
References privilege
Execute privilege
Execute privilege
Select privilege
Select privilege
What happens when a reference is declared but not initialized in C++?
1 Mark(s)
Your Answer:
Undefined behavior
Undefined behavior
Default-initialized to null
Default-initialized to null
Initialized to a default value
Initialized to a default value
Compilation error
Compilation error
Which of the following selector selects the element that is the first child of its parent that is of its type?
1 Mark(s)
Your Answer:
:first-of-type
:first-of-type
:last-child
:last-child
::first-line
::first-line
::first-letter
::first-letter
If a host does not support the flow label, it sets the flow label field to:
1 Mark(s)
Your Answer:
one
one
two
two
three
three
zero
zero
The result of Boolean expression 'False and unknown' is:
1 Mark(s)
Your Answer:
True
True
False
False
Unknown
Unknown
Null
Null
Which attribute is used for favicon?
1 Mark(s)
Your Answer:
icon
icon
title
title
rel
rel
head
head
Telephone companies implement a multiplexing using:
1 Mark(s)
Your Answer:
TDM
TDM
FDM
FDM
WDM
WDM
DWDM
DWDM
Command set which is correct according to its function is:
1 Mark(s)
Your Answer:
RD and MD
RD and MD
DEL and ERASE
DEL and ERASE
CD and RD
CD and RD
COPY and RENAME
COPY and RENAME
What is the correct way to access the third element in an array named numbers in C#?
1 Mark(s)
Your Answer:
numbers[3]
numbers[3]
numbers(3)
numbers(3)
numbers(2)
numbers(2)
numbers[2]
numbers[2]
The output of which of the codes shown below will be: "There are 4 blue birds."?
1 Mark(s)
Your Answer:
'There are %g %d birds.' %4 %blue
'There are %g %d birds.' %4 %blue
'There are %d %s birds.' %(4, blue)
'There are %d %s birds.' %(4, blue)
'There are %s %d birds.' %[4, blue]
'There are %s %d birds.' %[4, blue]
'There are %d %s birds.' 4, blue
'There are %d %s birds.' 4, blue
. . . . . . . . is discovering unseen patterns from data.
1 Mark(s)
Your Answer:
Data Milling
Data Milling
Data Mining
Data Mining
Niching
Niching
Machine learning
Machine learning
What does the Shuffle phase in MapReduce involve?
1 Mark(s)
Your Answer:
Data compression
Data compression
Data distribution to reducers
Data distribution to reducers
Data sorting and grouping
Data sorting and grouping
Data storage in HBase
Data storage in HBase
What will be the time complexity of delete operation if all the candidates are evenly spaced so that each bin has constant no. of candidates? (m = number of bins intersecting candidate intersects)
1 Mark(s)
Your Answer:
O(1)
O(1)
O(m)
O(m)
O(m2)
O(m2)
O(log m)
O(log m)
Mean radius of Sun is:
1 Mark(s)
Your Answer:
6.96x108 m
6.96x108 m
6.37x106 m
6.37x106 m
1.74x106 m
1.74x106 m
6.96x1018 m
6.96x1018 m
If you call a method and it doesn’t exist it’ll cause a problem. To check the method which function will you use?
1 Mark(s)
Your Answer:
_method()
_method()
methodexists()
methodexists()
is_callable()
is_callable()
is_method()
is_method()
In C#, which keyword is used to declare an event in an interface?
1 Mark(s)
Your Answer:
interface
interface
delegate
delegate
class
class
event
event
Which of the following functions can help us to find the version of python that we are currently working on?
1 Mark(s)
Your Answer:
sys.version(1)
sys.version(1)
sys.version(0)
sys.version(0)
sys.version()
sys.version()
sys.version
sys.version
What is the return type of Constructors?
1 Mark(s)
Your Answer:
int
int
float
float
void
void
none of the mentioned
none of the mentioned
What is the maximum number of statements recommended in an inline function?
1 Mark(s)
Your Answer:
1
1
2–5
2–5
10
10
No strict limit
No strict limit
Gold, silver, copper and carbon are examples of:
1 Mark(s)
Your Answer:
element
element
electron
electron
neutron
neutron
carbon
carbon
What is the role of the HBase Region Locator in HBase architecture?
1 Mark(s)
Your Answer:
Manage computation resources
Manage computation resources
Determine the location of regions in HBase
Determine the location of regions in HBase
Perform data analytics in Hadoop
Perform data analytics in Hadoop
None of the above
None of the above
There are how many ways to add CSS sheets in HTML elements?
1 Mark(s)
Your Answer:
3 ways
3 ways
2 ways
2 ways
1 way
1 way
a lot of ways
a lot of ways
An enum declared inside a class,struct,namespace or interface is treated as:
1 Mark(s)
Your Answer:
public
public
private
private
protected
protected
both b and c
both b and c
Iron, nickel and cobalt are:
1 Mark(s)
Your Answer:
Diamagnetic materials
Diamagnetic materials
Ferromagnetic materials
Ferromagnetic materials
Paramagnetic materials
Paramagnetic materials
Triamagnetic materials
Triamagnetic materials
Which of the following is necessary for photosynthesis?
1 Mark(s)
Your Answer:
Sulphur
Sulphur
Phosphorus
Phosphorus
Chlorophyll
Chlorophyll
Chloroform
Chloroform
A person pushes a box with a force F at an angle θ to the horizontal, but the box moves horizontally. The work done is given by
1 Mark(s)
Your Answer:
A) F sin θ × s
A) F sin θ × s
B) F cos θ × s
B) F cos θ × s
C) F × S
C) F × S
D) F tan θ × s
D) F tan θ × s
In 1940, first electronic computer was invented by_______?
1 Mark(s)
Your Answer:
Clifford Bery
Clifford Bery
George Boole
George Boole
Atanasoff and Berry
Atanasoff and Berry
John V.Atanasoff
John V.Atanasoff
X-ray diffraction is the most important method used for the study of:
1 Mark(s)
Your Answer:
fine matter
fine matter
rough matter
rough matter
fibre structure
fibre structure
fibre length
fibre length
What will be the output of the following Java program? class selection_statements { public static void main(String args[]) { int var1 = 5; int var2 = 6; if ((var2 = 1) == var1) System.out.print(var2); else System.out.print(++var2); } }
1 Mark(s)
Your Answer:
1
1
2
2
3
3
4
4
Given below classes which of the following are the possible row entries in vtable of D1 class? class Base { public: virtual void function1() {}; virtual void function2() {}; }; class D1: public Base { public: virtual void function1() {}; }; class D2: public Base { public: virtual void function2() {}; };
1 Mark(s)
Your Answer:
Base::function1() and Base::function2()
Base::function1() and Base::function2()
D1::function1() and Base::function2()
D1::function1() and Base::function2()
Base::function1() and D1::function2()
Base::function1() and D1::function2()
D1::function1() and D1::function2()
D1::function1() and D1::function2()
Which of these class is used to access actual bits or content information of a URL?
1 Mark(s)
Your Answer:
URL
URL
URLDecoder
URLDecoder
URLConnection
URLConnection
All of the mentioned
All of the mentioned
What will be the output of the following Python code? x = ['ab', 'cd'] for i in x: x.append(i.upper()) print(x)
1 Mark(s)
Your Answer:
['AB', 'CD']
['AB', 'CD']
['ab', 'cd', 'AB', 'CD']
['ab', 'cd', 'AB', 'CD']
['ab', 'cd']
['ab', 'cd']
none of the mentioned
none of the mentioned
The unsigned representation of numbers by one's complement can represent:
1 Mark(s)
Your Answer:
positive number
positive number
negative number
negative number
both a and b
both a and b
infinite numbers
infinite numbers
JSP and ASP not only look alike but their underlying technology is quite similar.
1 Mark(s)
Your Answer:
True
True
False
False
Which submenu is used to create new ledgers, groups and voucher types in Tally
1 Mark(s)
Your Answer:
Account Info
Account Info
Inventory Info
Inventory Info
Accounting Vouchers
Accounting Vouchers
Inventory Vouchers
Inventory Vouchers
Which C++ header provides functionality for managing sets and their operations?
1 Mark(s)
Your Answer:
<list>
<list>
<vector>
<vector>
<set>
<set>
<unordered_map>
<unordered_map>
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.