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
01
:
02
:
00
Q:
1
/
69
🤖
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 11
Exam Duration:
01:02:00
C Programming Mock Test 11
: Question
1
of 69
Who Invented the First Computer Mouse?
1 Mark(s)
Your Answer:
Douglas Engelbart
Douglas Engelbart
Ada Lovelace
Ada Lovelace
Charles Babbage
Charles Babbage
None of these
None of these
Shooting stars are called __________
1 Mark(s)
Your Answer:
A) asteroids
A) asteroids
B) galaxies
B) galaxies
C) meteors
C) meteors
D) andromeda
D) andromeda
What is returned by math.modf(1.0)?
1 Mark(s)
Your Answer:
(0.0, 1.0)
(0.0, 1.0)
(1.0, 0.0)
(1.0, 0.0)
(0.5, 1)
(0.5, 1)
(0.5, 1.0)
(0.5, 1.0)
What does the term "lazy evaluation" refer to in Ruby?
1 Mark(s)
Your Answer:
Repeatedly evaluating a computation until the desired result is obtained
Repeatedly evaluating a computation until the desired result is obtained
Storing the result of a computation for future use
Storing the result of a computation for future use
Delaying the execution of a computation until the result is needed
Delaying the execution of a computation until the result is needed
Evaluating a computation as soon as it is defined
Evaluating a computation as soon as it is defined
___________ can occur at the individual, group, organizational or extra-organizational level?
1 Mark(s)
Your Answer:
Planning
Planning
Controlling
Controlling
Organizing
Organizing
Scheduling
Scheduling
In HBase, what does the term "MemStore" refer to?
1 Mark(s)
Your Answer:
A storage format in Hadoop
A storage format in Hadoop
A query language for HBase
A query language for HBase
A distributed file system
A distributed file system
In-memory storage for recent writes
In-memory storage for recent writes
In R, what is the purpose of the names() function?
1 Mark(s)
Your Answer:
Retrieve the number of elements in an object
Retrieve the number of elements in an object
Set or retrieve names of an object
Set or retrieve names of an object
Assign names to the elements
Assign names to the elements
Remove names from an object
Remove names from an object
What is the time complexity to insert a node based on key in a priority queue?
1 Mark(s)
Your Answer:
O(nlogn)
O(nlogn)
O(logn)
O(logn)
O(n)
O(n)
O(n2)
O(n2)
Which of the following is the slowest in accessing data?
1 Mark(s)
Your Answer:
Zip disk
Zip disk
Hard disk
Hard disk
Floppy disk
Floppy disk
Magnetic disk
Magnetic disk
What will be the output of the following Python code? list(map((lambda x:x**2), filter((lambda x:x%2==0), range(10))))
1 Mark(s)
Your Answer:
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
[0, 4, 16, 36, 64]
[0, 4, 16, 36, 64]
Error
Error
No output
No output
Multiplexing techniques are of:
1 Mark(s)
Your Answer:
3 types
3 types
4 types
4 types
5 types
5 types
6 types
6 types
What does increased chain lengths give?
1 Mark(s)
Your Answer:
better properties
better properties
worse properties
worse properties
constant properties
constant properties
variable properties
variable properties
What will be the output of the following Python code? #generator def f(x): yield x+1 g=f(8) print(next(g))
1 Mark(s)
Your Answer:
8
8
9
9
7
7
Error
Error
Why to prefer splay trees?
1 Mark(s)
Your Answer:
easier to program
easier to program
space efficiency
space efficiency
easier to program and faster access to recently accessed items
easier to program and faster access to recently accessed items
quick searching
quick searching
What will be the output of the following Python code snippet? '%d %s %g you' %(1, 'hello', 4.0)
1 Mark(s)
Your Answer:
Error
Error
1 hello you 4.0
1 hello you 4.0
1 hello 4 you
1 hello 4 you
1 4 hello you
1 4 hello you
Window.localStorage HTML object stores data with:
1 Mark(s)
Your Answer:
Expiration Date
Expiration Date
No expiration date
No expiration date
One session
One session
Both B and C
Both B and C
. . . . . . . . is an easy-to-use interface to play digital media files.
1 Mark(s)
Your Answer:
Wordpad
Wordpad
Notepad
Notepad
Mediaplayer
Mediaplayer
Games
Games
Which of the following is used to terminate the structure in C++?
1 Mark(s)
Your Answer:
;
;
:
:
;;
;;
}
}
What will be the output of the following Python code? d = {0: 'a', 1: 'b', 2: 'c'} for x, y in d: print(x, y)
1 Mark(s)
Your Answer:
0 1 2
0 1 2
a b c
a b c
0 a 1 b 2 c
0 a 1 b 2 c
none of the mentioned
none of the mentioned
Ampere's law define:
1 Mark(s)
Your Answer:
gravitational force
gravitational force
tension force
tension force
rotational force
rotational force
electromagnetic force
electromagnetic force
In MS Word, Key Tips appear whenever you press the:
1 Mark(s)
Your Answer:
Ctrl key
Ctrl key
Alt key
Alt key
Shift key
Shift key
Tab key
Tab key
What will be the output of the following C# code? static void Main(string[] args) { int a = 4, b = 5, c = 7, u = 9; int h; h = (Convert.ToInt32(u < b)) + (a + b--) + 2; Console.WriteLine(h); Console.WriteLine(b); Console.WriteLine(u < b); }
1 Mark(s)
Your Answer:
12, 5, 0
12, 5, 0
11, 4, False
11, 4, False
11, 5, 0
11, 5, 0
12, 4, False
12, 4, False
Flats of sliver count autoleveller vary from:
1 Mark(s)
Your Answer:
100 to 400mm per min
100 to 400mm per min
500 to 900mm per min
500 to 900mm per min
900 to 1,200mm per min
900 to 1,200mm per min
1,200 to 1,500mm per min
1,200 to 1,500mm per min
Which Java class is used to read input from the keyboard?
1 Mark(s)
Your Answer:
InputStreamReader
InputStreamReader
BufferedReader
BufferedReader
System.in
System.in
Scanner
Scanner
Which array method adds a new element to the end of an array?
1 Mark(s)
Your Answer:
push()
push()
pop()
pop()
shift()
shift()
join()
join()
We can declare the schema of our data either in a . . . . . . . . file.
1 Mark(s)
Your Answer:
JSON
JSON
XML
XML
SQL
SQL
R
R
What are some ethical considerations for web scraping?
1 Mark(s)
Your Answer:
Scraping any data without permission
Scraping any data without permission
Ignoring robots.txt guidelines
Ignoring robots.txt guidelines
Scraping personal or sensitive data
Scraping personal or sensitive data
Scraping freely accessible public data
Scraping freely accessible public data
Which one of the following correctly refers to the command line arguments?
1 Mark(s)
Your Answer:
Arguments passed to the main() function
Arguments passed to the main() function
Arguments passed to the structure-function
Arguments passed to the structure-function
Arguments passed to the class functions
Arguments passed to the class functions
Arguments passed to any functions
Arguments passed to any functions
Which command will you choose to convert a column of data into row?
1 Mark(s)
Your Answer:
Cut and Paste
Cut and Paste
Paste Special > Transpose
Paste Special > Transpose
Both of above
Both of above
None of above
None of above
The following statements are about EOF. Which of them is true?
1 Mark(s)
Your Answer:
Its value is defined within stdio.h
Its value is defined within stdio.h
Its value is implementation dependent
Its value is implementation dependent
Its value can be negative
Its value can be negative
Its value should not equal the integer equivalent of any character
Its value should not equal the integer equivalent of any character
All of the these
All of the these
Which of the following constructor of class Thread is valid one?
1 Mark(s)
Your Answer:
Thread(Runnable threadOb, int priority)
Thread(Runnable threadOb, int priority)
Thread(int priority)
Thread(int priority)
Thread(Runnable threadOb, String threadName)
Thread(Runnable threadOb, String threadName)
Thread(String threadName, int priority)
Thread(String threadName, int priority)
None of these
None of these
A magnet exerts a force called:
1 Mark(s)
Your Answer:
electrical force
electrical force
chemical force
chemical force
magnetic force
magnetic force
magnetic field
magnetic field
Which statement about sequences is not true?
1 Mark(s)
Your Answer:
A sequence is an object that generates a sequential series of unique numbers.
A sequence is an object that generates a sequential series of unique numbers.
Sequences are most often used to provide values for surrogate keys.
Sequences are most often used to provide values for surrogate keys.
NextVal and CurrVal are both sequence methods.
NextVal and CurrVal are both sequence methods.
Sequences guarantee valid surrogate key values.
Sequences guarantee valid surrogate key values.
If the math class had add property with get accessors then which of the following statements will work correctly?
1 Mark(s)
Your Answer:
math m = new math(); m.add = 10;
math m = new math(); m.add = 10;
math m = new math(); m.add = m.add + 20;
math m = new math(); m.add = m.add + 20;
math m = new math(); int i; i = m.add;
math m = new math(); int i; i = m.add;
math.add = 20;
math.add = 20;
What will be the output of the following R code? options(digits = 16) 20/6
1 Mark(s)
Your Answer:
3.33
3.33
3.333
3.333
3.3333333
3.3333333
3.3333333333333333
3.3333333333333333
Huffman Coding is a greedy algorithm used for?
1 Mark(s)
Your Answer:
Data Compression
Data Compression
Encryption
Encryption
Shortest Path
Shortest Path
Sorting
Sorting
Which of the following is a stringizing operator?
1 Mark(s)
Your Answer:
#
#
%
%
##
##
Defining the types of values associated with each attribute, is the task done by:
1 Mark(s)
Your Answer:
View definition
View definition
SQL DML
SQL DML
SQL DML
SQL DML
SQL DDL
SQL DDL
What is the type of sys.argv?
1 Mark(s)
Your Answer:
set
set
list
list
tuple
tuple
string
string
Computer software which is available free for a limited period of time is called:
1 Mark(s)
Your Answer:
freeware
freeware
groupware
groupware
shareware
shareware
vertical
vertical
In which process, a local variable has the same name as one of the instance variables?
1 Mark(s)
Your Answer:
Serialization
Serialization
Variable Shadowing
Variable Shadowing
Abstraction
Abstraction
Multi-threading
Multi-threading
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
Suppose all web material is located within the directory /home/www. To prevent users from viewing and manipulating files such as /etc/password, which one of the following statements should you use?
1 Mark(s)
Your Answer:
open_dir = “/home/www/”
open_dir = “/home/www/”
open_dir = /home/www/
open_dir = /home/www/
open_basedir = /home/www/
open_basedir = /home/www/
open_basedir = “/home/www/”
open_basedir = “/home/www/”
A 16-bit port address represents:
1 Mark(s)
Your Answer:
one single number
one single number
four chunks of numbers
four chunks of numbers
two numbers
two numbers
three number
three number
Which short cut key used for help ?
1 Mark(s)
Your Answer:
F1
F1
F2
F2
F3
F3
F4
F4
What are the events generated by the Node objects called?
1 Mark(s)
Your Answer:
generators
generators
emitters
emitters
dispatchers
dispatchers
highevents
highevents
What will the following code result into byte destinationVar; short sourceVar = 281; destinationVar = (byte)sourceVar; Console.WriteLine("sourceVar val: {0}", sourceVar); Console.WriteLine("destinationVar val: {0}", destinationVar); :
1 Mark(s)
Your Answer:
sourceVar val: 281 destinationVar val: 25
sourceVar val: 281 destinationVar val: 25
sourceVar val: 281 destinationVar val: 281
sourceVar val: 281 destinationVar val: 281
sourceVar val: 281 destinationVar val: ?
sourceVar val: 281 destinationVar val: ?
sourceVal val:281 destinationVar val: e^25
sourceVal val:281 destinationVar val: e^25
The device linking all the nodes in a network that uses bus topology, is called:
1 Mark(s)
Your Answer:
Router
Router
Repeater
Repeater
Hub
Hub
Backbone
Backbone
(STREET ADDRESS, CITY, STATE, ZIP) is an ideal primary key.
1 Mark(s)
Your Answer:
True
True
False
False
Which of the following statements is true about the VPN in Network security?
1 Mark(s)
Your Answer:
It is a type of device that helps to ensure that communication between a device and a network is secure.
It is a type of device that helps to ensure that communication between a device and a network is secure.
It is usually based on the IPsec( IP Security) or SSL (Secure Sockets Layer)
It is usually based on the IPsec( IP Security) or SSL (Secure Sockets Layer)
It typically creates a secure, encrypted virtual "tunnel" over the open internet
It typically creates a secure, encrypted virtual "tunnel" over the open internet
All of the above
All of the above
According to Pareto’s principle, x% of defects can be traced to y% of all causes. What are the values of x and y ?
1 Mark(s)
Your Answer:
60, 40
60, 40
70, 30
70, 30
80, 20
80, 20
No such principle exists
No such principle exists
If no force acts on a body, the body's velocity cannot change, that is the body cannot accelerate, is the Newton's:
1 Mark(s)
Your Answer:
1st Law
1st Law
2nd Law
2nd Law
3rd Law
3rd Law
4th Law
4th Law
MidJourney.com is used for what purpose?
1 Mark(s)
Your Answer:
Code generation
Code generation
Video editing
Video editing
Art generation
Art generation
Text summarization
Text summarization
In congestion control, DVL stands for:
1 Mark(s)
Your Answer:
Delay versus Lose
Delay versus Lose
Delay Variable Line
Delay Variable Line
Delay versus Load
Delay versus Load
Delay Variable Load
Delay Variable Load
Ratio of Electric field and current density is called:
1 Mark(s)
Your Answer:
resistivity
resistivity
resistance
resistance
capacitance
capacitance
conductivity
conductivity
Which Java keyword is used to define a subclass that inherits from another class?
1 Mark(s)
Your Answer:
implements
implements
inherits
inherits
extends
extends
subclass
subclass
Ambari leverages . . . . . . . . for system alerting and will send emails when your attention is needed.
1 Mark(s)
Your Answer:
Nagios
Nagios
Nagaond
Nagaond
Ganglia
Ganglia
All of the mentioned
All of the mentioned
Which of the following gives the 4th element of the array?
1 Mark(s)
Your Answer:
Array[0];
Array[0];
Array[0];
Array[0];
Array[3];
Array[3];
None of the above
None of the above
Choose the correct properties of weak-heap.
1 Mark(s)
Your Answer:
Every node has value greater than the value of child node
Every node has value greater than the value of child node
Every right child of node has greater value than parent node
Every right child of node has greater value than parent node
Every left child of node has greater value than parent node
Every left child of node has greater value than parent node
Every left and right child of node has same value as parent node
Every left and right child of node has same value as parent node
Which command is used to rename a column in MySQL?
1 Mark(s)
Your Answer:
UPDATE COLUMN
UPDATE COLUMN
ALTER TABLE
ALTER TABLE
MODIFY NAME
MODIFY NAME
REPLACE
REPLACE
Energy associated with a set of electric charges arranged in a certain configuration is called:
1 Mark(s)
Your Answer:
Electric Potential Energy
Electric Potential Energy
Magnetic Potential Energy
Magnetic Potential Energy
Poynting Potential Energy
Poynting Potential Energy
Dipole Potential Energy
Dipole Potential Energy
Which things in UML are the explanatory parts of UML models ?
1 Mark(s)
Your Answer:
Structural things
Structural things
Behavioral things
Behavioral things
Grouping things
Grouping things
Annotational things
Annotational things
Naturally formed fibrils have a thickness of about:
1 Mark(s)
Your Answer:
4 nm
4 nm
5 nm
5 nm
8 nm
8 nm
10 nm
10 nm
What will be the output of the following Python code snippet? bool(‘False’) bool()
1 Mark(s)
Your Answer:
True True
True True
False True
False True
False False
False False
True False
True False
What will the following script output? <?php $array = array (1, 2, 3, 5, 8, 13, 21, 34, 55); $sum = 0; for ($i = 0; $i
1 Mark(s)
Your Answer:
78
78
19
19
NULL
NULL
5
5
Number of byte to be read into the buffer of the system is:
1 Mark(s)
Your Answer:
DWORD bytesTowrite
DWORD bytesTowrite
DWORD bytesToread
DWORD bytesToread
WORD bytesTowrite
WORD bytesTowrite
WORD bytesToread
WORD bytesToread
What is the main function of the Drafts folder in Gmail?
1 Mark(s)
Your Answer:
To store emails that have been sent successfully.
To store emails that have been sent successfully.
To store incoming emails from other people.
To store incoming emails from other people.
To store emails that are written but not yet sent.
To store emails that are written but not yet sent.
To store deleted emails temporarily.
To store deleted emails temporarily.
Which function is used to free allocated memory but does not remove the pointer in C?
1 Mark(s)
Your Answer:
clear()
clear()
free()
free()
release()
release()
deallocate()
deallocate()
__________maintain (s) database of webpages containing information on variety of topics.
1 Mark(s)
Your Answer:
Newsgroup
Newsgroup
News server
News server
Search Engines
Search Engines
World wide web
World wide web
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.