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
:
41
:
00
Q:
1
/
46
🤖
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 3
Exam Duration:
00:41:00
Java Programming Mock Test 3
: Question
1
of 46
What will be the output of the following C code? #include <stdio.h> int main() { int i = 10; void *p = &i; printf("%d\n", (int)*p); return 0; }
1 Mark(s)
Your Answer:
Compile time error
Compile time error
Segmentation fault/runtime crash
Segmentation fault/runtime crash
10
10
Undefined behaviour
Undefined behaviour
The method of communication in which transmission takes place in both directions, but only one direction at a time is called
1 Mark(s)
Your Answer:
Simplex
Simplex
Four wire circuit
Four wire circuit
Full Duplex
Full Duplex
Half Duplex
Half Duplex
Polymorphism is also possible in C language. Is it correct?
1 Mark(s)
Your Answer:
Yes
Yes
No
No
both A & B
both A & B
none of these
none of these
What is the syntax for a single-line comment in C++?
1 Mark(s)
Your Answer:
--
--
#
#
//
//
/* */
/* */
Which of the following is an application of linked lists?
1 Mark(s)
Your Answer:
Implementing stacks
Implementing stacks
Implementing queues
Implementing queues
Both A and B
Both A and B
None of the above
None of the above
What will be the output of the following Python code? class A: def test(self): print("test of A called") class B(A): def test(self): print("test of B called") super().test() class C(A): def test(self): print("test of C called") super().test() class D(B,C): def test2(self): print("test of D called") obj=D() obj.test()
1 Mark(s)
Your Answer:
test of B called test of C called test of A called
test of B called test of C called test of A called
test of C called test of B called
test of C called test of B called
test of B called test of C called
test of B called test of C called
Error, all the three classes from which D derives has same method test()
Error, all the three classes from which D derives has same method test()
Which of the following is not essential component to perform a mail merge operation?
1 Mark(s)
Your Answer:
Main document
Main document
Data source
Data source
Merge fields
Merge fields
Word fields
Word fields
What will be the output of the following R code? > x <- 1:3 > y <- 10:12 > rbind(x, y)
1 Mark(s)
Your Answer:
[,1] [,2] [,3] x 1 2 3 y 10 11 12
[,1] [,2] [,3] x 1 2 3 y 10 11 12
[,1] [,2] [,3] x 1 2 3 y 10 11
[,1] [,2] [,3] x 1 2 3 y 10 11
[,1] [,2] [,3] x 1 2 3 y 4 5 6
[,1] [,2] [,3] x 1 2 3 y 4 5 6
[,4] [,5] [,3] x 1 3 5 y 4 5 2
[,4] [,5] [,3] x 1 3 5 y 4 5 2
In a computer, ALU can performs both arithmetic and:
1 Mark(s)
Your Answer:
logic operation
logic operation
logging operation
logging operation
loading operation
loading operation
learning operation
learning operation
You can check the conditions against __________ when applying conditional formatting
1 Mark(s)
Your Answer:
Cell value
Cell value
Formula
Formula
Both of above
Both of above
None of above
None of above
What traversal over trie gives the lexicographical sorting of the set of the strings?
1 Mark(s)
Your Answer:
postorder
postorder
preorders
preorders
inorder
inorder
level order
level order
What is the significance of the Hadoop OutputFormat?
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
What will be the output of the following PHP code ? <?php $x = 1; $y = 2; if (++$x == $y++) { echo "true ", $y, $x; } ?>
1 Mark(s)
Your Answer:
no output
no output
true 23
true 23
true 22
true 22
true 33
true 33
Which of the following items are not necessary for client/server?
1 Mark(s)
Your Answer:
Assure that tools will connect with middleware.
Assure that tools will connect with middleware.
Understand the requirements.
Understand the requirements.
Determine network bandwidth capabilities.
Determine network bandwidth capabilities.
Include the use of a file server.
Include the use of a file server.
The process to process delivery of the entire message is the responsibility of the layer:
1 Mark(s)
Your Answer:
Session layer
Session layer
Transport layer
Transport layer
Presentation layer
Presentation layer
Physical layer
Physical layer
In MS Excel, a formula that looks for a value in the leftmost column of a table and then returns a value in the same row for a specific column is called:
1 Mark(s)
Your Answer:
Horizontal Lookup
Horizontal Lookup
Vertical Lookup
Vertical Lookup
Average
Average
None of these
None of these
Which of the following is not the way to maintain state ?
1 Mark(s)
Your Answer:
Request object
Request object
Hidden fields
Hidden fields
View state
View state
Cookies
Cookies
Boolean comparison operators are also called:
1 Mark(s)
Your Answer:
Arithmetic Operators
Arithmetic Operators
Relational Operators
Relational Operators
Bitwise Operators
Bitwise Operators
Logical operators
Logical operators
Which of the following statements about exception handling in C++ is correct?
1 Mark(s)
Your Answer:
It is an alternative to error codes
It is an alternative to error codes
It is faster and more efficient than error codes
It is faster and more efficient than error codes
It is used only for compile-time errors
It is used only for compile-time errors
It cannot handle runtime errors
It cannot handle runtime errors
What would be the output for the following Turbo C code? #include<stdio.h> void main() { int a[]={ 1, 2, 3, 4, 5 }, *p; p=a; ++*p; printf("%d ", *p); p += 2; printf("%d", *p); }
1 Mark(s)
Your Answer:
2 4
2 4
3 4
3 4
2 2
2 2
2 3
2 3
3 3
3 3
Which of the following is a risk associated with using hypertext in web applications?
1 Mark(s)
Your Answer:
Loss of sense of locality and direction
Loss of sense of locality and direction
Cognitive overload for users
Cognitive overload for users
All of the mentioned
All of the mentioned
None of the mentioned
None of the mentioned
Which technology is used to make web pages interactive and dynamic by updating parts of the page without a full page reload?
1 Mark(s)
Your Answer:
HTML
HTML
CSS
CSS
AJAX
AJAX
None of these
None of these
Interferometer was first introduced in:
1 Mark(s)
Your Answer:
1881
1881
1850
1850
1991
1991
1920
1920
Light is absorbed by some substances, these substances are known as:
1 Mark(s)
Your Answer:
pigment
pigment
surface
surface
vein
vein
Salk
Salk
Which of the following languages is more suited to a structured program?
1 Mark(s)
Your Answer:
PL/1
PL/1
FORTRAN
FORTRAN
BASIC
BASIC
PASCAL
PASCAL
Natural cellulose is aggregated into:
1 Mark(s)
Your Answer:
fine microfibrils
fine microfibrils
rough microfibrils
rough microfibrils
rigidity
rigidity
flexibility
flexibility
Which one of the following is the default PHP session name?
1 Mark(s)
Your Answer:
PHPSESSID
PHPSESSID
PHPSESID
PHPSESID
PHPSESSIONID
PHPSESSIONID
PHPIDSESS
PHPIDSESS
What will be the output of the following C code? #include <stdio.h> #define MIN 0 #if defined(MIN) + defined(MAX) #define MAX 10 #endif int main() { printf("%d %d\n", MAX, MIN); return 0; }
1 Mark(s)
Your Answer:
10 0
10 0
Compile time error
Compile time error
Undefined behaviour
Undefined behaviour
Somegarbagevalue 0
Somegarbagevalue 0
In dplyr, what is the purpose of the %>% operator (pipe operator)?
1 Mark(s)
Your Answer:
Performs bitwise OR operation
Performs bitwise OR operation
Chains together a sequence of operations
Chains together a sequence of operations
Separates elements in a character vector
Separates elements in a character vector
Concatenates strings
Concatenates strings
Which one of the following is considered a type of cloud computing model involving the three different service models together?
1 Mark(s)
Your Answer:
CPI
CPI
SIP
SIP
SPI
SPI
All of the mentioned
All of the mentioned
Which is not a Mozilla value?
1 Mark(s)
Your Answer:
caret
caret
resizer
resizer
listbox
listbox
scrollbar
scrollbar
What is the purpose of the 'memset' function in C?
1 Mark(s)
Your Answer:
To allocate memory
To allocate memory
To set memory to zero
To set memory to zero
To find memory leaks
To find memory leaks
To copy memory
To copy memory
Which data structure is used for implementing a FIFO branch and bound strategy?
1 Mark(s)
Your Answer:
stack
stack
queue
queue
array
array
linked list
linked list
In a table, ______(s) are displayed in the order in which they were entered. Most often this order is not useful.
1 Mark(s)
Your Answer:
formula
formula
format
format
layout
layout
record
record
In java, jar stands for_____.
1 Mark(s)
Your Answer:
Java Archive Runner
Java Archive Runner
Java Application Resource
Java Application Resource
Java Application Runner
Java Application Runner
None of the above
None of the above
In Excel which key is used to select entire row?
1 Mark(s)
Your Answer:
Ctrl+Space
Ctrl+Space
Shift+Space
Shift+Space
Alt+Space
Alt+Space
None of these
None of these
What is the primary difference between Bottom-Up and Top-Down approaches in Dynamic Programming?
1 Mark(s)
Your Answer:
Bottom-Up builds the solution iteratively from base cases; Top-Down uses recursion with memoization.
Bottom-Up builds the solution iteratively from base cases; Top-Down uses recursion with memoization.
Bottom-Up uses recursion; Top-Down builds solutions iteratively.
Bottom-Up uses recursion; Top-Down builds solutions iteratively.
Bottom-Up is used for sorting; Top-Down is for searching.
Bottom-Up is used for sorting; Top-Down is for searching.
There is no difference between them.
There is no difference between them.
. . . . . . . . maps input key/value pairs to a set of intermediate key/value pairs.
1 Mark(s)
Your Answer:
Mapper
Mapper
Reducer
Reducer
Both Mapper and Reducer
Both Mapper and Reducer
None of the mentioned
None of the mentioned
What will be the output of the following C# code? static void Main(string[] args) { int x = 10; do { Console.WriteLine( x++); } while(Convert.ToBoolean(5) && Convert.ToBoolean(4) && Convert.ToBoolean(3) && Convert.ToBoolean(2) && Convert.ToBoolean(1) && Convert.ToBoolean(0)); Console.ReadLine(); }
1 Mark(s)
Your Answer:
13
13
15
15
11
11
10
10
The shift ciphers sometimes referred to as the:
1 Mark(s)
Your Answer:
Caesar cipher
Caesar cipher
Julia cipher
Julia cipher
plain cipher
plain cipher
XOR cipher
XOR cipher
Scalar subqueries are also useful in SQL:
1 Mark(s)
Your Answer:
Insertion statements
Insertion statements
Deletion statement
Deletion statement
Update statements
Update statements
Retrieval statement
Retrieval statement
Wireless communication was initiated in:
1 Mark(s)
Your Answer:
1880
1880
1885
1885
1890
1890
1895
1895
Which method is used to remove a key-value pair from a dictionary?
1 Mark(s)
Your Answer:
pop()
pop()
remove()
remove()
delete()
delete()
discard()
discard()
Internet users use the:
1 Mark(s)
Your Answer:
high-level data link control
high-level data link control
password authentication protocol
password authentication protocol
multipoint protocol
multipoint protocol
point to point protocol
point to point protocol
Which Ruby tool is commonly used for formatting code according to community style guides?
1 Mark(s)
Your Answer:
RuboCop
RuboCop
RSpec
RSpec
Pry
Pry
Guard
Guard
Initial Value Problems 'IVP' are solved without first determing a general solution in:
1 Mark(s)
Your Answer:
differentiation
differentiation
integration
integration
Laplace transform
Laplace transform
none of above
none of above
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.