Mock1 MCQ Java 21 Nov MUM With Answers
Mock1 MCQ Java 21 Nov MUM With Answers
Mock1 MCQ Java 21 Nov MUM With Answers
unix
x=10
if [ $x -gt 2 ]
echo x
fi
If syntax is incorrect
unix
Johnson&Johnson 3
Lux 3
Rexona 2
1/12
awk 'BEGIN{FS=" "}{if ($5 == 'Yes'){print $2,$4}}' product.txt
unix
unix
TRUE
FALSE
unix
name=uinx
echo "Hello $name"
2/12
name=unix
echo "Hello name"
name=unix
print Hello $name
name=unix
print "Hello $name";
sql
can be duplicated
can be null
cannot be null
None of these
sql
Delete
Purge
Remove
Drop table
sql
3/12
1 2019/2/12 1500
Sujatha
2 2018/09/23 300
Nandini
3 2018/05/27 700
Sujatha
4 2017/08/03 1500
Sujatha
5 2017/04/09 2500
Jaswanth
6 2017/06/24 100
Nandini
sql
LENGTH()
Count()
SUM()
MIN()
sql
With SQL, how do you select all the records from a table named
"Toddler" where the value of the column "Name" starts with "A"?
4/12
Question - 11 SCORE: 1 points
PRA_PLSQL_Qn11
plsql
Output is 2
plsql
DECLARE
BEGIN
EXCEPTION
END
plsql
Will return an error since the size is not mentioned in the variable
declaration
plsql
ALTER table_name
ADD column_name datatype;
ALTER table_name
ADD COLUMN column_name datatype;
plsql
Write a sql query to update the designation as 'ITA' when location is null
None of these
6/12
Question - 16 SCORE: 1 points
PRA_UI_Qn16
ui
carName="Honda City";
carName=Honda City;
ui
string
character array
object
ui
Number is 16
16 Number is
16
ui
required
validate
formvalidate
placeholder
ui
<h6>
<h1>
<h0>
ui
On clicking the 'Click Me' link, it will open google.com in a new window
or tab
On clicking the 'Click Me' link, it will open google.com in the same
window or tab as it was clicked
8/12
On clicking the 'Click Me' link, it will open google.com in the full body of
parent frame
On clicking the 'Click Me' link, it will open google.com in the full body of
the window.
ui
The below text will be displayed in white font and white background
The below text will be displayed in white font and blue background
ui
span
select
9/12
b
ui
<html>
<body>
<p id="sample"><b>Welcome To Car World</b> </p>
<script>
var cars = ["BMW", "Honda", "Maruti"];
cars.push("Jaguar");
var c2=cars.pop();
cars.push("Benz");
document.getElementById("sample").innerHTML = c2;
</script>
</body>
</html>
Maruti
Benz
Jaguar
Undefined
ui
The title tag is used inside which tag to mention the document title.
body
header
head
doctype
java
Inserting any value in the wrong index as shown below will result in
10/12
int A[]=new int[3];
A[5]=5;
NullPointerException
ArrayIndexOutOfBoundsException
ArithmeticException
java
package
packagename
import
java
is
easy
error
easy to learn
11/12
PRA_Java_Qn29
java
TRUE
FALSE
java
class Demo {
public static void main(String[] args)
{
Short a=365;
System.out.println(a++);
}}
What is the output of the above code?
366
TRUE
365
error
12/12