Download as pdf or txt
Download as pdf or txt
You are on page 1of 1056

11/29/2019 Quiz

Avengers Mock 3 MCQ / MCQ / Quiz

Started on
Friday, 22 November 2019, 2:00 PM

State
Finished

Completed on
Friday, 22 November 2019, 3:10 PM

Time taken
1 hour 10 mins

Grade
30.50 out of 50.00 (61%)

Question 1

Correct

Mark 1.00 out of 


1.00

What is the approach of OO ?

Select one:

a. bundle data only for security

b. bundle method seperated from data

c. bundle data seperated from method

d. bundle data and method


The correct answer is: bundle data and method

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 1/55
11/29/2019 Quiz

Question 2

Correct

Mark 1.00 out of


1.00

How do we change the state of an object ?

Select one:

a. Using object's behavior


b. Using object's property

c. Using Object's default methods

d. Using class name

The correct answer is: Using object's behavior

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 2/55
11/29/2019 Quiz

Question 3

Correct

Mark 1.00 out of


1.00

Select the bene ts of OOP ?

Select one or more:

 a. Ease of design

 b. Resuability

c. code deployment

d. Testing

The correct answers are: Ease of design, Resuability

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 3/55
11/29/2019 Quiz

Question 4

Correct

Mark 1.00 out of


1.00

What de nes the state of an object ?

Select one:

a. Using the class Id

b. Using the class identity

c. Using the behavior

d. Using the value of the class properties


The correct answer is: Using the value of the class properties

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 4/55
11/29/2019 Quiz

Question 5

Correct

Mark 1.00 out of


1.00

How does the di erent section of an application communicate in


an OO approach ?

Select one:

a. Di erent sections of the application interact through le


system

b. Di erent sections of the application interact through


database

c. The objects created during runtime by di erent sections of


the application interact through messages

d. In OO approach, the di ferent sections run in isolation so


they will NOT interact

The correct answer is: The objects created during runtime by di erent
sections of the application interact through messages

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 5/55
11/29/2019 Quiz

Question 6

Correct

Mark 1.00 out of


1.00

Select the principle that best describes the given scenario. The
wind is called a breeze if it is gentle. The wind is called a storm if it
is harsh.

Select one:

a. Polymorphism

b. Abstraction

c. Typing

d. Aggregation

The correct answer is: Polymorphism


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 6/55
11/29/2019 Quiz

Question 7

Correct

Mark 1.00 out of


1.00

A program is said to be_______, if it optimizes the amount of


memory and processing time.

Select one:

a. robust

b. documented

c. e cient

d. modular

The correct answer is: e cient

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 7/55
11/29/2019 Quiz

Question 8

Incorrect

Mark 0.00 out of


1.00

Choose the correct option where waterfall model is not suited.

Select one:

a. Projects with frequent changes

b. Complex Projects (that has more number of functionalities)


c. Projects with stable requirements

d. Simple Projects (that has less number of functionalities)

The correct answer is: Projects with frequent changes

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 8/55
11/29/2019 Quiz

Question 9

Correct

Mark 1.00 out of


1.00

In which of the given SDLC model, unclear requirements are


considered?

Select one:

a. Spiral Model

b. Agile Model

c. Prototyping Model

d. Waterfall Model

The correct answer is: Prototyping Model

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 9/55
11/29/2019 Quiz

Question 10

Incorrect

Mark 0.00 out of


1.00

After the development of online website for global pharmacy , it


was found that there were interface errors in few of the modules.
In which level of testing these errors would be identi ed.

Select one:

a. System Testing

b. Acceptance Testing

c. Unit Testing

d. Integration Testing

The correct answer is: Integration Testing


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 10/55
11/29/2019 Quiz

Question 11

Correct

Mark 1.00 out of


1.00

ERD Example: Consider the given scenario. ZEE public school


Library. A Library has many books. Each Book has many chapters.
Identify the cardinality between Chapter and Book

Select one:

a. m..1

b. 0..0

c. 0..m

d. m..m

The correct answer is: m..1


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 11/55
11/29/2019 Quiz

Question 12

Correct

Mark 1.00 out of


1.00

Software was developed for Global Marketing. Few changes that


was earlier requested was already incorporated in the delivered
software. Now the client does not want the changes and
requested for the previous release. Which of the below option
would facilitate developer to meet the client needs.

Select one:

a. Software Repository

b. Software Con guration Management


c. Software Control Management

d. Change Control Management



The correct answer is: Software Con guration Management

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 12/55
11/29/2019 Quiz

Question 13

Correct

Mark 1.00 out of


1.00

What does the below Unix command accomplish? 

$ vi sample

Select one:

a. delete a le named sample

b. edit le named sample

c. open le named sample

d. open le if it exists else creates a new le


The correct answer is: open le if it exists else creates a new le

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 13/55
11/29/2019 Quiz

Question 14

Correct

Mark 1.00 out of


1.00

Which of the following is not a feature of UNIX?

Select one:

a. User friendly

b. Multiuser

c. Multitasking

d. Portability

The correct answer is: User friendly

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 14/55
11/29/2019 Quiz

Question 15

Incorrect

Mark 0.00 out of


1.00

Consider the sample.txt le and predict the output 

Unix is an operating system. 

Unix is open source.

 Linux is also a powerful OS. 

What is the output of grep -c "Unix" sample.txt command?

Select one:

a. 3

b. 4

c. 0

d. 2 

The correct answer is: 2

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 15/55
11/29/2019 Quiz

Question 16

Incorrect

Mark 0.00 out of


1.00

Which of the following layer acts as an interface between user and


kernel ?

Select one:

a. System Calls

b. Kernel

c. Shell

d. Hardware

The correct answer is: Shell


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 16/55
11/29/2019 Quiz

Question 17

Correct

Mark 1.00 out of


1.00

Which command in UNIX displays the list of all the users who have
logged into the Unix server?

Select one:

a. users

b. Who

c. Who am i

d. List users

The correct answer is: Who


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 17/55
11/29/2019 Quiz

Question 18

Correct

Mark 1.00 out of


1.00

What is the purpose of using -a option with ls command ?

Select one:

a. for showing hidden les


b. for showing executables

c. for multi columnar output

d. for showing directories

The correct answer is: for showing hidden les

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 18/55
11/29/2019 Quiz

Question 19

Correct

Mark 1.00 out of


1.00

Comment in XML document is given by

Select one:

a. <!-- --!>

b. <?-- -->

c. </-- -- >

d. <!-- -->

The correct answer is: <!-- -->

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 19/55
11/29/2019 Quiz

Question 20

Correct

Mark 1.00 out of


1.00

Which is not true about XML

Select one:

a. XML Tags are not Case Sensitive


b. XML Elements Must be Properly Nested

c. All XML Elements Must Have a Closing Tag

d. XML must be wellformed

The correct answer is: XML Tags are not Case Sensitive

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 20/55
11/29/2019 Quiz

Question 21

Correct

Mark 1.00 out of


1.00

Which of the following fragments of XML are well-formed

Select one:

a. <?xml version="1.0"?>

b. <?xml encoding="Master"?>

c. <?xml encoding="JIS" version="File1"?>

d. <?xml?>

The correct answer is: <?xml version="1.0"?>

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 21/55
11/29/2019 Quiz

Question 22

Correct

Mark 1.00 out of


1.00

Find out the well-formed xml le

Select one:

a. <book category="Web">
    <bname>XML Tutorials</bname>
    <pages>100</pages>
    <price>$300.00</price>
 </book>

b. <book category="Web">
    <bname>XML Tutorials</BNAME>
    <pages>100</pages>
    <price>$300.00<price>
<book>


c. <book category=Web>
     <bname>XML Tutorials</bname>
     <pages>100</pages>
     <price>$300.00</price>
 </book>

d. <book category="Web">
    <bname>XML Tutorials</bname>
    <pages>100</pages>
    <price>$300.00</Price>
</book>

The correct answer is: <book category="Web">


    <bname>XML Tutorials</bname>
    <pages>100</pages>
    <price>$300.00</price>
 </book>

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 22/55
11/29/2019 Quiz

Question 23

Correct

Mark 1.00 out of


1.00

Which of the following statement/s is/are TRUE?


(1) Abstract method can have body
(2) Abstract class cannot be instantiated
(3) Abstract class can have constructor
Choose the most appropriate option.

Select one:

a. Both (1) and (2) are TRUE

b. Both (2) and (3) are TRUE


c. Both (1) and (3) are TRUE


d. Only (2) is TRUE

The correct answer is: Both (2) and (3) are TRUE

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 23/55
11/29/2019 Quiz

Question 24

Incorrect

Mark 0.00 out of


1.00

Identify the appropriate relationship between the classes House


and Room. Assume that getter and setter methods for all instance
variables are implemented

class Room
{
private int length;
private float width;
}
class House
{
private float area;
private Room room;
public House()
{
room=new Room();
} 
}

Choose the most appropriate option

Select one:

a. No relationship exists between class House and class Room

b. Aggregation

c. Specialization

d. Composition

The correct answer is: Composition

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 24/55
11/29/2019 Quiz

Question 25

Correct

Mark 1.00 out of


1.00

What will be the output of the following Java code?

public class ApplicationTester


{
public static void main(String[] args)
{
String s1 = "One";
String s2 = "One";
System.out.println((s1==s2) + " " + s1.equals(s2));
}
}

Choose the most appropriate option.

Select one:

a. false true 

b. true true

c. true false

d. false false

The correct answer is: true true

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 25/55
11/29/2019 Quiz

Question 26

Incorrect

Mark 0.00 out of


1.00

What will be the output of the following Java code?

public class OverloadTester


{
public static void main(String[] args)
{
double result = new OverloadTester().add(25, 35);
System.out.println("Sum is " + result);
}
public int add(int number1, int number2)
{
return number1 + number2;
}
public double add(int number1, int number2)
{
return number1 + number2;
} 
}

Choose the most appropriate option.

Select one:

a. Sum is 60

b. Compilation Error: Duplicate method add(int, int) in type


OverloadTester

c. Sum is 60.0

d. Sum is 0

The correct answer is: Compilation Error: Duplicate method add(int,


int) in type OverloadTester

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 26/55
11/29/2019 Quiz

Question 27

Incorrect

Mark 0.00 out of


1.00

What is the output expected for the below code ?

public class ConstructorTest


{
private ConstructorTest(int w) // line 2
{

System.out.println(w);
}
public static ConstructorTest() // line 6
{

System.out.println(10);
}
public static void main(String args[])
{
ConstructorTest obj = new ConstructorTest(50); 
}
}

Choose most appropriate option.

Select one:

a. Won't compile because of line (6) constructor can't be static

b. 50

c. 10 50

d. 10

The correct answer is: Won't compile because of line (6) constructor
can't be static

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 27/55
11/29/2019 Quiz

Question 28

Incorrect

Mark 0.00 out of


1.00

Predict the output of the following Java code.

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 28/55
11/29/2019 Quiz

public class Customer

public void getCustomer(String


customer_name)

System.out.println("Customer
name is : "+customer_name);

public void getCustomer(int


customerId, String customer_location)

System.out.println("Customer
location : "+customer_location+" & Customer Id :
"+customerId);

public void getCustomer(int


customerId, float reward_points)

System.out.println("Customer
Id : "+customerId+" & reward points till date is
:"+reward_points);

public static void main(String[]


args)

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 29/55
11/29/2019 Quiz

Customer c = new Customer();

c.getCustomer("Smith");

c.getCustomer(1232,560.0f);

c.getCustomer(1232, "Florida");

Choose the most appropriate option.

Select one:

a. Customer name is : Smith


Customer Id : 1232 & reward points till date is :560.0
Customer location : Florida & Customer Id : 1232

b. Compilation Error.
The method getCustomer(int, String) in the type Customer is
not applicable for the arguments (int, oat)
 

c. Customer name is : Smith


Customer Id : 1232 & Customer location : Florida
Customer Id : 1232 & reward points till date is :560.0

d. Customer name is : Smith


Customer location : Florida & Customer Id : 1232
Customer Id : 1232 & reward points till date is :560.0

The correct answer is: Customer name is : Smith


Customer Id : 1232 & reward points till date is :560.0
Customer location : Florida & Customer Id : 1232

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 30/55
11/29/2019 Quiz

Question 29

Correct

Mark 1.00 out of


1.00

What will be the output of the following Java code?

public class Account


{
public void deposite(int amount)
{
System.out.println("Account deposited with: " +
amount);
}
public void transaction()
{
this.deposite(100);
}
}
public class SavingsAccount extends Account
{
public void deposite(int amount) 
{
System.out.println("Savings Account deposited with: " +
amount);
}
}
public class ApplicationTester
{
public static void main(String[] args)
{
Account account = new SavingsAccount();
account.transaction();
}
}

Choose the most appropriate option.

Select one:

a. Account deposited with: 100

b. Savings Account deposited with: 0

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 31/55
11/29/2019 Quiz

c. Savings Account deposited with: 100


d. Account deposited with: 0

The correct answer is: Savings Account deposited with: 100

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 32/55
11/29/2019 Quiz

Question 30

Incorrect

Mark 0.00 out of


1.00

What will be the output of the following Java code?

class Employee
{
Employee ()
{
System.out.println("Employee constructor");
}
static
{
System.out.println("Employee static block");
}
}
class Manager
{
Manager () 
{
System.out.println("Manager constructor");
}
static
{
System.out.println("Manager static block");
}
}

public class Main


{
public static void main(String[] args) {
Manager obj=null;
}

Select one:

a. only Manager class constructor and static block executes

b. Both class Constrcutor and Static block executes


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 33/55
11/29/2019 Quiz

c. no output

d. only Manager class static block executes

The correct answer is: no output

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 34/55
11/29/2019 Quiz

Question 31

Incorrect

Mark 0.00 out of


1.00

What will be the output of the following Java code?

public class ApplicationTester


{
public static void main(String[] args)
{
int[] array = {-9,-11-8,-100,-78};
int minimum = 0;
for(int index=0; index < array.length; index++)
{
if(minimum < array[index])
{ minimum = array[index];
}
}
System.out.println(minimum);
} 
}

Choose the most appropriate option.

Select one:

a. null

b. -100

c. -8

d. 0

The correct answer is: 0

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 35/55
11/29/2019 Quiz

Question 32

Incorrect

Mark 0.00 out of


1.00

Identify the CORRECT SQL statement to create a table with


composite primary key. Choose most appropriate option.

Select one:

a. CREATE TABLE Account (AccountNumber Number(5),


CustomerId Number(10), OpeningDate Date, Balance
Number(10,2), CONSTRAINT Acc_Pkey PRIMARY KEY
(AccountNumber,CustomerId));

b. CREATE TABLE Account (AccountNumber Number(5),


CustomerId Number(10), OpeningDate Date, Balance
Number(10,2), CONSTRAINT Acc_Pkey COMPOSITE PRIMARY
KEY (AccountNumber,CustomerId));

c. CREATE TABLE Account (AccountNumber Number(5)


CONSTRAINT Acc_Pkey1 PRIMARY KEY, CustomerId

Number(10) CONSTRAINT Acc_Pkey2 PRIMARY KEY,
OpeningDate Date, Balance Number(10,2));

d. CREATE TABLE Account (AccountNumber Number(5),


CustomerId Number(10) CONSTRAINT Acc_Pkey2 PRIMARY
KEY (AccountNumber,CustomerId), OpeningDate Date, Balance
Number(10,2));

The correct answer is: CREATE TABLE Account (AccountNumber


Number(5), CustomerId Number(10), OpeningDate Date, Balance
Number(10,2), CONSTRAINT Acc_Pkey PRIMARY KEY
(AccountNumber,CustomerId));

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 36/55
11/29/2019 Quiz

Question 33

Correct

Mark 1.00 out of


1.00

Consider the table Student(StudentId, StudentName, Email,


PercentageOfMarks). Which is the CORRECT query to display the
details in the ascending order (lowest to highest) of
PercentageOfMarks and in the descending order of StudentId in
case PercentageOfMarks is the same. Choose most appropriate
option

Select one:

a. SELECT StudentId, StudentName, Email, PercentageOfmarks


FROM Student ORDER BY PercentageOfMarks DESC, StudentId;

b. SELECT StudentId, StudentName, Email, PercentageOfmarks


FROM Student ORDER BY PercentageOfMarks DESC, StudentId
DESC;

c. SELECT StudentId, StudentName, Email, PercentageOfmarks 


FROM Student ORDER BY StudentId DESC, PercentageOfMarks;

d. SELECT StudentId, StudentName, Email, PercentageOfmarks


FROM Student ORDER BY PercentageOfMarks, StudentId DESC;

The correct answer is: SELECT StudentId, StudentName, Email,


PercentageOfmarks FROM Student ORDER BY PercentageOfMarks,
StudentId DESC;

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 37/55
11/29/2019 Quiz

Question 34

Partially correct

Mark 0.50 out of


1.00

Consider table Customer(cid NUMBER(4), cname VARCHAR2(10))


has some records. Identify the appropriate ALTER statements
(choose 2)which executes on table Customer [ Note: There is no
null value for any column]

Select one or more:

 a. ALTER TABLE Customer MODIFY cname VARCHAR2(15);


b. ALTER TABLE Customer ADD CONSTRAINT cust_name NOT


NULL(cname);

c. ALTER TABLE Customer MODIFY cid NUMBER(2);

d. ALTER TABLE Customer ADD dob DATE DEFAULT '30-Jun-


1995'; 

The correct answers are: ALTER TABLE Customer MODIFY cname


VARCHAR2(15);, ALTER TABLE Customer ADD dob DATE DEFAULT
'30-Jun-1995';

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 38/55
11/29/2019 Quiz

Question 35

Correct

Mark 1.00 out of


1.00

Consider table Students(studentId, branchid). Identify the


CORRECT SQL statement to retrieve the branches which has more
than 3 students. Choose most appropriate option.

Select one:

a. SELECT branchid FROM Students HAVING COUNT(*) >3;

b. SELECT branchid FROM Students GROUP BY studentId


HAVING COUNT(*) > 3;

c. SELECT branchid FROM Students GROUP BY branchid


HAVING COUNT(*) > 3;

d. SELECT branchid FROM Students WHERE COUNT(*) >3


GROUP BY branchid;

The correct answer is: SELECT branchid FROM Students GROUP BY


branchid HAVING COUNT(*) > 3;

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 39/55
11/29/2019 Quiz

Question 36

Incorrect

Mark 0.00 out of


1.00

Consider table Project is created using the SQL statement given


below

CREATE TABLE Project(


projectid VARCHAR2(10) CONSTRAINT pkey PRIMARY KEY,
projectname VARCHAR2(10) CONSTRAINT pnull NOT NULL,
employeecount NUMBER(2) DEFAULT 0);

Which of the following statements insert record successfully to


Project table [Choose 2]

Select one or more:

a. INSERT INTO project(projectid,employeecount)


VALUES('P3',10);

b. INSERT INTO project(projectid,projectname)
VALUES('P2','Finance');

c. INSERT INTO project VALUES('P1','Finance',20);

 d. INSERT INTO project VALUES('P1','Finance';)


Your answer is incorrect.

The correct answers are: INSERT INTO project(projectid,projectname)


VALUES('P2','Finance');, INSERT INTO project
VALUES('P1','Finance',20);

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 40/55
11/29/2019 Quiz

Question 37

Incorrect

Mark 0.00 out of


1.00

Consider the following tables:


Vendor (VendorId, VendorName, PhoneNumber). Here VendorId is
the primary key.
Item (ItemCode, UnitPrice, QuantityOnHand, VendorId) Here
ItemCode is the primary key and VendorId is the foreign key
referencing the VendorId in Vendor Table.
 
Which is the CORRECT SQL query to display ItemCode, UnitPrice,
VendorName for all Items. It should also display the details of the
Item which is not having any vendor?
Choose most appropriate option

Select one:

a. SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName
FROM Item INNER JOIN Vendor ON Item.VendorId = 
Vendor.VendorId AND Item.VendorId IS NULL;

b. SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName
FROM Item INNER JOIN Vendor ON Item.VendorId =
Vendor.VendorId;

c. SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName
FROM Item LEFT OUTER JOIN Vendor ON Item.VendorId =
Vendor.VendorId;

d. SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName
FROM Item, Vendor WHERE Item.VendorId = Vendor.VendorId;

Your answer is incorrect.

The correct answer is: SELECT


Item.ItemCode,Item.UnitPrice,Vendor.VendorName FROM Item LEFT
OUTER JOIN Vendor ON Item.VendorId = Vendor.VendorId;

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 41/55
11/29/2019 Quiz

Question 38

Incorrect

Mark 0.00 out of


1.00

'link', 'vlink' and 'alink' are attributes of which HTML tag?

Choose the most appropriate option.

Select one:

a. <body>

b. <img>

c. <a>

d. <head>

Your answer is incorrect.



The correct answer is: <body>

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 42/55
11/29/2019 Quiz

Question 39

Incorrect

Mark 0.00 out of


1.00

Choose from below the valid syntax to show "Welcome to JS!!" to


user in JavaScript using a pop up. Choose most appropriate option

Select one:

a. alertmsg("Welcome to JS!!");

b. alertBox("Welcome to JS!!");

c. alert("Welcome to JS!!");

d. alert(Welcome to JS!!);

The correct answer is: alert("Welcome to JS!!");

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 43/55
11/29/2019 Quiz

Question 40

Correct

Mark 1.00 out of


1.00

Choose from below the valid syntax to show "Welcome to JS!!" to


user in JavaScript using a pop up. Choose most appropriate option

Select one:

a. alertBox("Welcome to JS!!");

b. alertmsg("Welcome to JS!!");

c. alert("Welcome to JS!!");

d. alert(Welcome to JS!!);

The correct answer is: alert("Welcome to JS!!");

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 44/55
11/29/2019 Quiz

Question 41

Incorrect

Mark 0.00 out of


1.00

Assume abc.html is existing and a valid HTML page. Refer the code
below:

<form action="abc.html">
First Name: <input type="text"/><br/>
Last Name: <input type="text"/><br/>
Password: <input type="hidden"/><br/>
<input type="submit" value="Submit"/>
<form>

How many HTML controls will be displayed on the browser, when


the above page is run on browser? Choose most appropriate
option

Select one:


a. 4

b. 3

c. 7

d. 5

The correct answer is: 3

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 45/55
11/29/2019 Quiz

Question 42

Correct

Mark 1.00 out of


1.00

Which of the following is the correct html form element to create


the checkbox in a web page? Choose most appropriate option.

Select one:

a. <input type="checkbox">

b. <input=checkbox>

c. <checkbox>

d. <input checkbox>

The correct answer is: <input type="checkbox">

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 46/55
11/29/2019 Quiz

Question 43

Incorrect

Mark 0.00 out of


1.00

Consider the javascript code given below. What would be the print values
from line 1 and line 2 on execution?

<html> 

   <body> 

     <p id="id1"></p><!-- line 1--> 

     <p id="id2"></p><!-- line 2-->

     <script>

       var y=10; 

       myFunction();

       document.getElementById("id1").innerHTML = y; 

       document.getElementById("id2").innerHTML = window.y; 

       function myFunction() {

         y=20; 

         y=y+window.y

       } 

     </script>

   </body> 

</html>

Choose the most appropriate option.

Select one:

a. 10 10

b. 10 30

c. 40 40

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 47/55
11/29/2019 Quiz

d. 10 40

Your answer is incorrect.

The correct answer is: 40 40

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 48/55
11/29/2019 Quiz

Question 44

Incorrect

Mark 0.00 out of


1.00

SPOT THE ERROR:

Observe the below algorithm to nd the average of three


numbers. 

Step1: Start

Step2: Get num1, num2, num3

Step3: Add num1, num2, num3 and store it in Sum

Step4: Average=sum%3

Step5: Display Sum and Average

Step6: Stop

Identify the incorrect step(if any)

Select one:

a. No error

b. Step 2

c.  Step 5

d.  Step 4

Your answer is incorrect.

The correct answer is:  Step 4

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 49/55
11/29/2019 Quiz

Question 45

Correct

Mark 1.00 out of


1.00

The properties of good program must have_____

Select one:

a.
Fault Prevention and fault tolerance

b. Modules tightly connected

c.
 Poor Design for change

d.  Component dependence

Your answer is correct.

The correct answer is: 


Fault Prevention and fault tolerance

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 50/55
11/29/2019 Quiz

Question 46

Correct

Mark 1.00 out of


1.00

Carefully read the question and answer accordingly. Which data


structure is said to be linear data structure?

Select one:

a. Arrays

b. Graphs

c. Tree

d. None of the listed options

The correct answer is: Arrays

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 51/55
11/29/2019 Quiz

Question 47

Correct

Mark 1.00 out of


1.00

Carefully read the question and answer accordingly. What


operation is processed for each element in the list

Select one:

a. Sorting

b. Merging

c. Inserting

d. Traversal

The correct answer is: Traversal

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 52/55
11/29/2019 Quiz

Question 48

Correct

Mark 1.00 out of


1.00

Time complexity of an algorithm signi es the total time required


by the algorithm to complete its execution with provided
resources. State True or False.

Select one:

True 

False

The correct answer is 'True'.

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 53/55
11/29/2019 Quiz

Question 49

Correct

Mark 1.00 out of


1.00

What is the time complexity of these functions? 

 int fact(int i)

 { 

if(i<=1)

return i; 

 return 2*fact(i-1);

 }

 int fact2(int i) 

 if(i<=1) 

return i; 

 return fact2(i-1) + fact2(i-1);

 }

Select one:

a. O(n) for both fact() and fact2()

b. O(2^n) for both fact() and fact2()

c. O(n) for fact() and O(2^n) for fact2()


d. O(2^n) for fact() and O(n) for fact2()

The correct answer is: O(n) for fact() and O(2^n) for fact2()

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 54/55
11/29/2019 Quiz

Question 50

Incorrect

Mark 0.00 out of


1.00

Which algorithm is the best sorting method in-place with no


quadratic worst-case scenarios?

Select one:

a. Quick Sort

b. Heap Sort

c. Bubble Sort

d. Selection Sort

The correct answer is: Heap Sort

Powered by TEKSTAC     

Best Viewed on latest versions


of Chrome, Firefox and Microsoft Edge

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 55/55
11/20/2019 MCQ

Avengers Mock 1 - QUIZ / Quiz / MCQ

Started on
Saturday, 16 November 2019, 2:00 PM

State
Finished

Completed on
Saturday, 16 November 2019, 3:13 PM

Time taken
1 hour 13 mins

Grade
27.00 out of 50.00 (54%)

Question 1

Correct 

Mark 1.00 out of


1.00

Method Overriding shows static polymorphism.

Select one:

True

False 

The correct answer is 'False'.

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 1/54
11/20/2019 MCQ

Question 2

Incorrect

Mark 0.00 out of


1.00

Which of the following classes are available in the  java.lang 


package?

(A) Stack
(B) Object
(C) Math
(D) Random
(E) String
(F) StringBuffer
(G) Vector

Select one:

a. (C), (E) & (F)

b. (B), (C) & (E)

c. (A), (B), (C), (E) & (F)


d. (B), (E) & (F)

e. (B), (C), (E) & (F)

The correct answer is: (B), (C), (E) & (F)

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 2/54
11/20/2019 MCQ

Question 3

Incorrect

Mark 0.00 out of


1.00

Choose the method(s) of the String class

Select one or more:

 a. delete( )

 b. replace( )

 c. intern()

d. reverse( )

 e. append( )

The correct answers are: intern(), replace( )

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 3/54
11/20/2019 MCQ

Question 4

Correct

Mark 1.00 out of


1.00

State True or False: The accuracy and e ciency of a HashMap can be


guaranteed with overriding equals method and hashCode method.

Select one:

True 

False

The correct answer is 'True'.

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 4/54
11/20/2019 MCQ

Question 5

Incorrect

Mark 0.00 out of


1.00

import java.util.ArrayList;

import java.util.Iterator;

public class sample {

public static void main(String[] args) 

   {  

        ArrayList<String> list = new ArrayList<String>();

                

        list.add("Orange");

         list.add("suguna");

         list.add("Apple");

         list.add("squeeze");

        Iterator<String> it = list.iterator();

        while (it.hasNext())

    {

            String inr = it.next();

             if(inr.startsWith("s"))

      {

             list.remove(inr);           

              }

            }

         System.out.println(list);

       }

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 5/54
11/20/2019 MCQ

The above code will not produce ConcurrentModi cationException


during exceution.

State True or False

Select one:

a. True

b. False

The correct answer is: False

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 6/54
11/20/2019 MCQ

Question 6

Incorrect

Mark 0.00 out of


1.00

Predict the output:

public class Topper


{
public static void check() {
this.display();
}
public static void display() {
System.out.println("Welcome to Java");
}
public static void main(String args []) {
check();
}
}

Select one:

a. Welcome to Java

b. Compile time error

c. An exception is raised stating that the variable this can only be


used within an instance

d. Runtime error

The correct answer is: Compile time error

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 7/54
11/20/2019 MCQ

Question 7

Correct

Mark 1.00 out of


1.00

Predict the output:

interface X
{
void display();
}
interface Y extends X
{
void print();
}

class Employee implements Y


{
public void display() {
System.out.print("John ");

}
public void print() {
System.out.print("Mathew");
}
}

public class TestMain {

public static void main(String[] args) {

Employee e = new Employee();


e.display();
e.print();
}
}

Select one:

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 8/54
11/20/2019 MCQ

a. Complie Time Error

b. Mathew

c. John

d. John Mathew

The correct answer is: John Mathew

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 9/54
11/20/2019 MCQ

Question 8

Incorrect

Mark 0.00 out of


1.00

Predict the output:

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 10/54
11/20/2019 MCQ

class One
{
void calculate(int a, int b)
{
System.out.println("Class One");
}
}

class Two extends One


{
@Override
void calculate(int a, int b)
{
System.out.println("Class Two");
}
}

class Three extends Two


{
@Override
void calculate(int a, int b)
{
System.out.println("Class Three");
} 
}

public class Test


{
public static void main(String[] args)
{
One one = new Two();

one.calculate(10, 20);

Two two = (Two) one;

two.calculate(50, 100);

Three three = (Three) two;

three.calculate(100, 200);
}
}

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 11/54
11/20/2019 MCQ

Select one:

a. Class Two
Class Two
java.lang.ClassCastException

b. Class One
Class Two
Class Three

c. java.lang.ClassCastException

d. Class One
Class Two
java.lang.ClassCastException

The correct answer is: Class Two


Class Two
java.lang.ClassCastException

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 12/54
11/20/2019 MCQ

Question 9

Incorrect

Mark 0.00 out of


1.00

Predict the output:

public class Topper {


public static void main(String args[])
{
TreeSet ts=new TreeSet();
ts.add("30");
ts.add("90");
ts.add("100");
ts.add("40");
ts.add("90");
System.out.println(ts);
}
}

Select one:

a. [100,30,40,90]

b. [30,90,100,40,90]

c. [30,40,90,100]

d. [30,40,90,90,100]

The correct answer is: [100,30,40,90]

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 13/54
11/20/2019 MCQ

Question 10

Incorrect

Mark 0.00 out of


1.00

Select the true statement ?

Select one:

a. Inheritance forms a is-a part of relationship between classes.


b. Aggregation forms a is-a part of relationship between classes.


Composition is the stronger form of Aggregation.

c. Aggregation is the stronger form of Inheritance.

d. Aggregation forms the is-a type of relationship between classes.

The correct answer is: Aggregation forms a is-a part of relationship


between classes. Composition is the stronger form of Aggregation. 

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 14/54
11/20/2019 MCQ

Question 11

Correct

Mark 1.00 out of


1.00

How do we change the state of an object ?

Select one:

a. Using object's property

b. Using object's behavior


c. Using class name

d. Using Object's default methods

The correct answer is: Using object's behavior

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 15/54
11/20/2019 MCQ

Question 12

Incorrect

Mark 0.00 out of


1.00

Select the principle that best describes the given scenario. An air-
condition can be operated using the button or remote control.

Select one:

a. Hierarchy

b. Encapsulation

c. Polymorphism

d. Abstraction

The correct answer is: Encapsulation


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 16/54
11/20/2019 MCQ

Question 13

Correct

Mark 1.00 out of


1.00

How does the di erent section of an application communicate in an


OO approach ?

Select one:

a. In OO approach, the di ferent sections run in isolation so they


will NOT interact

b. The objects created during runtime by di erent sections of the


application interact through messages

c. Di erent sections of the application interact through database

d. Di erent sections of the application interact through le system



The correct answer is: The objects created during runtime by di erent
sections of the application interact through messages

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 17/54
11/20/2019 MCQ

Question 14

Correct

Mark 1.00 out of


1.00

What de nes the state of an object ?

Select one:

a. Using the behavior

b. Using the class Id

c. Using the class identity

d. Using the value of the class properties


The correct answer is: Using the value of the class properties

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 18/54
11/20/2019 MCQ

Question 15

Incorrect

Mark 0.00 out of


1.00

Select the multiplicity between passenger and train reservation


ticket? What is the multiplicity of passenger ?

Select one:

a. 0..*

b. 0..1

c. 1..*

d. 1

The correct answer is: 1


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 19/54
11/20/2019 MCQ

Question 16

Correct

Mark 1.00 out of


1.00

Order the range of coupling from high to low

a. control coupling

b. stamp coupling

c. content coupling

d. uncoupled

e. common coupling

f. data coupling

Select one: 

a.
c , e , a, f , b, d

b.
c , e , a, b, f, d

c.
d, c , e , a, b, f

d.
c  , a, b, f, e, d

Your answer is correct.

The correct answer is:


c , e , a, b, f, d

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 20/54
11/20/2019 MCQ

Question 17

Correct

Mark 1.00 out of


1.00

A program is said to be_______, if it optimizes the amount of


memory and processing time.

Select one:

a. documented

b. e cient

c. robust

d. modular

The correct answer is: e cient


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 21/54
11/20/2019 MCQ

Question 18

Correct

Mark 1.00 out of


1.00

Steve is learning to draw a owchart to calculate the volume of a


cuboid. Which of the options given below would t into the process
section of the ow chart?

Select one:

a. check if l,b,h have positive value

b. Read the value of l,b,h(l represents the length, b represents the


breadth, h represents the height)

c. Volume=l*b*h

d. display the volume of the cuboid


Your answer is correct.

The correct answer is: Volume=l*b*h

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 22/54
11/20/2019 MCQ

Question 19

Incorrect

Mark 0.00 out of


1.00

Carefully read the question and answer accordingly. Find which list is
not related to stacks?

Select one:

a. None of the options.

b. First in First Out

c. Push-down

d. Last In First Out

The correct answer is: First in First Out


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 23/54
11/20/2019 MCQ

Question 20

Correct

Mark 1.00 out of


1.00

Carefully read the question and answer accordingly. Which data


structure is said to be linear data structure?

Select one:

a. None of the listed options

b. Tree

c. Arrays

d. Graphs

The correct answer is: Arrays


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 24/54
11/20/2019 MCQ

Question 21

Incorrect

Mark 0.00 out of


1.00

Which algorithm is the best sorting method in-place with no


quadratic worst-case scenarios?

Select one:

a. Quick Sort

b. Selection Sort

c. Bubble Sort

d. Heap Sort

The correct answer is: Heap Sort


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 25/54
11/20/2019 MCQ

Question 22

Correct

Mark 1.00 out of


1.00

From the given options identify the appropriate algorithm that has
the lowest worst-case complexity?

Select one:

a. Quick Sort

b. Merge Sort

c. Selection Sort

d. Bubble Sort

The correct answer is: Merge Sort


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 26/54
11/20/2019 MCQ

Question 23

Correct

Mark 1.00 out of


1.00

An algorithm which executes on constant time period can be denoted


as

Select one:

a. O(nlogn)

b. O(n2)

c. O(n)

d. O(1)

The correct answer is: O(1)


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 27/54
11/20/2019 MCQ

Question 24

Correct

Mark 1.00 out of


1.00

Which of the option gives the number of independent paths in the


program

Select one:

a. Mc Cabes number

b. Boundary Value analysis

c. Equivalence Partitioning

d. Error Guessing

The correct answer is: Mc Cabes number


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 28/54
11/20/2019 MCQ

Question 25

Correct

Mark 1.00 out of


1.00

The SRS document should be

Select one:

a. Consistent

b. Modi able

c. Unambiguous

d. All the options


The correct answer is: All the options

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 29/54
11/20/2019 MCQ

Question 26

Incorrect

Mark 0.00 out of


1.00

Software was developed for Global Marketing. Few changes that was
earlier requested was already incorporated in the delivered software.
Now the client does not want the changes and requested for the
previous release. Which of the below option would facilitate
developer to meet the client needs.

Select one:

a. Software Repository

b. Software Con guration Management

c. Software Control Management

d. Change Control Management



The correct answer is: Software Con guration Management

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 30/54
11/20/2019 MCQ

Question 27

Incorrect

Mark 0.00 out of


1.00

Go-Will department store wants to automate few of its


functionalities.From the below options identify the functional
requirements of Go-Will department store

Select one or more:

 a. Add Product Details


 b. Generate Bill for the purchased Items


 c. System should be up and running 24/7


 d. Response for each button click should be within 3 seconds 


The correct answers are: Generate Bill for the purchased Items, Add
Product Details

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 31/54
11/20/2019 MCQ

Question 28

Incorrect

Mark 0.00 out of


1.00

Tom and his team uses the SVN(Con guration Management Tool) to
do versioning of source code. Tom has pulled out the code from the
SVN server to his local machine, updated his task partially and wanted
to update the work back to the SVN server. What is the actual process
Tom has performed with the SVN server.

Select one:

a. check out/check in

b. fork/join

c. check in/check out

d. commit/rollback

The correct answer is: check out/check in

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 32/54
11/20/2019 MCQ

Question 29

Correct

Mark 1.00 out of


1.00

Which of the following option will delete the corresponding records in


the child table when the records in parent table get deleted?

Select one:

a. On delete cascade

b. On cascade set null

c. On delete set null

d. On cascade delete

The correct answer is: On delete cascade


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 33/54
11/20/2019 MCQ

Question 30

Correct

Mark 1.00 out of


1.00

In Oracle “Salary number(8,2)” can store which format of data?

Select one:

a. 99999999

b. 9999999.99

c. 99999.99000000001

d. 999999.99

The correct answer is: 999999.99

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 34/54
11/20/2019 MCQ

Question 31

Incorrect

Mark 0.00 out of


1.00

Which of these SQL commands are used for manipulating the


structure of database objects?

Select one:

a. Data De nition Language

b. Data Control Language

c. Data Access Language

d. Data Manipulation Language


The correct answer is: Data De nition Language


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 35/54
11/20/2019 MCQ

Question 32

Correct

Mark 1.00 out of


1.00

Which of the following keywords is used with Data Control Language


statements?

Select one:

a. Select

b. Grant

c. Delete

d. Insert

The correct answer is: Grant


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 36/54
11/20/2019 MCQ

Question 33

Correct

Mark 1.00 out of


1.00

Which values are ignored by count(*) function?

Select one:

a. Null values

b. Integers

c. Characters

d. Repetitive values

The correct answer is: Null values

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 37/54
11/20/2019 MCQ

Question 34

Incorrect

Mark 0.00 out of


1.00

The CUSTOMER table has following structure 

CID NUMBER (5), CNAME VARCHAR2 (50), CADDRESS VARCHAR2


(150) 

Which of the following statement will produce the output as “DEAR


CUSTOMER NAME”, where CUSTOMER NAME is fetched from
CUSTOMER table?

Select one:

a. SELECT ‘DEAR ’|| CNAME FROM CUSTOMER;

b. SELECT “DEAR”, CNAME FROM CUSTOMER;

c. SELECT “DEAR || CNAME” FROM CUSTOMER;



d. SELECT DEAR, CNAME FROM CUSTOMER;

The correct answer is: SELECT ‘DEAR ’|| CNAME FROM CUSTOMER;

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 38/54
11/20/2019 MCQ

Question 35

Correct

Mark 1.00 out of


1.00

Which command in UNIX displays the list of all the users who have
logged into the Unix server?

Select one:

a. Who

b. Who am i

c. users

d. List users


The correct answer is: Who

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 39/54
11/20/2019 MCQ

Question 36

Correct

Mark 1.00 out of


1.00

What is the purpose of using -a option with ls command ?

Select one:

a. for showing directories

b. for showing executables

c. for showing hidden les


d. for multi columnar output

The correct answer is: for showing hidden les

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 40/54
11/20/2019 MCQ

Question 37

Incorrect

Mark 0.00 out of


1.00

Pipes are Used to combine two or more commands. The symbol used
for representing pipe is ______

Select one:

a. ||

b. >> 

c. |

d. ;;

The correct answer is: |


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 41/54
11/20/2019 MCQ

Question 38

Incorrect

Mark 0.00 out of


1.00

What does the below Unix command accomplish? 

$ vi sample

Select one:

a. open le if it exists else creates a new le

b. open le named sample


c. delete a le named sample

d. edit le named sample

The correct answer is: open le if it exists else creates a new le


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 42/54
11/20/2019 MCQ

Question 39

Incorrect

Mark 0.00 out of


1.00

Every entry in the UNIX directory le has the following component(s).

Select one:

a. Filename and Inode number

b. File Sixe

c. Filename

d. Inode number

The correct answer is: Filename and Inode number

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 43/54
11/20/2019 MCQ

Question 40

Incorrect

Mark 0.00 out of


1.00

What does the below Unix command accomplish? 

$ sed 's/ABC/ZYX/' le.txt

Select one:

a. Only matches and displays the occurrence of the pattern

b. Replaces only rst occurrence of ‘ABC’ with 'ZYX'

c. Replaces all occurrences 'ABC' with 'ZYX'


d. Replaces rst occurrence in every line ‘ABC’ with 'ZYX'

The correct answer is: Replaces rst occurrence in every line ‘ABC’ with

'ZYX'

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 44/54
11/20/2019 MCQ

Question 41

Correct

Mark 1.00 out of


1.00

What is the output of the following code? 

<script type="text/javascript"> 

  var s = "6718654 or 70101?"; 

  var pattern = /\d{4}/; 

  var output = s.match(pattern); 

  document.write(output);

 </script>

Select one:

a. 6718654

b. 671701 

c. 6718

d. 70101

The correct answer is: 6718

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 45/54
11/20/2019 MCQ

Question 42

Incorrect

Mark 0.00 out of


1.00

In CSS, styles are written under _____ tag which is the child of _____
tag

Select one or more:

 a. script

b. body

c. style

 d. head

The correct answers are: head, style 

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 46/54
11/20/2019 MCQ

Question 43

Correct

Mark 1.00 out of


1.00

Javascript is included in an HTML le with the help of _____ tag

Select one:

a. style

b. body

c. script

d. head

The correct answer is: script

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 47/54
11/20/2019 MCQ

Question 44

Incorrect

Mark 0.00 out of


1.00

What does the following selector do ?

$("div")

Select one:

a. Selects all div elements

b. Selects all div elements within a <p> tag


c. selects the rst div element inside a <p> tag

d. Selects the rst div element 

The correct answer is: Selects all div elements

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 48/54
11/20/2019 MCQ

Question 45

Correct

Mark 1.00 out of


1.00

What is the correct syntax to create an array in javascript

Select one:

a. var txt = new Array(1:"John",2:"Ron",3:"Tom")

b. var txt = new Array:1=("John")2=("Ron")3=("Tom")

c. var txt = new Array="John","Ron","Tom"

d. var txt = new Array("John","Ron","Tom")


The correct answer is: var txt = new Array("John","Ron","Tom")

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 49/54
11/20/2019 MCQ

Question 46

Correct

Mark 1.00 out of


1.00

In CSS to de ne style for a unique element then which css selector


should be used?

Select one:

a. class

b. text

c. id

d. name

The correct answer is: id


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 50/54
11/20/2019 MCQ

Question 47

Correct

Mark 1.00 out of


1.00

What will be the XPATH expression to select all the book elements
that have a price  greater than 135.00

Select one:

a. /bookstore-book-price>135.00]

b. /bookstore/book[price>135.00]

c. /bookstore/book-price>135.00]

d. /bookstore-book[price>135.00]

The correct answer is: /bookstore/book[price>135.00]


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 51/54
11/20/2019 MCQ

Question 48

Correct

Mark 1.00 out of


1.00

Comment in XML document is given by

Select one:

a. <?-- -->

b. </-- -- >

c. <!-- -->

d. <!-- --!>

The correct answer is: <!-- -->

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 52/54
11/20/2019 MCQ

Question 49

Incorrect

Mark 0.00 out of


1.00

Which is not true about XML

Select one:

a. All XML Elements Must Have a Closing Tag


b. XML Elements Must be Properly Nested

c. XML must be wellformed

d. XML Tags are not Case Sensitive

The correct answer is: XML Tags are not Case Sensitive

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 53/54
11/20/2019 MCQ

Question 50

Correct

Mark 1.00 out of


1.00

What is wrong in the following lines of xml code

<note date= 14/04/1979>


<to>Abin< /to>
<from>John< /from>
</note>

Select one:

a. XML Elements Must be Properly Nested

b. XML Attribute Values Must be Quoted




c. All XML Elements Must Have a Closing Tag

d. XML Tags are Case Sensitive

The correct answer is: XML Attribute Values Must be Quoted

Powered by TEKSTAC     

Best Viewed on latest versions


of Chrome, Firefox and Microsoft Edge

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 54/54
MARVELS QUIZ MCQs1

Question 1
Incorrect
Mark 0 out of 1

Flag question

Question text
The employee table contains EmployeeNumber, EmployeeName, Salary and DeptCode
Columns. Which is the CORRECT SQL query to display DeptCode and average salary of each
department? Choose most appropriate option.
Select one:
a. SELECT DeptCode,avg(salary) FROM Employee;
b. SELECT DeptCode,avg(salary) FROM Employee GROUP BY DeptCode;
c. SELECT DeptCode,avg(salary) FROM Employee GROUP BY Salary;
d. SELECT DeptCode,avg(salary) FROM Employee GROUP BY EmployeeNumber;
Feedback

The correct answer is: SELECT DeptCode,avg(salary) FROM Employee GROUP BY DeptCode;

Question 2
Incorrect
Mark 0 out of 1

Flag question

Question text

Which of the following statement(s) is/are TRUE?


(i) In a non-correlated(independent) subquery, the subquery is always executed only once.
(ii) In a non-correlated(independent) subquery, the inner query (sub query) references the
column from the outer query (main query).
Choose most appropriate option

Select one:
a. Neither (i) nor (ii)
b. Only (ii)
c. Both (i) and (ii)
d. Only (i)
Feedback
MARVELS QUIZ MCQs1
The correct answer is: Only (i)

Question 3
Incorrect
Mark 0 out of 1

Flag question

Question text
Which is the CORRECT SQL Query to display names of employees which has only 3 letters that
starts with 'A' and ends with 'e'? Choose most appropriate option.
Select one:
a. SELECT EmployeeName FROM Employee WHERE EmployeeName = 'A_e';
b. SELECT EmployeeName FROM Employee WHERE EmployeeName LIKE 'A%e';
c. SELECT EmployeeName FROM Employee WHERE EmployeeName LIKE 'A_e';
d. SELECT EmployeeName FROM Employee WHERE EmployeeName LIKE '__e';
Feedback

The correct answer is: SELECT EmployeeName FROM Employee WHERE EmployeeName
LIKE 'A_e';

Question 4
Correct
Mark 1 out of 1

Flag question

Question text
Identify the CORRECT SQL statement(s) to remove ONLY the data from "Employee" table?
(i) DROP TABLE Employee;
(ii) DELETE FROM Employee;
(iii) TRUNCATE TABLE Employee;
Choose most appropriate option.

Select one:
a. Both (i) and (iii)
b. Both (ii) and (iii)
c. (i), (ii) and (iii)
d. Both (i) and (ii)
MARVELS QUIZ MCQs1

Feedback
The correct answer is: Both (ii) and (iii)

Question 5
Correct
Mark 1 out of 1

Flag question

Question text
Which of the following SQL commands is used to remove table "EMPLOYEE" present in the
database? Choose most appropriate option.
Select one:
a. DROP TABLE EMPLOYEE;
b. REMOVE TABLE EMPLOYEE;
c. TRUNCATE TABLE EMPLOYEE;
d. DELETE TABLE EMPLOYEE;
Feedback
The correct answer is: DROP TABLE EMPLOYEE;

Question 6
Incorrect
Mark 0 out of 1

Flag question

Question text
Which of the following is CORRECT about DELETE command?
a) It can delete single or multiple columns from a table
b) It can delete single or multiple records from a table
c) Records deleted can be roll backed.
Choose most appropriate option.

Select one:
a. a only
b. b and c
c. a and c
MARVELS QUIZ MCQs1

d. a and b
Feedback

The correct answer is: b and c

Question 7
Partially correct
Mark 1 out of 1

Flag question

Question text

Assume that table Project is created using the DDL statement given below and has no records.
CREATE TABLE Project( projectId VARCHAR2(4) CONSTRAINT proj_pk PRIMARY
KEY, projectName VARCHAR2(10) DEFAULT 'NA' CONSTRAINT proj_nn NOT NULL);
Identify the INSERT statements which would successfully insert record into Project table. Choose
two most appropriate options.
Select one or more:
a. INSERT INTO project(projectId,projectName) VALUES('P3', Null);
b. INSERT INTO project(projectName,projectId) VALUES('NA','P4' );
c. INSERT INTO project VALUES('P1');
d. INSERT INTO project(projectId) VALUES('P2');
Feedback
The correct answers are: INSERT INTO project(projectName,projectId) VALUES('NA','P4' );,
INSERT INTO project(projectId) VALUES('P2');

Question 8
Incorrect
Mark 0 out of 1

Flag question

Question text
Assume that table Employee is created with foreign key column managerid referring to empid
column of same table and the following records are inserted.

EMPID EMPNAME MANAGERID


MARVELS QUIZ MCQs1

1001 James NULL


1002 Mark 1001
1003 Mary 1002
1004 Mark 1001
How many rows will be deleted after executing the below DML statement? DELETE FROM
employee WHERE empid=1001; Choose most appropriate option.
Select one:
a. Error: Integrated constraint violated. Child record found
b. 3
c. 1
d. 2
Feedback

The correct answer is: Error: Integrated constraint violated. Child record found

Question 9
Correct
Mark 1 out of 1

Flag question

Question text
Consider the table Projects, has following records.
ProjectId Start_date
--------------- ----------------
100 12-Jan-2017
Which of the following SQL statement retrieve the output as follows?
Start_date
-----------------
JAN, 12-2017
Choose most appropriate option.
Select one:
a. SELECT TO_CHAR(Start_date,'MMM, DD-YYYY') FROM Projects;
b. SELECT TO_DATE(Start_date,'MON, DD-YYYY') FROM Projects;
c. SELECT TO_CHAR(Start_date,'MON, DD-YYYY') FROM Projects;
d. SELECT TO_DATE(Start_date,'MMM, DD-YYYY') FROM Projects;
Feedback
MARVELS QUIZ MCQs1
The correct answer is: SELECT TO_CHAR(Start_date,'MON, DD-YYYY') FROM Projects;

Question 10
Incorrect
Mark 0 out of 1

Flag question

Question text
Consider table Students(sid NUMBER(3),sname VARCHAR2(10),scontact NUMBER(10) ) is
already created in the database.
It is required to change the data type of the column "scontact" to VARCHAR2(15).
Which of the following is Correct for the above requirement?
Note: sid column is primary key. Choose most appropriate option.
Select one:
a. It is not possible to change the data type of a column
b. Data type can be changed only for primary key column
c. To change the data type of a column, it is important to ensure that the corresponding column is
not having data for any of the record
d. There are no criteria to be followed. We can change the datatype of the column irrespective of
the data
Feedback
The correct answer is: To change the data type of a column, it is important to ensure that the
corresponding column is not having data for any of the record

Question 11
Correct
Mark 1 out of 1

Flag question

Question text

Which of the following can be created as a table level constraint?


(i) primary Key
(ii) foreign key
(iii) unique
Choose most appropriate option.
MARVELS QUIZ MCQs1
Select one:
a. (i) and (ii)
b. (i) only
c. (i) and (iii)
d. (i), (ii) and (iii)
Feedback

The correct answer is: (i), (ii) and (iii)

Question 12
Incorrect
Mark 0 out of 1

Flag question

Question text
Which of the following statement(s) is/are TRUE?
(i) In a correlated subquery, the subquery is always executed only once.
(ii) In a correlated subquery, the inner query (sub query) references the column from the outer
query (main query).
Choose most appropriate option.

Select one:
a. Only (ii)
b. Both (i) and (ii)
c. Neither (i) nor (ii)
d. Only (i)
Feedback

The correct answer is: Only (ii)

Question 13
Incorrect
Mark 0 out of 1

Flag question

Question text
Consider the following tables:
MARVELS QUIZ MCQs1
Vendor (VendorId, VendorName, PhoneNumber). Here VendorId is the primary key.
Item (ItemCode, UnitPrice, QuantityOnHand, VendorId) Here ItemCode is the primary key and
VendorId is the foreign key referencing the VendorId in Vendor Table.

Which is the CORRECT SQL query to display ItemCode, UnitPrice, VendorName for all Items. It
should also display the details of the Item which is not having any vendor?
Choose most appropriate option
Select one:
a. SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName FROM Item INNER JOIN Vendor
ON Item.VendorId = Vendor.VendorId AND Item.VendorId IS NULL;
b. SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName FROM Item LEFT OUTER JOIN
Vendor ON Item.VendorId = Vendor.VendorId;
c. SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName FROM Item INNER JOIN Vendor
ON Item.VendorId = Vendor.VendorId;
d. SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName FROM Item, Vendor WHERE
Item.VendorId = Vendor.VendorId;
Feedback
Your answer is incorrect.
The correct answer is: SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName FROM Item
LEFT OUTER JOIN Vendor ON Item.VendorId = Vendor.VendorId;

Question 14
Incorrect
Mark 0 out of 1

Flag question

Question text
Consider the tables given below.
Emp(empid, empname,salary,deptid)
Dept(deptid,deptname)
Note: deptid column of table Emp referring to deptid column of table Dept.

Identify the correct SQL statement to retrieve employees who are getting more than 25000 salary
and working in "FINANCE" department.

Choose most appropriate option.


Select one:
a. SELECT * FROM Emp WHERE deptid=(SELECT deptid FROM Dept WHERE
deptname='FINANCE') AND salary>25000;
b. SELECT * FROM Emp WHERE deptid=(SELECT * FROM Dept WHERE
deptname='FINANCE' AND salary > 25000);
c. SELECT * FROM Emp WHERE deptid=(SELECT deptid FROM Dept WHERE
deptname='FINANCE' AND salary>25000);
MARVELS QUIZ MCQs1

d. SELECT * FROM Emp WHERE deptid=(SELECT * FROM Dept WHERE


deptname='FINANCE') AND salary>25000;
Feedback
Your answer is incorrect.
The correct answer is: SELECT * FROM Emp WHERE deptid=(SELECT deptid FROM Dept
WHERE deptname='FINANCE') AND salary>25000;

Question 15
Correct
Mark 1 out of 1

Flag question

Question text
Consider the below tables.
Event(eventId,eventName) – eventId is primary key
Employee(empId, empName, eventId) – empId is primary key and eventId is foreign key referring
to Event table.
Identify the correct SQL statement to retrieve empid, empname and eventName for all
employees. If employee has not registered for an event then it should display ‘Not Registered’.
Select one:
a. SELECT e1.empId, e1.empName, NVL(e2.eventName,'Not Registered') FROM event e2
INNER JOIN employee e1 ON e2.eventId=e1.eventId;
b. SELECT e1.empId, e1.empName, NVL(e2.eventName,'Not Registered') FROM employee e1
RIGHT OUTER JOIN event e2 ON e1.eventId=e2.eventId;
c. SELECT e1.empId, e1.empName, NVL(e2.eventName,'Not Registered') FROM event e2 LEFT
OUTER JOIN employee e1 ON e2.eventId=e1.eventId;
d. SELECT e1.empId, e1.empName, NVL(e2.eventName,'Not Registered') FROM employee e1
LEFT OUTER JOIN event e2 ON e1.eventId=e2.eventId;
Feedback

Your answer is correct.


The correct answer is: SELECT e1.empId, e1.empName, NVL(e2.eventName,'Not Registered')
FROM employee e1 LEFT OUTER JOIN event e2 ON e1.eventId=e2.eventId;

Question 16
Correct
Mark 1 out of 1

Flag question
MARVELS QUIZ MCQs1

Question text
What will be the output of the following Java code?
public class ApplicationTester
{
public static void main(String[] args)
{
int i=0;
for(i=0; i<10; i++)
{
if(i == 5)
{
continue;
}
i++;
System.out.print(i + " ");
}
}
}
Choose the most appropriate option.

Select one:
a. 1 2 3 4 and then program will get into infinite loop
b. 1 3 5 7 9
c. 1 2 3 4 6 7 8 9
d. 1 2 3 4 5 6 7 8 9
Feedback

The correct answer is: 1 3 5 7 9

Question 17
Incorrect
Mark 0 out of 1

Flag question

Question text
Identify the appropriate relationship between the classes House and Room. Assume that getter
and setter methods for all instance variables are implemented
class Room
{
private int length;
private float width;
}
class House
{
private float area;
private Room room;
public House()
{
MARVELS QUIZ MCQs1
room=new Room();
}
}
Choose the most appropriate option

Select one:
a. No relationship exists between class House and class Room
b. Specialization
c. Aggregation
d. Composition
Feedback
The correct answer is: Composition

Question 18
Incorrect
Mark 0 out of 1

Flag question

Question text
What will be the output of the following Java code?
public class ApplicationTester
{
public static void main(String[] args)
{
int i;
for(i = 1; i <=3; i++);
{
System.out.println(i);
}
System.out.println(i);
}
}
Choose the most appropriate option.

Select one:
a. 1 to 4 will be displayed on the console
b. 1 to 3 will be displayed on the console
c. 4 will be displayed twice on the console
d. 3 will be displayed twice on the console
Feedback
The correct answer is: 4 will be displayed twice on the console
MARVELS QUIZ MCQs1

Question 19
Correct
Mark 1 out of 1

Flag question

Question text
What will be the output of the following Java code?
public class Rectangle
{
private int length;
private int width;
public static void main(String[] args)
{
Rectangle rectangle1 = new Rectangle();
rectangle1.length=10;
rectangle1.width=5;
Rectangle rectangle2 = rectangle1;
System.out.println("Length : "+rectangle2.length);
System.out.println("Width : "+rectangle2.width);
}
}
Choose the most appropriate option.

Select one:
a. Length: 5 Width: 10
b. Length : 10 Width : 5
c. Length : 0 Width : 0
d. Length : null Width : null
Feedback
The correct answer is: Length : 10 Width : 5

Question 20
Correct
Mark 1 out of 1

Flag question

Question text
Consider the Java code given below. How many times ";Hello "; will be printed when the code is
executed?
public class ApplicationTester
MARVELS QUIZ MCQs1
{
public static void main(String[] args)
{
int i = 0;
do
{
System.out.println("Hello");
i++;
} while(i <= 1);
}
}
Choose the most appropriate option.

Select one:
a. 2 times
b. Nothing will be printed
c. 1 time
d. 3 times
Feedback

The correct answer is: 2 times

Question 21
Incorrect
Mark 0 out of 1

Flag question

Question text
What will be the output of the following Java code?
class StringSample
{
public StringSample(String string)
{
System.out.println("The string is " + string);
}
}
public class ConstructorTester1
{
public static void main(String[] args)
{
StringSample stringSample = new StringSample();
StringSample stringSample1 = new StringSample("Test String");
}
}
Choose the most appropriate option.

Select one:
a. The string is null
MARVELS QUIZ MCQs1

b. The string is Test String


c. Compilation Error: The constructor StringSample() is undefined
d. The string is null The string is Test String
Feedback

The correct answer is: Compilation Error: The constructor StringSample() is undefined

Question 22
Incorrect
Mark 0 out of 1

Flag question

Question text
which of the following represents correct order from the most to least restrictive? Choose most
appropriate option.
Select one:
a. protected,private,default,public
b. private,default,proctected,public
c. public,protected,default,private
d. private,protected,default,public
Feedback

The correct answer is: private,default,proctected,public

Question 23
Correct
Mark 1 out of 1

Flag question

Question text
What will be the output of the following Java code?
public class StringTester
{
public static void main(String[] args)
{
String s1=new String("Accenture");
String s2=new String("India Limited");
s1.concat(s2);
System.out.println(s1);
MARVELS QUIZ MCQs1
}
}
Choose the most appropriate option.

Select one:
a. Accenture India
b. Accenture
c. India Limited
d. Accenture India Limited
Feedback

The correct answer is: Accenture

Question 24
Incorrect
Mark 0 out of 1

Flag question

Question text

class Test
{
static
{
System.out.println("A");
}
}
public class Demo
{
static
{
System.out.println("B");
}
public static void main(String[] args)
{
Test t=new Test();
}
static
{
System.out.println("D");
}
}
Choose the most appropriate option.

Select one:
a. A B D
b. B D A
c. B A D
MARVELS QUIZ MCQs1

d. A D B
Feedback

The correct answer is: B D A

Question 25
Incorrect
Mark 0 out of 1

Flag question

Question text

What is the output of the below code?


public class Calculator
{
public static void main(String[] args)
{
int result = 0;
Calculator calculator = new Calculator();
calculator.add(10, 20, result);
System.out.println("Result : " + result);
}
public void add(int num1, int num2, int result)
{
result = num1 + num2;
}
}
Choose the most appropriate option.

Select one:
a. Result : 30
b. Result: 20
c. Result : 0
d. Result : null
Feedback
The correct answer is: Result : 0

Question 26
Incorrect
Mark 0 out of 1

Flag question
MARVELS QUIZ MCQs1

Question text
Observe the below code,
public class MyClass
{
public int display(int num1,float num2)
{
return 0;
}
public double display(String name, int salary)
{
return 0.0;
}
//Line 1
}
Which of the below function can be inserted at line 1 so that the code compiles successfully.

Select one:
a. public void display(int num1,String num2){ }
b. public double display(String empName, int empId){ return 0.0; }
c. public String display(String name, int salary{ return success; }
d. public float display(int num1,float num2){ return 0.0f; }
Feedback

The correct answer is: public void display(int num1,String num2){ }

Question 27
Correct
Mark 1 out of 1

Flag question

Question text
What will be the output of the following code:
public class Test
{
public static void main(String[] args)
{
int number=20;
switch(number)
{
case 10: System.out.println("10");
break;
case 20: System.out.println("20");
case 30: System.out.println("30");
break;
default:System.out.println("Not in 10, 20 or 30");
}
}
}
MARVELS QUIZ MCQs1
Choose most appropriate option.

Select one:
a. invalid switch statement
b. 20 30
c. 30
d. 20
Feedback

The correct answer is: 20 30

Question 28
Correct
Mark 1 out of 1

Flag question

Question text

What will be the output of the following Java code?


public class Employee
{
private String mailId;
public void setEmailId(String mailId)
{
this.mailId = mailId;
}
public String getEmailId()
{
return this.mailId;
}
}
public class UtilityClass
{
public static void updateEmailId(Employee emp)
{
emp.setEmailId("[email protected]");
}
}
public class ApplicationTester { public static void main(String[] args)
{
Employee employee1 = new Employee();
employee1.setEmailId("[email protected]");
UtilityClass.updateEmailId(employee1);
//Line-1
System.out.println(employee1.getEmailId());
}
}
Choose the most appropriate option.

Select one:
MARVELS QUIZ MCQs1

a. null
b. [email protected]
c. [email protected]
d. Compilation error at Line-1: Invalid method call 'UtilityClass.updateEmailId(String) '
Feedback
The correct answer is: [email protected]

Question 29
Incorrect
Mark 0 out of 1

Flag question

Question text
What will be the output of the following Java code?
public class MyClass
{
private static int data;
static
{
MyClass.data = 999;
}
public static int getData()
{
return data;
}
public static void setData(int data)
{
MyClass.data = data;
}
}
public class ApplicationTester
{
public static void main(String[] args)
{
MyClass ref1 = new MyClass();
MyClass ref2 = new MyClass();
System.out.print(ref1.getData());
ref2.setData(111);
System.out.println(" " + ref1.getData());
}
}
Choose the most appropriate option.

Select one:
a. 0 111
b. 999 999
c. 999 111
MARVELS QUIZ MCQs1

d. 111 111
Feedback

The correct answer is: 999 111

Question 30
Incorrect
Mark 0 out of 1

Flag question

Question text

What will be the output of the following Java code?


public class ApplicationTester
{
public static void main(String[] args)
{
int[] array = {11,22,33,44,55,11};
int searchNumber = 11, position=999;
for(int index=0; index < array.length; index++)
{
if(searchNumber == array[index])
{
position = index;
}
} System.out.println(position);
}
}
Choose the most appropriate option.

Select one:
a. 0
b. 1
c. 5
d. 6
Feedback
The correct answer is: 5

Question 31
Incorrect
Mark 0 out of 1

Flag question
MARVELS QUIZ MCQs1

Question text
What will be the output of the following Java code?
public class BaseClass
{
public static void method()
{
System.out.println("1");
}
}
public class DerivedClass extends BaseClass
{
public static void method()
{
System.out.println("2");
}
}
public class ApplicationTester
{
public static void main(String[] args)
{
BaseClass ref = new DerivedClass();
ref.method();
//Line-1
}
}
Choose the most appropriate option.

Select one:
a. 1
b. Program will display both 1 and 2
c. 2
d. Compilation error at Line-1: Ambiguous method call 'ref.method()'
Feedback
The correct answer is: 1

Question 32
Incorrect
Mark 0 out of 1

Flag question

Question text
What will be the output of the following Java code?
public class LocalVariableTester
{
public static void main(String[] args)
{
int data1=8, data2;
MARVELS QUIZ MCQs1
if(data1 >= 10)
{
data2 = 20;
}
System.out.println(data1 + " " + data2);
}
}
Choose the most appropriate option

Select one:
a. 10 null
b. 10 0
c. Compilation error: The local variable 'data2' may not have been initialized
d. 10 20
Feedback
The correct answer is: Compilation error: The local variable 'data2' may not have been initialized

Question 33
Correct
Mark 1 out of 1

Flag question

Question text
What will be the output of the following Java code?
class Test extends Throwable { }
class Base extends Test {}
public class Main {
public static void main(String args[]) {
try {
throw new Base();
}
catch(Test t) {
System.out.println("Test Exception");
}
finally {
System.out.println("Finally block ");
}
}
}

Select one:
a. Complilation error: Test Class cant extends Throwable
b. print-"Test Exception"
c. print - "Test Exception" "Finally block "
d. Complilation error : Bass calss can't extends Test
MARVELS QUIZ MCQs1

Feedback
The correct answer is: print - "Test Exception" "Finally block "

Question 34
Incorrect
Mark 0 out of 1

Flag question

Question text
What is the output of the following code?
class Account
{
int balance;
public void createAccount()
{
balance = 1000;
}
public int getMinimumBalance()
{
return balance;
}
}
class SalaryAccount extends Account
{
private String companyName;
public SalaryAccount(String companyName)
{
this.companyName = companyName;
}
public void createAccount()
{
balance = 500;
}
public void checkCompany()
{
if (companyName.equalsIgnoreCase("Accenture"))
{
balance = 0;
}
}
}
public class MainClass
{
public static void main(String[] args)
{
Account account = new SalaryAccount("Accenture");
account.createAccount();
System.out.println("Balance : " + account.getMinimumBalance());
account.checkCompany();
System.out.println("Balance : " + account.getMinimumBalance());
}
}
Choose the most appropriate option.
MARVELS QUIZ MCQs1
Select one:
a. Balance: 500 Balance: 0
b. Balance: 1000 Balance: 0
c. Compilation Error: The method checkCompany() is undefined for the type Account
d. Balance: 1000 Balance: 500
Feedback
The correct answer is: Compilation Error: The method checkCompany() is undefined for the type
Account

Question 35
Correct
Mark 1 out of 1

Flag question

Question text
What will be the output of the following Java code?
Employee.java public class Employee
{
private double salary;
public Employee()
{
this.salary = 10000.0;
}
public static void updateSalary(Employee emp)
{
emp.salary = emp.salary + 10000.0;
//Line-1
}
public double getSalary()
{
return this.salary;
}
}
ApplicationTester .java public class ApplicationTester
{
public static void main(String[] args)
{
Employee emp1 = new Employee();
Employee emp2 = new Employee();
Employee.updateSalary(emp1);
System.out.println(emp1.getSalary() + " " + emp2.getSalary());
}
}
Choose the most appropriate option.

Select one:
a. Compilation error at Line-1: Cannot 'emp.salary' in a static context
b. 20000.0 10000.0
MARVELS QUIZ MCQs1

c. 10000.0 10000.0
d. 0.0 10000.0
Feedback

The correct answer is: 20000.0 10000.0

Question 36
Correct
Mark 1 out of 1

Flag question

Question text
What will be the output of the following Java code?

public class ApplicationTester


{
public static void main(String[] args)
{
int[] array = {-9,-11-8,-100,-78};
int minimum = 0;
for(int index=0; index < array.length; index++)
{
if(minimum < array[index])
{ minimum = array[index];
}
}
System.out.println(minimum);
}
}
Choose the most appropriate option.

Select one:
a. -8
b. 0
c. null
d. -100
Feedback

The correct answer is: 0

Question 37
Correct
Mark 1 out of 1
MARVELS QUIZ MCQs1

Flag question

Question text
Refer the incomplete code given below.
<style>
#firstname {
background-color: yellow;
color:red;
}
</style>
<input type=text <strong>__Blank1__</strong>='firstname'>
Choose the CORRECT attribute which if replaces '__Blank1__' will apply the CSS to text box.
Choose most appropriate option.
Select one:
a. id
b. style
c. styleclass
d. class
Feedback
Your answer is correct.
The correct answer is: id

Question 38
Incorrect
Mark 0 out of 1

Flag question

Question text

which of the following code creates a list box from which user can select more than one option?
Select one:
a. <select type=multiple><br />
<option> P </option><br />
<option> G </option><br />
MARVELS QUIZ MCQs1
<option> S </option><br />
</select>
b. <select name='type' multiValue><br />
<option> P </option><br />
<option> G </option><br />
<option> S </option><br />
</select>
c. <select type=multiValue><br />
<option> P </option><br />
<option> G </option><br />
<option> S </option><br />
</select>
d. <select name='type' multiple><br />
<option> P </option><br />
<option> G </option><br />
<option> S </option><br />
</select>
Feedback
Your answer is incorrect.
The correct answer is: <select name='type' multiple><br />
<option> P </option><br />
<option> G </option><br />
<option> S </option><br />
</select>

Question 39
Correct
Mark 1 out of 1

Flag question

Question text

which of the following is block level html tags?


Select one:
a. <b>
b. <a>
c. <h6>
d. <i>
Feedback
Your answer is correct.
The correct answer is: <h6>
MARVELS QUIZ MCQs1

Question 40
Correct
Mark 1 out of 1

Flag question

Question text
Johana wants to display "Welcome to JS!!" as a pop up message using JavaScript. Which of the
following suits her requirement?
Select one:
a. alert(Welcome to JS!!);
b. alertmsg("Welcome to JS!!");
c. alert("Welcome to JS!!");
d. alertBox("Welcome to JS!!");
Feedback

The correct answer is: alert("Welcome to JS!!");

Question 41
Incorrect
Mark 0 out of 1

Flag question

Question text
Identify the CORRECT HTML code to define the state of the hyperlink. The requirement is to
display the hyperlink "Click" in RED color if user has already visited
"https://portal.accenture.com". Choose most appropriate option.
Select one:
a. <html>
<body vlink="red" >
<a href="https://portal.accenture.com/">Click </a>
</body>
</html>
b. <html>
<body link="red" >
<a href="https://portal.accenture.com/"> Click </a>
</body>
</html>
MARVELS QUIZ MCQs1

c. <html>
<body>
<a href="https://portal.accenture.com/" vlink="red"> Click </a>
</body>
</html>
d. <html>
<body>
<a href="https://portal.accenture.com/" link="red"> Click </a>
</body>
</html>
Feedback
The correct answer is: <html>
<body vlink="red" >
<a href="https://portal.accenture.com/">Click </a>
</body>
</html>

Question 42
Incorrect
Mark 0 out of 1

Flag question

Question text
<!DOCTYPE html>
<html>
<body>
<script>
var x = (3 + 3) + 4 + "6"; alert(x);//line 1
</script>
</body>
</html>
What will be printed in alert box in line 1? Choose most appropriate option.

Select one:
a. 16
b. 106
c. 3346
d. 646
Feedback

The correct answer is: 106

Question 43
Correct
Mark 1 out of 1
MARVELS QUIZ MCQs1

Flag question

Question text
Refer the incomplete HTML Code given below
<table border="2" _______=10>
<tr> <th>Employee Name</th>
<th>Department</th> </tr>
<tr> <td>Jack</td>
<td>LKM</td> </tr>
<tr> <td>Ace</td><td>Delivery</td> </tr>
</table>
Identify the appropriate option to be placed in the spaceso that for each cell, there will be a space
between the cell border and its respective content Choose most appropriate option.

Select one:
a. cellpadding
b. colspan
c. cellspacing
d. colspace
Feedback

The correct answer is: cellpadding

Question 44
Correct
Mark 1 out of 1

Flag question

Question text
What would be the Output of the below java script Code?
<html> <body>
<script>
var x = 5; var d = (x != "5");
document.write(d +"--");
d = (x === "5"); document.write(d);
</script> </body>
</html>
Choose most appropriate option.

Select one:
a. true--false
MARVELS QUIZ MCQs1

b. false--false
c. true--true
d. false--true
Feedback

The correct answer is: false--false

Question 45
Incorrect
Mark 0 out of 1

Flag question

Question text
Refer the code below:
<table border="2">
<tr> <th colspan="3"> Employee Details</th></tr>
<tr> <th>Employee Name</th> <th>Department</th> </tr>
<tr> <td>Jack</td> <td>LKM</td> </tr>
<tr> <td>Ace</td><td rowspan="2">Delivery</td> </tr>
<tr> <td>Justin</td> </tr>
</table>
How many cells will be displayed when the page is displayed on the browser? Choose most
appropriate option.

Select one:
a. 8
b. 10
c. 7
d. 9
Feedback

The correct answer is: 8

Question 46
Correct
Mark 1 out of 1

Flag question

Question text
MARVELS QUIZ MCQs1
In HTML, Which of the following is used to merge columns in a table? Choose most appropriate
option.
Select one:
a. colspan
b. columns-span
c. cspan
d. columnspan
Feedback

The correct answer is: colspan

Question 47
Incorrect
Mark 0 out of 1

Flag question

Question text

What would be the color of the text "Bengaluru" and "India" while executing the below html and
css code? Assume that "Black" is the default color if there is no style applied.
<html>
<head>
<style>
p{ color:red; } .c1{ color:green; }
</style>
</head>
<body>
<p> Bengaluru </p> <p class="c1"> India </p>
</body>
</html>
Choose most appropriate option.

Select one:
a. Bengaluru - Red,India - Red
b. Bengaluru - Red,India - Black
c. Bengaluru - Red,India - Green
d. Bengaluru - Black,India - Black
Feedback
The correct answer is: Bengaluru - Red,India - Green

Question 48
Correct
Mark 1 out of 1
MARVELS QUIZ MCQs1

Flag question

Question text
What would be the output of the Javascript code given below?

<html>
<body>
<script>
var num1=100;
function test(){
num2=200;
var num1=300;
num1=num2;
}
test();
document.write(num1 +"-"+num2);
</script>
</body>
</html>
Select one:
a. 300-200
b. 300-100
c. 100-200
d. 200-200
Feedback
Your answer is correct.
The correct answer is: 100-200

Question 49
Incorrect
Mark 0 out of 1

Flag question
MARVELS QUIZ MCQs1

Question text
How many cells will be created after executing the below HTML code?

<html>
<body>
<table border="1">
<tr> <td colspan="3"> Jack </td> </tr>
<tr> <td colspan="2"> Tom </td> <td> Mark </td> </tr>
<tr> <td rowspan="2"> John</td> <td> James</td> <td>Mary</td> </tr>
<tr> <td> Helen</td> <td> Sam </td> </tr>
</table>
</body>
</html>
Select one:
a. 10
b. 8
c. 9
d. 7
Feedback
Your answer is incorrect.
The correct answer is: 8

Question 50
Incorrect
Mark 0 out of 1

Flag question

Question text
Consider the HTML code given below.

<html>
<head>
<script>
var key=10;
function add(){
MARVELS QUIZ MCQs1
var key=20;
window.key=key+1;
document.write(key);
document.write(" ");
print();
}
function print(){
document.write(key);
}
</script>
</head>
<body>
<form>
<input type="submit" onclick="add()" />
</form>
</body>
</html>

What will be displayed after executing the above code?


Choose the most appropriate option.
Select one:
a. 11 11
b. 11 10
c. 20 21
d. 21 21
Feedback
Your answer is incorrect.
The correct answer is: 20 21
MARVELS QUIZ MCQS2

Question 1
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text
A class Student and its subclass Hostler both have a method payFees() as part of their class
definition. What will the following code do?
Hostler h = new Hostler() ;
h.payFees();

Select one:
a. The payFees() method defined in Hostler will be called.
b. The payFees() method defined in Student will be called.
c. Overloading will be used to pick which payFees() is called.
d. The compiler will complain that payFees() has been defined twice.
Feedback

The correct answer is: The payFees() method defined in Hostler will be called.

Question 2
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Method Overriding shows static polymorphism.


Select one:
True
False
Feedback

The correct answer is 'False'.

Question 3
Incorrect
MARVELS QUIZ MCQS2
Mark 0.00 out of 1.00

Flag question

Question text

Nullpointer Exception and Logical Exception are not Exceptions in Java.


Select one:
True
False
Feedback

The correct answer is 'True'.

Question 4
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text
Predict the output:
public class Topper
{
public static void check() {
this.display();
}
public static void display() {
System.out.println("Welcome to Java");
}
public static void main(String args []) {
check();
}
}

Select one:
a. Welcome to Java
b. An exception is raised stating that the variable this can only be used within an instance
c. Runtime error
d. Compile time error
Feedback
MARVELS QUIZ MCQS2
The correct answer is: Compile time error

Question 5
Correct
Mark 1.00 out of 1.00

Flag question

Question text
What is the correct way for a method to indicate that it expects the caller to handle an Exception?
Assuming that the method contains code which may raise an Exception (but not a
RuntimeException).
Select one:
a. throws Exception
b. new Exception
c. Don't need to specify anything
d. throw Exception
Feedback
The correct answer is: throws Exception

Question 6
Correct
Mark 1.00 out of 1.00

Flag question

Question text
What will happen if you attempt to compile and run the following code?
Integer i=new Integer(15);
Long l=new Long (10);
System.out.println(i + l);
int check=1;
System.out.println(check + i);

Select one:
a. 25
16
b. 15
16
MARVELS QUIZ MCQS2

c. 25
26
d. Error: Can't convert java lang Integer
Feedback
The correct answer is: 25
16

Question 7
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Predict the output:
int arr[];
int i = 0;
arr = new int[5];
while (i < 5)
{
arr[i] = 10;
i = i + 1;
}
System.out.println(arr[4]);

Select one:
a. unknown
b. 3
c. 0
d. 10
Feedback

The correct answer is: 10

Question 8
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text
MARVELS QUIZ MCQS2
String str= new String("Hello World");

Which of the following calls are valid?


(A) str.trim()
(B) str.replace('o', 'A')
(C) str.substring(3)
(D) str.toUppercase()
(E) str.setCharAt(1,'A')
(F) str.append("xyz")

Select one:
a. (A), (B), (C) & (D)
b. (A), (B) & (C)
c. (A), (C), (D) & (E)
d. (C), (D) & (E)
e. (D) & (E)
Feedback
The correct answer is: (A), (B) & (C)

Question 9
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Predict the output:
interface X
{
void display();
}
interface Y extends X
{
void print();
}

class Employee implements Y


{
public void display() {
System.out.print("John ");
}
public void print() {
System.out.print("Mathew");
}
}

public class TestMain {

public static void main(String[] args) {


MARVELS QUIZ MCQS2

Employee e = new Employee();


e.display();
e.print();
}
}

Select one:
a. John Mathew
b. John
c. Complie Time Error
d. Mathew
Feedback

The correct answer is: John Mathew

Question 10
Correct
Mark 1.00 out of 1.00

Flag question

Question text

How do we change the state of an object ?


Select one:
a. Using object's property
b. Using Object's default methods
c. Using object's behavior
d. Using class name
Feedback

The correct answer is: Using object's behavior

Question 11
Correct
Mark 1.00 out of 1.00

Flag question

Question text
MARVELS QUIZ MCQS2
What is the term used to define the values that are common across all instances of a class ?
Select one:
a. Attribute
b. Interface
c. Property
d. Static
Feedback

The correct answer is: Static

Question 12
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Select the principle that best describes the given scenario. The airline ticket booking clerk
manages the available seats, dates, passenger information, etc while the mehanic maintains
information like flight perfomance, fuel consumption, service intervals, etc
Select one:
a. Encapsulation
b. Polymorphism
c. Abstraction
d. Typing
Feedback

The correct answer is: Abstraction

Question 13
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text
Select the true statements about Use Case diagram ?
Select one or more:
MARVELS QUIZ MCQS2

a. Captures dynamic aspects of the system


b. Captures attributes and methods
c. Depicts the boundry of the system
d. Captures users of the system
Feedback
The correct answers are: Depicts the boundry of the system, Captures users of the system,
Captures dynamic aspects of the system

Question 14
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

Select the benefits of OOP ?


Select one or more:
a. Ease of design
b. Testing
c. code deployment
d. Resuability
Feedback

The correct answers are: Ease of design, Resuability

Question 15
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text
Select the multiplicity between passenger and train reservation ticket? What is the multiplicity of
passenger ?
Select one:
a. 1..*
b. 1
MARVELS QUIZ MCQS2

c. 0..*
d. 0..1
Feedback
The correct answer is: 1

Question 16
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text
The properties of good program must have_____
Select one:
a. Modules tightly connected
b.
Fault Prevention and fault tolerance
c.
Poor Design for change
d. Component dependence
Feedback
Your answer is incorrect.
The correct answer is:
Fault Prevention and fault tolerance

Question 17
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A program is said to be_______, if it optimizes the amount of memory and processing time.
Select one:
a. robust
b. modular
MARVELS QUIZ MCQS2

c. efficient
d. documented
Feedback
The correct answer is: efficient

Question 18
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Steve is learning to draw a flowchart to calculate the volume of a cuboid. Which of the options
given below would fit into the process section of the flow chart?
Select one:
a. Volume=l*b*h
b. display the volume of the cuboid
c. Read the value of l,b,h(l represents the length, b represents the breadth, h represents the
height)
d. check if l,b,h have positive value
Feedback
Your answer is correct.
The correct answer is: Volume=l*b*h

Question 19
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Carefully read the question and answer accordingly. Which data structure is said to be linear
data structure?
Select one:
a. Graphs
b. Arrays
MARVELS QUIZ MCQS2

c. None of the listed options


d. Tree
Feedback
The correct answer is: Arrays

Question 20
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Carefully read the question and answer accordingly. What operation is processed for each
element in the list
Select one:
a. Sorting
b. Traversal
c. Merging
d. Inserting
Feedback

The correct answer is: Traversal

Question 21
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Which algorithm is the best sorting method in-place with no quadratic worst-case scenarios?
Select one:
a. Bubble Sort
b. Heap Sort
c. Quick Sort
d. Selection Sort
Feedback
MARVELS QUIZ MCQS2
The correct answer is: Heap Sort

Question 22
Correct
Mark 1.00 out of 1.00

Flag question

Question text
What is the time complexity of below function?
void cal_fun(int m,int a[])
{
int i=0,j=0;
for(;i<m;++i)
while(j<m && a[i] < a[j])
j++;
<="" a[j])="" j++;="" }="" pre="" style="box-sizing: border-box;">
}
Select one:
a. O(n2)
b. O(1)
c. O(nlogn)
d. O(n)
Feedback

The correct answer is: O(n)

Question 23
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

Carefully read the question and answer accordingly. Which of the following options are correct?
Select one or more:
a. A tree which does not have any node other than root node has depth of zero.
MARVELS QUIZ MCQS2

b. None of the options.


c. A tree which does not have any node other than root node is called a null tree
d. A tree with n nodes has exactly n branches or degree.
Feedback
The correct answers are: A tree which does not have any node other than root node is called a
null tree, A tree which does not have any node other than root node has depth of zero.

Question 24
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

State true or false.


Configuration management is important only during the coding phase
Select one:
True
False
Feedback

The correct answer is 'False'.

Question 25
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

Choose the correct option where waterfall model is not suited.


Select one:
a. Complex Projects (that has more number of functionalities)
b. Projects with stable requirements
c. Simple Projects (that has less number of functionalities)
d. Projects with frequent changes
Feedback
MARVELS QUIZ MCQS2
The correct answer is: Projects with frequent changes

Question 26
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text
Go-Will department store wants to automate few of its functionalities.From the below options
identify the functional requirements of Go-Will department store
Select one or more:
a. Response for each button click should be within 3 seconds
b. System should be up and running 24/7
c. Generate Bill for the purchased Items
d. Add Product Details
Feedback

The correct answers are: Generate Bill for the purchased Items, Add Product Details

Question 27
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text
A website for Flight Booking was developed and given to the testing team for testing. It has
various fields to enter the data, out of which one of the input field will take the birth year from the
user ranging from 1980 to 2060. The boundary values for testing this field are?
Select one:
a. 1979,2030,1980,2060,2061
b. 1959, 1960, 1994, 1995
c. 0,2000,2050,2020,1981
d. 1979,1980,2060,2061
e. 0, 1959, 1960, 1961, 1994, 1995, 1996
Feedback
The correct answer is: 1979,1980,2060,2061
MARVELS QUIZ MCQS2

Question 28
Correct
Mark 1.00 out of 1.00

Flag question

Question text
State true or false. Black box testers can proceed with generating the test cases immediately
after the SRS is freezed in the analysis phase
Select one:
True
False
Feedback

The correct answer is 'True'.

Question 29
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text
Predict the output of the below SQL Statement
SELECT branch_name, COUNT(DISTINCT customer_name) FROM Account GROUP BY
branch_id;
Select one:
a. The query is syntactically wrong
b. The query contains one or more wrongly named clauses.
c. The query produces correct answer
d. The query produces wrong answer
Feedback

The correct answer is: The query is syntactically wrong

Question 30
Correct
Mark 1.00 out of 1.00
MARVELS QUIZ MCQS2

Flag question

Question text
The EMPLOYEE table has following structure
EMPID NUMBER (5), ENAME VARCHAR2 (50), DEPT VARCHAR2 (15)
Which of the below options would display all employee name from employee table who are
working in the same department as “Rajesh Ahuja”.
Select one:
a. Select EName from employee where dept = (Select dept from employee where Ename =
‘Rajesh Ahuja’);
b. Select * from employee where dept = (Select * from employee where Ename = ‘Rajesh
Ahuja’);
c. Select * from employee where dept = (Select dept from employee where Ename = ‘Rajesh
Ahuja’);
d. Select EName from employee where dept = (Select * from employee where Ename = ‘Rajesh
Ahuja’);
Feedback
The correct answer is: Select EName from employee where dept = (Select dept from employee
where Ename = ‘Rajesh Ahuja’);

Question 31
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text
In SQL, which command is used to add new rows to a table?
Select one:
a. Append
b. Insert
c. Add row
d. Alter Table
Feedback
The correct answer is: Insert
MARVELS QUIZ MCQS2

Question 32
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text
The following SQL statement exhibits which type of join?
Select customer.customer_id, customer_ name, order_id from customer, order where customer.
Customer_id = order. Customer_id;
Select one:
a. Natural join
b. Outer join
c. Cartesian join
d. Equi-join
Feedback
The correct answer is: Equi-join

Question 33
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

What options can be avoided by storing data in centralized repository?


Select one or more:
a. Increase data duplication
b. Replication of data in multiple files
c. Reduce data redundancy
d. Storing data in multiple files
Feedback

The correct answers are: Reduce data redundancy, Storing data in multiple files

Question 34
Correct
MARVELS QUIZ MCQS2
Mark 1.00 out of 1.00

Flag question

Question text
In order to grant ‘SELECT’ on Employee table to User1, which one of following statement is
correct?
Select one:
a. Grant select from Employee to User1;
b. Grant select to Employee on User1;
c. Grant select on Employee to User1;
d. Grant select to Employee to User1;
Feedback
The correct answer is: Grant select on Employee to User1;

Question 35
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Which of the following should be used to print lines containing ‘manager’ in emp.lst?
Select one:
a. awk ‘manager { print }’ emp.lst
b. awk ‘/manager { print }’ emp.lst
c. awk ‘/manager/ { print } emp.lst
d. awk ‘/manager/ { print }’ emp.lst
Feedback
The correct answer is: awk ‘/manager/ { print }’ emp.lst

Question 36
Incorrect
Mark 0.00 out of 1.00
MARVELS QUIZ MCQS2

Flag question

Question text
Which command in UNIX displays the list of all the users who have logged into the Unix server?

Select one:
a. Who am i
b. List users
c. users
d. Who
Feedback
The correct answer is: Who

Question 37
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Which of the following is not a feature of UNIX?


Select one:
a. Multiuser
b. User friendly
c. Multitasking
d. Portability
Feedback
The correct answer is: User friendly

Question 38
Correct
Mark 1.00 out of 1.00
MARVELS QUIZ MCQS2

Flag question

Question text
What does the below Unix command accomplish?
$ vi sample
Select one:
a. open file if it exists else creates a new file
b. open file named sample
c. edit file named sample
d. delete a file named sample
Feedback

The correct answer is: open file if it exists else creates a new file

Question 39
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text
What does the below Unix command accomplish?
$ sed 's/ABC/ZYX/' file.txt
Select one:
a. Only matches and displays the occurrence of the pattern
b. Replaces first occurrence in every line ‘ABC’ with 'ZYX'
c. Replaces all occurrences 'ABC' with 'ZYX'
d. Replaces only first occurrence of ‘ABC’ with 'ZYX'
Feedback
The correct answer is: Replaces first occurrence in every line ‘ABC’ with 'ZYX'

Question 40
Correct
Mark 1.00 out of 1.00
MARVELS QUIZ MCQS2

Flag question

Question text
Which of the following layer acts as an interface between user and kernel ?

Select one:
a. Hardware
b. System Calls
c. Kernel
d. Shell
Feedback

The correct answer is: Shell

Question 41
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text
Identify the selector that should be used if we want to select elements with no child elements

Select one:
a. :leaf-element
b. :no-siblings
c. :empty
d. :nobranch
Feedback
The correct answer is: :empty

Question 42
Incorrect
Mark 0.00 out of 1.00
MARVELS QUIZ MCQS2

Flag question

Question text
In CSS, styles are written under _____ tag which is the child of _____ tag
Select one or more:
a. head
b. body
c. script
d. style
Feedback
The correct answers are: head, style

Question 43
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Javascript is included in an HTML file with the help of _____ tag


Select one:
a. script
b. body
c. style
d. head
Feedback

The correct answer is: script

Question 44
Correct
Mark 1.00 out of 1.00
MARVELS QUIZ MCQS2

Flag question

Question text
In CSS to define style for a unique element then which css selector should be used?
Select one:
a. id
b. name
c. text
d. class
Feedback
The correct answer is: id

Question 45
Correct
Mark 1.00 out of 1.00

Flag question

Question text

What is the CSS code to remove an underline from all hyperlinks


Select one:
a. a {text-decoration:none;}
b. a {text-style: no-underline;}
c. a {text: no-underline;}
d. a {text-decoration: no-underline;}
Feedback

The correct answer is: a {text-decoration:none;}

Question 46
Incorrect
Mark 0.00 out of 1.00
MARVELS QUIZ MCQS2

Flag question

Question text
What would be the code to set all elements under the tag to green
Select one:
a. $(“p”).layout(“background-color”,”green”);
b. $(“p”).manipulate(“background-color”,”green”);
c. $(“p”).style(“background-color”,”green”);
d. $(“p”).css(“background-color”,”green”);
Feedback
The correct answer is: $(“p”).css(“background-color”,”green”);

Question 47
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Find out the well-formed xml file


Select one:
a. <book category="Web">
<bname>XML Tutorials</bname>
<pages>100</pages>
<price>$300.00</price>
</book>
b. <book category="Web">
<bname>XML Tutorials</bname>
<pages>100</pages>
<price>$300.00</Price>
</book>
c. <book category=Web>
<bname>XML Tutorials</bname>
<pages>100</pages>
<price>$300.00</price>
</book>
d. <book category="Web">
<bname>XML Tutorials</BNAME>
MARVELS QUIZ MCQS2
<pages>100</pages>
<price>$300.00<price>
<book>
Feedback
The correct answer is: <book category="Web">
<bname>XML Tutorials</bname>
<pages>100</pages>
<price>$300.00</price>
</book>

Question 48
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

Which is the correct way to define an empty book element

Select one:
a. <book>empty</book>
b. <book>NULL</book>
c. <book>
d. <book></book>
Feedback

The correct answer is: <book></book>

Question 49
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Which of the following fragments of XML are well-formed


Select one:
a. <?xml encoding="Master"?>
b. <?xml?>
MARVELS QUIZ MCQS2

c. <?xml encoding="JIS" version="File1"?>


d. <?xml version="1.0"?>
Feedback
The correct answer is: <?xml version="1.0"?>

Question 50
Correct
Mark 1.00 out of 1.00

Flag question

Question text
What is the correct way of declaring an XML namespace?
Select one:
a. xmlns:prefix,"URI"
b. xmlns:prefix="URI"
c. xmlns:prefix=URI
d. xmlns-prefix="URI"
Feedback

The correct answer is: xmlns:prefix="URI"


 Dashboard / 2020 / Mock / Marvels Mock 1 - Quiz / Quiz / Quiz

Started on Saturday, 18 April 2020, 4:34 PM


State Finished
Completed on Saturday, 18 April 2020, 5:54 PM
Time taken 1 hour 20 mins
Grade 26 out of 50 (51%)

Question The employee tables contains EmployeeId,EmployeeName and DeptCode Columns. Which is the CORRECT SQL query to
1 display the EmployeeId and EmployeeName of employees who are working in DeptCode 10 OR 20?
Incorrect (i) SELECT EmployeeId,EmployeeName FROM Employee WHERE DeptCode IN (10,20);
Mark 0 out of 1 (ii) SELECT EmployeeId,EmployeeName FROM Employee WHERE DeptCode = 10 OR DeptCode = 20;
Choose most appropriate option.

Select one:
a. Only (i)

b. Only (ii) 

c. Neither (i) nor (ii)

d. Both (i) and (ii)

The correct answer is: Both (i) and (ii)

Question
Which of the following statement(s) is/are TRUE?
2 (i) In a non-correlated(independent) subquery, the subquery is always executed only once.
Correct (ii) In a non-correlated(independent) subquery, the inner query (sub query) references the column from the outer query (main
Mark 1 out of 1 query).
Choose most appropriate option

Select one:
a. Only (ii)

b. Only (i) 

c. Both (i) and (ii)

d. Neither (i) nor (ii)

The correct answer is: Only (i)


Question Consider the table Student(StudentId, StudentName, Email, PercentageOfMarks). Which is the CORRECT query to display the
3 details in the ascending order (lowest to highest) of PercentageOfMarks and in the descending order of StudentId in case
PercentageOfMarks is the same. Choose most appropriate option
Correct

Mark 1 out of 1
Select one:
a. SELECT StudentId, StudentName, Email, PercentageOfmarks FROM Student ORDER BY PercentageOfMarks DESC,
StudentId;

b. SELECT StudentId, StudentName, Email, PercentageOfmarks FROM Student ORDER BY StudentId DESC,
PercentageOfMarks;

c. SELECT StudentId, StudentName, Email, PercentageOfmarks FROM Student ORDER BY PercentageOfMarks DESC,
StudentId DESC;

d. SELECT StudentId, StudentName, Email, PercentageOfmarks FROM Student ORDER BY PercentageOfMarks, StudentId
DESC; 

The correct answer is: SELECT StudentId, StudentName, Email, PercentageOfmarks FROM Student ORDER BY
PercentageOfMarks, StudentId DESC;

Question Which is the CORRECT SQL Query to display names of employees which has only 3 letters that starts with 'A' and ends with 'e'?
4 Choose most appropriate option.

Correct
Select one:
Mark 1 out of 1
a. SELECT EmployeeName FROM Employee WHERE EmployeeName LIKE '__e';

b. SELECT EmployeeName FROM Employee WHERE EmployeeName LIKE 'A_e'; 

c. SELECT EmployeeName FROM Employee WHERE EmployeeName LIKE 'A%e';

d. SELECT EmployeeName FROM Employee WHERE EmployeeName = 'A_e';

The correct answer is: SELECT EmployeeName FROM Employee WHERE EmployeeName LIKE 'A_e';

Question Which of the following SQL commands is used to remove table "EMPLOYEE" present in the database? Choose most
5 appropriate option.

Correct
Select one:
Mark 1 out of 1
a. TRUNCATE TABLE EMPLOYEE;

b. DELETE TABLE EMPLOYEE;

c. DROP TABLE EMPLOYEE; 

d. REMOVE TABLE EMPLOYEE;

The correct answer is: DROP TABLE EMPLOYEE;


Question Consider the Tables given below: 
6                         Product(productId,productName) 
Incorrect
                        ProductOrder(orderId,productId,quantity) 
Mark 0 out of 1
                                         productId column of ProductOrder is a Foreign key referring to Product Table 
Identify the appropriate SQL statement which will fetch the productId,productName and orderId for all the Products ordered.  If
no orders exist for a product, display those product id and productname with value for  orderid column as "Yet to be Ordered". 

Choose appropriate query for the above requirement.

Select one:
a. SELECT p1.productId,p1.productName,NVL(p2.orderId,"Yet to be Ordered") FROM Product p1 INNER JOIN ProductOrder
p2 ON p1.productId=p2.productId; 

b. SELECT p1.productId,p1.productName,NVL(p2.orderId,"Yet to be Ordered") FROM Product p1 RIGHT OUTER JOIN


ProductOrder p2 ON p1.productId=p2.productId;

c. SELECT p1.productId,p1.productName,NVL("Yet to be Ordered",p2.orderId) FROM Product p1 LEFT OUTER JOIN


ProductOrder p2 ON p1.productId=p2.productId;

d. SELECT p1.productId,p1.productName,NVL(p2.orderId,"Yet to be Ordered") FROM Product p1 LEFT OUTER JOIN


ProductOrder p2 ON p1.productId=p2.productId;

The correct answer is: SELECT p1.productId,p1.productName,NVL(p2.orderId,"Yet to be Ordered") FROM Product p1 LEFT
OUTER JOIN ProductOrder p2 ON p1.productId=p2.productId;

Question Consider table Students(sid NUMBER(3),sname VARCHAR2(10),scontact NUMBER(10) ) is already created in the database.
7  It is required to change the data type of the column "scontact" to VARCHAR2(15). 
Correct
Which of the following is Correct for the above requirement? 
Mark 1 out of 1
Note: sid column is primary key. Choose most appropriate option.

Select one:
a. It is not possible to change the data type of a column

b. Data type can be changed only for primary key column

c. To change the data type of a column, it is important to ensure that the corresponding column is not having data for any
of the record 

d. There are no criteria to be followed. We can change the datatype of the column irrespective of the data

The correct answer is: To change the data type of a column, it is important to ensure that the corresponding column is not
having data for any of the record

Question
State True/False?
8 The names of the foreign key eld and the referenced eld(in parent table) may be same or different, but must have the same
Incorrect
data type.
Mark 0 out of 1

Select one:
a. True

b. False 

The correct answer is: True


Question Consider the table Products(pid,pname,pcost). Identify the appropriate SQL statement to rename the table to ProductsInfo .
9 Choose most appropriate option.

Correct
Select one:
Mark 1 out of 1
a. ALTER TABLE RENAME Products TO ProductsInfo;

b. ALTER TABLE Products RENAME ProductsInfo;

c. ALTER TABLE Products RENAME TO ProductsInfo; 

d. ALTER TABLE Products UPDATE TO ProductsInfo;

The correct answer is: ALTER TABLE Products RENAME TO ProductsInfo;

Question Consider the table employee(empname,salary) with some records. Identify a correct SQL statement to retrieve unique
10 combination of empname and salary. Choose most appropriate option.

Incorrect
Select one:
Mark 0 out of 1
a. select empname,distinct salary from employee;

b. select distinct empname,salary from employee;

c. select empname,salary from employee;

d. select distinct empname,distinct salary from employee; 

The correct answer is: select distinct empname,salary from employee;

Question Consider table Department(deptId,deptName). Which of the following query is used to display the department details whose
11 deptname has second letter as 'a' and second last letter as 'e'? Choose most appropriate option.

Correct
Select one:
Mark 1 out of 1
a. SELECT * FROM department WHERE deptname LIKE "%a%e_";

b. SELECT * FROM department WHERE deptname LIKE "_a%e_"; 

c. SELECT * FROM department WHERE deptname LIKE "a%e%";

d. SELECT * FROM department WHERE deptname LIKE "a%e_";

The correct answer is: SELECT * FROM department WHERE deptname LIKE "_a%e_";

Question Consider table Customer(cid NUMBER(4), cname VARCHAR2(10)) has some records. Identify the appropriate ALTER
12 statements (choose 2)which executes on table Customer [ Note: There is no null value for any column]

Incorrect
Select one or more:
Mark 0 out of 1
a. ALTER TABLE Customer MODIFY cname VARCHAR2(15);

b. ALTER TABLE Customer MODIFY cid NUMBER(2);

c. ALTER TABLE Customer ADD dob DATE DEFAULT '30-Jun-1995';

d. ALTER TABLE Customer ADD CONSTRAINT cust_name NOT NULL(cname); 

The correct answers are: ALTER TABLE Customer ADD dob DATE DEFAULT '30-Jun-1995';, ALTER TABLE Customer MODIFY
cname VARCHAR2(15);
Question Assume that table Asset(assetId number(2)) is created and 2 records are already inserted and saved.
13
COMMIT;
Incorrect
DELETE FROM ASSET;
Mark 0 out of 1
ROLLBACK;
INSERT INTO ASSET VALUES(5);
COMMIT;

What would be the output of the below SQL statement after executing the above statements sequentially.

SELECT COUNT(*) FROM Asset;

Select one:
a. 0

b. 2 

c. 3

d. 1

Your answer is incorrect.

The correct answer is: 3

Question Consider a table with the name Project is created using the SQL statement given below
14
CREATE TABLE Project(
Partially correct
projectid VARCHAR2(10) CONSTRAINT pkey PRIMARY KEY,
Mark 1 out of 1
projectname VARCHAR2(10) CONSTRAINT pnull NOT NULL,
employeecount NUMBER(2) DEFAULT 0);

Which of the following statements insert record successfully to the Project table [Choose 2]

Select one or more:


a. INSERT INTO project(projectid,projectname) VALUES('P2','Finance'); 

b. INSERT INTO project VALUES('P1','Finance',20);

c. INSERT INTO project VALUES('P1','Finance';)

d. INSERT INTO project(projectid,employeecount) VALUES('P3',10);

Your answer is partially correct.

You have correctly selected 1.


The correct answers are: INSERT INTO project VALUES('P1','Finance',20);, INSERT INTO project(projectid,projectname)
VALUES('P2','Finance');

Question Identify the CORRECT SQL statement to create a Account table with composite primary key (AccountNumber, CustomerId).
15 Choose most appropriate option

Correct
Select one:
Mark 1 out of 1
a. CREATE TABLE Account (AccountNumber Number(5), CustomerId Number(10), OpeningDate Date, Balance
Number(10,2), CONSTRAINT Acc_Pkey PRIMARY KEY (AccountNumber,CustomerId)); 

b. CREATE TABLE Account (AccountNumber Number(5), CustomerId Number(10) CONSTRAINT Acc_Pkey2 PRIMARY KEY
(AccountNumber,CustomerId), OpeningDate Date, Balance Number(10,2));

c. CREATE TABLE Account (AccountNumber Number(5) CONSTRAINT Acc_Pkey1 PRIMARY KEY, CustomerId Number(10)
CONSTRAINT Acc_Pkey2 PRIMARY KEY, OpeningDate Date, Balance Number(10,2));

d. CREATE TABLE Account (AccountNumber Number(5), CustomerId Number(10), OpeningDate Date, Balance
Number(10,2), CONSTRAINT Acc_Pkey COMPOSITE PRIMARY KEY (AccountNumber,CustomerId));

Your answer is correct.

The correct answer is: CREATE TABLE Account (AccountNumber Number(5), CustomerId Number(10), OpeningDate Date,
Balance Number(10,2), CONSTRAINT Acc_Pkey PRIMARY KEY (AccountNumber,CustomerId));
Question If Employee class is created inside com.test package, what could be the rst line in class? Choose most appropriate option.
16
Select one:
Correct
a. packages com.test
Mark 1 out of 1

b. class Employee{}

c. package com.test.Employee

d. package com.test 

The correct answer is: package com.test

Question Consider the Java code given below. How many times "Accenture" will be printed when the code is executed?
17 public class Tester
Incorrect {
public static void main(String[] args)
Mark 0 out of 1
{
for(int i=0; i <5; i++)
{
System.out.println("Accenture");
i++;
}
}
}

Choose the most appropriate option.

Select one:
a. 2 times

b. 4 times 

c. 1 time

d. 3 times

The correct answer is: 3 times


Question What will be the output of the following Java code?
18 public class Employee
Incorrect {
private static int count; static
Mark 0 out of 1
{
Employee.count = 101;
}
public Employee()
{
Employee.count = 201;
}
public static int getCount()
{
return Employee.count;
}
}
public class ApplicationTester
{
public static void main(String[] args)
{
Employee emp = new Employee();
System.out.println(emp.getCount());
}
}

Choose the most appropriate option.

Select one:
a. null

b. 101 

c. 0

d. 201

The correct answer is: 201

Question What will be the output of the following Java code?


19 public class ApplicationTester
Incorrect {
public static void main(String[] args)
Mark 0 out of 1
{
int i;
for(i = 1; i <=3; i++);
{
System.out.println(i);
}
System.out.println(i);
}
}

Choose the most appropriate option.

Select one:
a. 1 to 3 will be displayed on the console 

b. 1 to 4 will be displayed on the console

c. 4 will be displayed twice on the console

d. 3 will be displayed twice on the console

The correct answer is: 4 will be displayed twice on the console


Question What will be the output of the following Java code?
20 class StringSample
Incorrect {
public StringSample(String string)
Mark 0 out of 1
{
System.out.println("The string is " + string);
}
}
public class ConstructorTester1
{
public static void main(String[] args)
{
StringSample stringSample = new StringSample();
StringSample stringSample1 = new StringSample("Test String");
}
}

Choose the most appropriate option.

Select one:
a. The string is Test String 

b. Compilation Error: The constructor StringSample() is unde ned

c. The string is null The string is Test String

d. The string is null

The correct answer is: Compilation Error: The constructor StringSample() is unde ned

Question Consider the Java code given below. How many times ";Hello "; will be printed when the code is executed?
21 public class ApplicationTester
Correct {
public static void main(String[] args)
Mark 1 out of 1
{
int i = 0;
do
{
System.out.println("Hello");
i++;
} while(i <= 1);
}
}

Choose the most appropriate option.

Select one:
a. 3 times

b. 1 time

c. Nothing will be printed

d. 2 times 

The correct answer is: 2 times


Question Identify the appropriate relationship between the classes House and Room. Assume that getter and setter methods for all
22 instance variables are implemented

Incorrect class Room


{
Mark 0 out of 1
private int length;
private float width;
}
class House
{
private float area;
private Room room;
public House()
{
room=new Room();
}
}

Choose the most appropriate option

Select one:
a. Composition

b. Aggregation

c. No relationship exists between class House and class Room 

d. Specialization

The correct answer is: Composition

Question
23 class Test
{
Incorrect
static
Mark 0 out of 1 {
System.out.println("A");
}
}
public class Demo
{
static
{
System.out.println("B");
}
public static void main(String[] args)
{
Test t=new Test();
}
static
{
System.out.println("D");
}
}

Choose the most appropriate option.

Select one:
a. A D B

b. B D A

c. A B D 

d. B A D

The correct answer is: B D A


Question What will be the output of the following Java code?
24 public class MyClass
Incorrect {
private static int count;
Mark 0 out of 1
static
{
MyClass.count = 100;
//Line-1
int count = 100;
//Line-2
}
public MyClass()
{
count++ ;
}
public static int getCount()
{
return count;
}
}
public class StaticTester
{
public static void main(String[] args)
{
MyClass ref1 = new MyClass();
MyClass ref2 = new MyClass();
System.out.println(ref1.getCount());
}
}

Choose the most appropriate option.

Select one:
a. Compilation error at Line-1: Invalid variable reference 'MyClass.count'

b. 102

c. 2

d. Compilation error at Line-2: Duplicate variable 'count' 

The correct answer is: 102


Question Predict the output of the following Java code.
25 public class Customer
Incorrect {
public void getCustomer(String customer_name)
Mark 0 out of 1
{
System.out.println("Customer name is : "+customer_name);
}
public void getCustomer(int customerId, String customer_location)
{
System.out.println("Customer location : "+customer_location+" & Customer Id : "+customerId);
}
public void getCustomer(int customerId, float reward_points)
{
System.out.println("Customer Id : "+customerId+" & reward points till date is :"+reward_points);
}
public static void main(String[] args)
{
Customer c = new Customer();
c.getCustomer("Smith");
c.getCustomer(1232,560.0f);
c.getCustomer(1232, "Florida");
}
}

Choose the most appropriate option.

Select one:
a. Customer name is : Smith 
Customer Id : 1232 & reward points till date is :560.0 
Customer location : Florida & Customer Id : 1232

b. Customer name is : Smith


Customer location : Florida & Customer Id : NULL
Customer Id : NULL & reward points till date is :560

c. Compilation Error. The method getCustomer(int, String) in the type Customer is not applicable for the arguments (int,
oat) 

d. Customer name is : Smith 


Customer location : Florida reward points till date is :560 
Customer location : Florida & Customer Id : 1232

The correct answer is: Customer name is : Smith 


Customer Id : 1232 & reward points till date is :560.0 
Customer location : Florida & Customer Id : 1232
Question Analyse the following pseudo code and identify the CORRECT output. 
26 Note: Assume that the input given for Basic is 12000 and Allowances is 3000 
Correct
1. input Basic, Allowances 
Mark 1 out of 1
2. Gross_Salary= Basic + Allowances 
3. if (Gross_Salary > 10000) then 

4. Tax = 0.1 * Gross_Salary 


5. Net_Salary = Gross_Salary - Tax 

6. else 
7. Net_Salary = Gross_Salary 

8. end-if 
9. display Net_Salary 

Choose the most appropriate option.

Select one:
a. 14000

b. 15000

c. 13500 

d. 14985

The correct answer is: 13500

Question Consider the Java code given below. After the execution of the code what will be the content of "array2 "?
27 public class Tester
Incorrect {
public static void main(String[] args)
Mark 0 out of 1
{
int array1[] = {71,12,23,34};
int array2[] = new int[4];
int count = 0;
for (int i = 0; i < array2.length; i++)
{
if(array1[i]%2==0)
{
array2[count]=array1[i];
count++;
}
}
}
}

Choose the most appropriate option.

Select one:
a. 12 34 0 0

b. 0 0 12 34

c. 12 34 

d. 12 0 34 0

The correct answer is: 12 34 0 0


Question What will be the output of the following Java code?
28
Correct public class Visitor
{
Mark 1 out of 1
private static int visitorCount;
public Visitor()
{
visitorCount = 0;
//Line-1
visitorCount++;
}
public static int getVisitorCount()
{
return Visitor.visitorCount;
}
}
public class ApplicationTester
{
public static void main(String[] args)
{
Visitor visitor1 = new Visitor();
Visitor visitor2 = new Visitor();
Visitor visitor3 = new Visitor();
System.out.println(Visitor.getVisitorCount());
}
}

Choose the most appropriate option.

Select one:
a. 1 

b. 3

c. Compilation error at Line-1: cannot refer 'visitorCount' in a non-static context

d. 0

The correct answer is: 1

Question What will be the output of the following Java code?


29 public class Tester
Incorrect {
public static void main(String[] args)
Mark 0 out of 1
{
int array[] ={1,2,4,2,5,2,6};
int pos=-1; int value=2;
int itr;
for ( itr = 0; itr < array.length; itr++)
{
if(array[itr]!=value)
{
continue;
} pos=itr;
}
System.out.println(pos);
}
}

Choose the most appropriate option.

Select one:
a. 6

b. -1

c. 5

d. 1 

The correct answer is: 5


Question What will be the output of the following Java code?
30 public class IfTester
Incorrect {
public static void main(String[] args)
Mark 0 out of 1
{
int number1 = 10, number2;
if(number1 == 10)
{
number2 = 20;
}
if (number1 != 10)
{
number2 = 30;
}
System.out.println("Number2 :"+number2);
}
}

Choose the most appropriate option.

Select one:
a. Number2 :0

b. Number2 :30

c. Compilation Error: The local variable number2 may not have been initialized

d. Number2 :20 

The correct answer is: Compilation Error: The local variable number2 may not have been initialized

Question What will be the output of the following Java code?


31 public class Employee
Incorrect {
private static int employeeCount;
Mark 0 out of 1
public Employee()
{
employeeCount++;
//Line-1
}
public static int getEmployeeCount()
{
return Employee.employeeCount;
}
}
public class StaticTester
{
public static void main(String[] args)
{
Employee emp1 = new Employee();
Employee emp2 = new Employee();
Employee emp3 = new Employee();
System.out.println(Employee.getEmployeeCount());
}
}

Choose the most appropriate option.

Select one:
a. Compilation error at Line-1: Cannot use static member 'employeeCount' in a non-static context 

b. 0

c. 1

d. 3

The correct answer is: 3


Question What is the output expected for the below code ?
32 public class ConstructorTest
Correct {
private ConstructorTest(int w) // line 2
Mark 1 out of 1
{

System.out.println(w);
}
public static ConstructorTest() // line 6
{

System.out.println(10);
}
public static void main(String args[])
{
ConstructorTest obj = new ConstructorTest(50);
}
}

Choose most appropriate option.

Select one:
a. 50

b. 10

c. 10 50

d. Won't compile because of line (6) constructor can't be static 

The correct answer is: Won't compile because of line (6) constructor can't be static

Question What will be the output of the following Java code?


33 class Base
Correct {
protected void getDetails()
Mark 1 out of 1
{
System.out.println("Base method");
}
}
class Derived extends Base
{
private void getDetails()
{
System.out.println("Derived method");
}
}
public class Main
{

public static void main(String[] args)


{
Base obj=new Derived();
obj.getDetails();

}
}

Select one:
a. Prints "Base method"

b. Prints "Dervied method"

c. prints both "Base method" "Derived method"

d. compliation error :weaker access privileges 

The correct answer is: compliation error :weaker access privileges


Question What will be the output of the following Java code?
34 public class Account
Correct {
public void deposite(int amount)
Mark 1 out of 1
{
System.out.println("Account deposited with: " + amount);
}
public void transaction()
{
this.deposite(100);
}
}
public class SavingsAccount extends Account
{
public void deposite(int amount)
{
System.out.println("Savings Account deposited with: " + amount);
}
}
public class ApplicationTester
{
public static void main(String[] args)
{
Account account = new SavingsAccount();
account.transaction();
}
}

Choose the most appropriate option.

Select one:
a. Account deposited with: 100

b. Account deposited with: 0

c. Savings Account deposited with: 0

d. Savings Account deposited with: 100 

The correct answer is: Savings Account deposited with: 100


Question What will be the output of the following Java code?
35 Employee.java public class Employee
Correct {
private double salary;
Mark 1 out of 1
public Employee()
{
this.salary = 10000.0;
}
public static void updateSalary(Employee emp)
{
emp.salary = emp.salary + 10000.0;
//Line-1
}
public double getSalary()
{
return this.salary;
}
}
ApplicationTester .java public class ApplicationTester
{
public static void main(String[] args)
{
Employee emp1 = new Employee();
Employee emp2 = new Employee();
Employee.updateSalary(emp1);
System.out.println(emp1.getSalary() + " " + emp2.getSalary());
}
}

Choose the most appropriate option.

Select one:
a. 10000.0 10000.0

b. 20000.0 10000.0 

c. 0.0 10000.0

d. Compilation error at Line-1: Cannot 'emp.salary' in a static context

The correct answer is: 20000.0 10000.0


Question Given the below code. What is output ?
36 class Currency
Correct {
private String country = "Canada";
Mark 1 out of 1
public String getC()
{
return country;
}
}
class JapeneseYen extends Currency
{
public String getC()
{
return super.country; //Line 12
}
}
public class AustralianDollar extends Currency
{
public String getC(int x)
{
return super.getC();
}
public static void main(String[] args)
{
System.out.print(new JapeneseYen().getC() + " " + new AustralianDollar().getC());
}
}

Choose most appropriate option.

Select one:
a. Canada null

b. null null

c. null Canada

d. Compilation fails due to an error on line 12 ";country is not visible ";. 

e. Canada Canada

The correct answer is: Compilation fails due to an error on line 12 ";country is not visible ";.

Question 'link', 'vlink' and 'alink' are attributes of which HTML tag?
37
Correct
Choose the most appropriate option.
Mark 1 out of 1

Select one:
a. <head>

b. <a>

c. <body> 

d. <img>

Your answer is correct.

The correct answer is: <body>


Question which of the following is block level html tags?
38
Select one:
Correct

Mark 1 out of 1
a. <a>

b. <b>

c. <i>

d. <h6> 

Your answer is correct.

The correct answer is: <h6>

Question Refer the incomplete code given below.


39 <style>
Correct
  # rstname {
Mark 1 out of 1
     background-color: yellow;
     color:red;
 }
</style>
<input type=text <strong>__Blank1__</strong>=' rstname'>
Choose the CORRECT attribute which if replaces '__Blank1__' will apply the CSS to text box.
Choose most appropriate option.

Select one:
a. styleclass

b. class

c. style

d. id 

Your answer is correct.


The correct answer is: id

Question Refer to the below code:


40 <script>
Correct function helloMessage(){
var jsName = //Line1 alert('Hello '+jsName+' !')
Mark 1 out of 1
}
</script>
<form>
Enter First Name : <input type="text" name="firstName" id="first"><br>
<input type="button" value="Click Here!" onclick="helloMessage()">
</form>

Which is the CORRECT code to be inserted at "Line1" to make the JavaScript run properly? Choose most appropriate option

Select one:
a. document.getElementByName(' rst').value;

b. document.getElementById(' rst').value; 

c. document.getElement(' rst').value;

d. document.getElementById. rst.value;

The correct answer is: document.getElementById(' rst').value;


Question What would be the color of the text "Bengaluru" and "India" while executing the below html and css code? Assume that "Black"
41 is the default color if there is no style applied.

Correct <html>
<head>
Mark 1 out of 1
<style>
p{ color:red; } .c1{ color:green; }
</style>
</head>
<body>
<p> Bengaluru </p> <p class="c1"> India </p>
</body>
</html>

Choose most appropriate option.

Select one:
a. Bengaluru - Black,India - Black

b. Bengaluru - Red,India - Black

c. Bengaluru - Red,India - Red

d. Bengaluru - Red,India - Green 

The correct answer is: Bengaluru - Red,India - Green

Question Identify the CORRECT HTML code to de ne the state of the hyperlink. The requirement is to display the hyperlink "Click" in RED
42 color if user has already visited "https://portal.accenture.com". Choose most appropriate option.

Incorrect
Select one:
Mark 0 out of 1
a. <html>
<body link="red" >
<a href="https://portal.accenture.com/"> Click </a>
</body>
</html>

b. <html>
 <body>
 <a href="https://portal.accenture.com/" vlink="red"> Click </a>
 </body>
 </html> 

c. <html>
 <body>
 <a href="https://portal.accenture.com/" link="red"> Click </a>
 </body>
 </html>

d. <html>
 <body vlink="red" >
<a href="https://portal.accenture.com/">Click </a>
 </body>
 </html>

The correct answer is: <html>


 <body vlink="red" >
<a href="https://portal.accenture.com/">Click </a>
 </body>
 </html>
Question What would be the Output of the below java script Code?
43 <html> <body>
Incorrect <script>
var x = 5; var d = (x != "5");
Mark 0 out of 1
document.write(d +"--");
d = (x === "5"); document.write(d);
</script> </body>
</html>

Choose most appropriate option.

Select one:
a. true--true

b. false--true

c. false--false

d. true--false 

The correct answer is: false--false

Question Refer the incomplete HTML Code given below


44 <table border="2" _______=10>
Incorrect <tr> <th>Employee Name</th>
<th>Department</th> </tr>
Mark 0 out of 1
<tr> <td>Jack</td>
<td>LKM</td> </tr>
<tr> <td>Ace</td><td>Delivery</td> </tr>
</table>

Identify the appropriate option to be placed in the spaceso that for each cell, there will be a space between the cell border and
its respective content Choose most appropriate option.

Select one:
a. colspace

b. cellpadding

c. colspan 

d. cellspacing

The correct answer is: cellpadding

Question Which of the following statements is TRUE for CSS?


45 A. An external style sheet is ideal when the style is applied to many pages
Correct B. An inline style created for a html tag can be reused for other tags in same page.
Mark 1 out of 1 Choose most appropriate option.

Select one:
a. Neither A nor B

b. Only B

c. Only A 

d. Both A and B

The correct answer is: Only A


Question Which of the following is not a method of document object? Choose most appropriate option.
46
Select one:
Correct
a. print(String) 
Mark 1 out of 1

b. write(String)

c. getElementByTagName(String)

d. getElementById(String)

The correct answer is: print(String)

Question Which method is used to remove focus from the speci ed object? Choose most appropriate option.
47
Select one:
Correct
a. onsubmit()
Mark 1 out of 1
b. onblur() 

c. onfocus()

d. onclick()

The correct answer is: onblur()


Question
Consider the HTML code given below.
48
Incorrect
<html>
Mark 0 out of 1
  <head>

    <script>
      var key=10;

      function add(){

        var key=20;

        window.key=key+1;
        document.write(key);

        document.write(" ");

        print();

      }
      function print(){

        document.write(key);

      }

    </script>
  </head>

  <body>

    <form>
      <input type="submit" onclick="add()" />

    </form>

  </body>

</html>
 

What will be displayed after executing the above code?

Choose the most appropriate option.

Select one:
a. 11 11

b. 21 21 

c. 11 10

d. 20 21

Your answer is incorrect.

The correct answer is: 20 21


Question How many cells will be created after executing the below HTML code?
49
Incorrect
<html>
Mark 0 out of 1
<body>

<table border="1">

<tr> <td colspan="3"> Jack </td> </tr>

<tr> <td colspan="2"> Tom </td> <td> Mark </td> </tr>


<tr> <td rowspan="2"> John</td> <td> James</td> <td>Mary</td> </tr>

<tr> <td> Helen</td> <td> Sam </td>  </tr>

</table>

</body>
</html>

Select one:
a. 8

b. 9 

c. 7

d. 10

Your answer is incorrect.

The correct answer is: 8

Question What would be the output of the Javascript code given below?
50
Incorrect
<html>
Mark 0 out of 1
<body>

<script>
 var num1=100;

 function test(){

    num2=200;

    var num1=300;
    num1=num2;

 }

 test();

 document.write(num1 +"-"+num2);
 </script>

</body>

</html>

Select one:
a. 300-100

b. 300-200 

c. 200-200

d. 100-200

Your answer is incorrect.

The correct answer is: 100-200


 Dashboard / 2020 / Mock / Marvels Mock 2 - Quiz / Quiz / MCQ

Started on Tuesday, 21 April 2020, 4:30 PM


State Finished
Completed on Tuesday, 21 April 2020, 5:50 PM
Time taken 1 hour 20 mins
Grade 42.83 out of 50.00 (86%)

Question Predict the output:


1 class A
Correct {
Mark 1.00 out of public static void main (String[] args) throws java.lang.Exception
1.00 {
String str="Two";
switch (str) {
case "One":
System.out.print(1);
case "Two": System.out.print(3);
case "Three": System.out.print(4);
break;
}

}
}

Select one:
a. 134

b. 4

c. error

d. 34 

The correct answer is: 34

Question Choose all the statement(s) that are valid.


2
Select one or more:
Partially correct
a. A super class is an incomplete class that requires further speci cation
Mark 0.67 out of
1.00
b. Static data member have same copy, each associated with the object of class 

c. Two classes in two different packages can have the same name. 

d. There is only single copy of member function in memory when a class is loaded

The correct answers are: Two classes in two different packages can have the same name., There is only single copy of
member function in memory when a class is loaded, Static data member have same copy, each associated with the object of
class


Question Identify whether the below statement is True or False: The hierarchy of Reader/Writer class is character-oriented and
3 InputStream/OutputStream class is byte-oriented.

Correct
Select one:
Mark 1.00 out of
1.00 True 

False

The correct answer is 'True'.

Question What is the correct way for a method to indicate that it expects the caller to handle an Exception? Assuming that the method
4 contains code which may raise an Exception (but not a RuntimeException).

Correct
Select one:
Mark 1.00 out of
1.00 a. throws Exception 

b. new Exception

c. Don't need to specify anything

d. throw Exception

The correct answer is: throws Exception

Question Examine the given the code and choose from the following that would equate to true.
5 String str1 = "Fedrick";
Correct String str2 = "Fedrick";
String str3 = new String(str1);
Mark 1.00 out of
(A) s1 == s2
1.00
(B) s1 = s2
(C) s3 == s1
(D) s1.equals(s2)
(E) s3.equals(s1)

Select one:
a. (A), (C) & (E)

b. (A), (B) & (C)

c. (A), (D) & (E) 

d. (C), (D) & (E)

e. (D) & (E)

The correct answer is: (A), (D) & (E)


Question What will happen if you attempt to compile and run the following code?
6 Integer i=new Integer(15);
Correct Long l=new Long (10);
System.out.println(i + l);
Mark 1.00 out of
int check=1;
1.00
System.out.println(check + i);

Select one:
a. 15
16

b. Error: Can't convert java lang Integer

c. 25
16 

d. 25
26

The correct answer is: 25


16


Question Predict the output:
7 class One
Incorrect {
void calculate(int a, int b)
Mark 0.00 out of
{
1.00
System.out.println("Class One");
}
}

class Two extends One


{
@Override
void calculate(int a, int b)
{
System.out.println("Class Two");
}
}

class Three extends Two


{
@Override
void calculate(int a, int b)
{
System.out.println("Class Three");
}
}

public class Test


{
public static void main(String[] args)
{
One one = new Two();

one.calculate(10, 20);

Two two = (Two) one;

two.calculate(50, 100);

Three three = (Three) two;

three.calculate(100, 200);
}
}

Select one:
a. Class One
Class Two
Class Three 

b. Class Two
Class Two
java.lang.ClassCastException

c. Class One
Class Two
java.lang.ClassCastException

d. java.lang.ClassCastException

The correct answer is: Class Two


Class Two
java.lang.ClassCastException


Question Arrange the following operator precedence in descending order when evaluating an Expression.
8 1. Comparisons
Correct 2. Logical operations
3. Increment
Mark 1.00 out of
4. Arithmetic operations
1.00

Select one:
a. 2-1-4-3

b. 1-2-4-3

c. 3-4-1-2 

d. 4-3-1-2

The correct answer is: 3-4-1-2

Question class Recursion{


9 int puzzle(int n){
int result;
Incorrect
if (n==1)
Mark 0.00 out of return 1;
1.00
result = puzzle(n-1) * n;
return result;
}
}
public class TestMain
{

public static void main(String args[])


{
Recursion r = new Recursion();
System.out.println(r.puzzle(-6));
}
}

What will be the output of above code.

Select one:
a. 12

b. 120

c. 720 

d. 6

e. Exception

The correct answer is: Exception

Question What is the diagram that depicts the interaction between objects by arranging the objects in time sequence ?
10
Select one:
Correct
a. Use Case Diagram
Mark 1.00 out of
1.00
b. Component Diagram

c. Sequence Diagram 

d. Activity Diagram

The correct answer is: Sequence Diagram


Question What is the term used to de ne the values that are common across all instances of a class ?
11
Select one:
Correct
a. Interface
Mark 1.00 out of
1.00
b. Static 

c. Property

d. Attribute

The correct answer is: Static

Question Select the true statements about Use Case diagram ?


12
Select one or more:
Partially correct
a. Captures dynamic aspects of the system
Mark 0.67 out of
1.00
b. Depicts the boundry of the system 

c. Captures users of the system 

d. Captures attributes and methods

The correct answers are: Depicts the boundry of the system, Captures users of the system, Captures dynamic aspects of the
system

Question Select the principle that best describes the given scenario. The airline ticket booking clerk manages the available seats, dates,
13 passenger information, etc while the mehanic maintains information like ight perfomance, fuel consumption, service
intervals, etc
Incorrect

Mark 0.00 out of


1.00 Select one:
a. Encapsulation 

b. Typing

c. Abstraction

d. Polymorphism

The correct answer is: Abstraction

Question Select the diagram used to depict the building blocks and the static structure of the system ?
14
Correct
Select one:

Mark 1.00 out of


a. Class Diagram 
1.00
b. Interaction Diagram

c. Sequence Diagram

d. Component Diagram

The correct answer is: Class Diagram


Question Select the bene ts of OOP ?
15
Select one or more:
Partially correct
a. code deployment
Mark 0.50 out of
1.00
b. Ease of design

c. Resuability 

d. Testing

The correct answers are: Ease of design, Resuability

Question
Order the range of coupling from high to low
16 a. control coupling
Correct
b. stamp coupling
Mark 1.00 out of
1.00 c. content coupling

d. uncoupled

e. common coupling

f. data coupling

Select one:
a.
c  , a, b, f, e, d

b.
c , e , a, b, f, d 

c.
c , e , a, f , b, d

d.
d, c , e , a, b, f

Your answer is correct.

The correct answer is:


c , e , a, b, f, d

Question
A owchart needs to represent a situation to check whether a person is eligible to vote. The system has to consider the
17 person’s age for checking the eligibility. Which of the following constructs should be used?
Correct

Mark 1.00 out of Select one:


1.00
a.
Loop

b. All the options

c.
Decision 

d.
Sequence

Your answer is correct.

The correct answer is:


Decision


Question
Steve is learning to draw a owchart to calculate the volume of a cuboid. Which of the options given below would t into the
18 process section of the ow chart?
Correct

Mark 1.00 out of Select one:


1.00 a. display the volume of the cuboid

b. check if l,b,h have positive value

c. Volume=l*b*h 

d. Read the value of l,b,h(l represents the length, b represents the breadth, h represents the height)

Your answer is correct.

The correct answer is: Volume=l*b*h

Question Carefully read the question and answer accordingly. Find which list is not related to stacks?
19
Select one:
Correct
a. First in First Out 
Mark 1.00 out of
1.00
b. None of the options.

c. Last In First Out

d. Push-down

The correct answer is: First in First Out

Question Carefully read the question and answer accordingly. Which data structure is said to be linear data structure?
20
Select one:
Correct

Mark 1.00 out of


a. Arrays 
1.00
b. None of the listed options

c. Graphs

d. Tree

The correct answer is: Arrays

Question From the given options identify the appropriate algorithm that has the lowest worst-case complexity?
21
Select one:
Correct

Mark 1.00 out of


a. Selection Sort
1.00
b. Merge Sort 

c. Bubble Sort

d. Quick Sort

The correct answer is: Merge Sort


Question Which algorithm is the best sorting method in-place with no quadratic worst-case scenarios?
22
Select one:
Incorrect

Mark 0.00 out of


a. Quick Sort 
1.00
b. Selection Sort

c. Heap Sort

d. Bubble Sort

The correct answer is: Heap Sort

Question Time complexity of an algorithm signi es the total time required by the algorithm to complete its execution with provided
23 resources. State True or False.

Correct
Select one:
Mark 1.00 out of
1.00 True 

False

The correct answer is 'True'.

Question In which of the given SDLC model, unclear requirements are considered?
24
Select one:
Incorrect
a. Prototyping Model
Mark 0.00 out of
1.00
b. Spiral Model

c. Waterfall Model 

d. Agile Model

The correct answer is: Prototyping Model

Question Which of the option gives the number of independent paths in the program
25
Select one:
Correct
a. Equivalence Partitioning
Mark 1.00 out of
1.00
b. Error Guessing

c. Mc Cabes number 

d. Boundary Value analysis

The correct answer is: Mc Cabes number

Question Go-Will department store wants to automate few of its functionalities.From the below options identify the functional
26 requirements of Go-Will department store

Correct
Select one or more:
Mark 1.00 out of
1.00 a. Generate Bill for the purchased Items 

b. Add Product Details 

c. Response for each button click should be within 3 seconds

d. System should be up and running 24/7

The correct answers are: Generate Bill for the purchased Items, Add Product Details


Question Identify the McCabe’s number for the below code:
27  public class Testing{ 
Incorrect
 public static void main(String[] args) {
Mark 0.00 out of
1.00  int var1 = 10;
int var2 = 20; 
 if ((var1 > 8) && (var2 > 8)) 
 {  System.out.println("Greater than 8"); 
 }
 if ((var1 > 10) || (var2 > 10)) 
{ System.out.println("Greater than 10"); } 
 }
}

Select one:
a. 4

b. 3

c. 6 

d. 5

The correct answer is: 5

Question After the development of online website for global pharmacy , it was found that there were interface errors in few of the
28 modules. In which level of testing these errors would be identi ed.

Correct
Select one:
Mark 1.00 out of
1.00 a. System Testing

b. Integration Testing 

c. Acceptance Testing

d. Unit Testing

The correct answer is: Integration Testing

Question Which of the following option will delete the corresponding records in the child table when the records in parent table get
29 deleted?

Correct
Select one:
Mark 1.00 out of
1.00 a. On cascade set null

b. On delete cascade 

c. On cascade delete

d. On delete set null

The correct answer is: On delete cascade


Question The CUSTOMER table has following structure 
30 CID NUMBER (5), CNAME VARCHAR2 (50), CADDRESS VARCHAR2 (150) 
Correct
Which of the below statement would fetch the Customer ID, Name from customer table where customer name contains “Bose”
Mark 1.00 out of and is from “Calcutta”
1.00

Select one:
a. Select cid, cname from customers where cname like ‘%Bose%’ and caddress =’Calcutta’; 

b. Select cid, cname from customers where cname like ‘Bose’ and caddress =’Calcutta’;

c. Select cid, cname from customers where cname =’Bose’ and caddress =’Calcutta’;

d. Select * from customers where cname like ‘%Bose%’ and caddress =’Calcutta’;

The correct answer is: Select cid, cname from customers where cname like ‘%Bose%’ and caddress =’Calcutta’;

Question In SQL, which command is used to add new rows to a table?


31
Select one:
Correct
a. Append
Mark 1.00 out of
1.00
b. Insert 

c. Alter Table

d. Add row

The correct answer is: Insert

Question Which of the following is not a built in aggregate function in Oracle?


32
Select one:
Correct

Mark 1.00 out of


a. Count
1.00
b. Max

c. Avg

d. Total 

The correct answer is: Total

Question The EMPLOYEE table has following structure 


33 EMPID NUMBER (5) , ENAME VARCHAR2 (50), Address VARCHAR2 (15)
Correct
 Which of the below options will display names of all the employees who are from “Chennai “?
Mark 1.00 out of
1.00
Select one:
a. SELECT ENAME FROM EMPLOYEE WHERE ADDRESS =’Chennai’; 

b. SELECT * FROM EMPLOYEE ;

c. SELECT ENAME FROM EMPLOYEE;

d. SELECT * FROM EMPLOYEE WHERE ADDRESS =’Chennai’;

The correct answer is: SELECT ENAME FROM EMPLOYEE WHERE ADDRESS =’Chennai’;


Question What statements are true with respect to delete and truncate command?
34
Select one:
Correct
a. Both the commands cannot be reversed
Mark 1.00 out of
1.00
b. Delete command can be reversed but truncate cannot be reversed 

c. Both the commands work in same manner

d. Both the commands can be reversed

The correct answer is: Delete command can be reversed but truncate cannot be reversed

Question What is the purpose of using -a option with ls command ?


35
Select one:
Correct
a. for showing executables
Mark 1.00 out of
1.00
b. for showing hidden les 

c. for showing directories

d. for multi columnar output

The correct answer is: for showing hidden les

Question Which command in UNIX displays the list of all the users who have logged into the Unix server?
36
Correct

Mark 1.00 out of Select one:


1.00
a. users

b. List users

c. Who am i

d. Who 

The correct answer is: Who

Question Unix Terminals are called Dummy terminals as they do not have _____________ capability.
37
Select one:
Correct

Mark 1.00 out of


a. Processing 
1.00
b. Input

c. Output

d. Display

The correct answer is: Processing


Question Pipes are Used to combine two or more commands. The symbol used for representing pipe is ______
38
Select one:
Correct
a. ;;
Mark 1.00 out of
1.00
b. | 

c. ||

d. >> 

The correct answer is: |

Question Which of the following layer acts as an interface between user and kernel ?
39
Correct

Mark 1.00 out of Select one:


1.00 a. System Calls

b. Kernel

c. Shell 

d. Hardware

The correct answer is: Shell

Question What does the below Unix command accomplish? 


40 $ sed 's/ABC/ZYX/' le.txt
Correct

Mark 1.00 out of Select one:


1.00
a. Replaces rst occurrence in every line ‘ABC’ with 'ZYX' 

b. Replaces all occurrences 'ABC' with 'ZYX'

c. Replaces only rst occurrence of ‘ABC’ with 'ZYX'

d. Only matches and displays the occurrence of the pattern

The correct answer is: Replaces rst occurrence in every line ‘ABC’ with 'ZYX'

Question What is the output of the following code? 


41 <script type="text/javascript"> 
Correct
  var s = "6718654 or 70101?"; 
Mark 1.00 out of
1.00   var pattern = /\d{4}/; 

  var output = s.match(pattern); 


  document.write(output);

 </script>

Select one:
a. 6718654

b. 671701

c. 70101

d. 6718 

The correct answer is: 6718


Question Which tag in html is used to display a horizontal line (rule) in the document ?
42
Select one:
Correct
a. H2
Mark 1.00 out of
1.00
b. H1

c. HR 

d. HL

The correct answer is: HR

Question What is used in an HTML page to give instruction to the web browser about the version of HTML being used?
43
Select one:
Correct
a. HEAD
Mark 1.00 out of
1.00
b. DOCTYPE 

c. DOCUMENT

d. TITLE

The correct answer is: DOCTYPE

Question What does the following selector do ?


44 $("div")
Correct

Mark 1.00 out of


1.00
Select one:
a. Selects the rst div element

b. Selects all div elements 

c. selects the rst div element inside a <p> tag

d. Selects all div elements within a <p> tag

The correct answer is: Selects all div elements

Question In CSS to de ne style for a unique element then which css selector should be used?
45
Select one:
Correct

Mark 1.00 out of


a. id 
1.00
b. text

c. name

d. class

The correct answer is: id


Question What is the CSS code to remove an underline from all hyperlinks
46
Select one:
Correct
a. a {text: no-underline;}
Mark 1.00 out of
1.00
b. a {text-decoration: no-underline;}

c. a {text-decoration:none;} 

d. a {text-style: no-underline;}

The correct answer is: a {text-decoration:none;}

Question Find out the well-formed xml le


47
Select one:
Correct
a. <book category="Web"> 
Mark 1.00 out of
1.00     <bname>XML Tutorials</BNAME> 
    <pages>100</pages> 
    <price>$300.00<price> 
<book>

b. <book category="Web"> 
    <bname>XML Tutorials</bname> 
    <pages>100</pages> 
    <price>$300.00</price>
 </book> 

c. <book category=Web> 
     <bname>XML Tutorials</bname> 
     <pages>100</pages> 
     <price>$300.00</price>
 </book>

d. <book category="Web"> 
    <bname>XML Tutorials</bname> 
    <pages>100</pages> 
    <price>$300.00</Price> 
</book>

The correct answer is: <book category="Web"> 


    <bname>XML Tutorials</bname> 
    <pages>100</pages> 
    <price>$300.00</price>
 </book>

Question what is used to nd out an internet resource in an XML?


48
Select one:
Correct

Mark 1.00 out of


a. URL
1.00
b. XMLNS

c. URN

d. URI 

The correct answer is: URI


Question Which of the following xml prolog is according to syntax of XML
49
Correct

Mark 1.00 out of Select one:


1.00 a. <?xml version="1.0" version="UTF-8"?>

b. <?xml version="1.0" encoding="UTF-8">

c. <?xml version="1.0" encoding="UTF-18"?>

d. <?xml version="1.0" encoding="UTF-8"?> 

The correct answer is: <?xml version="1.0" encoding="UTF-8"?>

Question What is wrong in the following lines of xml code


50 <note date= 14/04/1979>
Correct <to>Abin< /to>
<from>John< /from>
Mark 1.00 out of
</note>
1.00

Select one:
a. XML Tags are Case Sensitive

b. All XML Elements Must Have a Closing Tag

c. XML Attribute Values Must be Quoted 

d. XML Elements Must be Properly Nested

The correct answer is: XML Attribute Values Must be Quoted


 Dashboard / Marvels Mock 3 - Quiz - REVIEW / Quiz / Quiz

Started on Friday, 24 April 2020, 4:31 PM


State Finished
Completed on Friday, 24 April 2020, 5:50 PM
Time taken 1 hour 19 mins
Grade 47.00 out of 50.00 (94%)

Question How do we change the state of an object ?


1
Select one:
Correct

Mark 1.00 out of


a. Using object's property
1.00
b. Using object's behavior 

c. Using Object's default methods

d. Using class name

The correct answer is: Using object's behavior

Question Select the true statement ?


2
Select one:
Correct
a. Inheritance forms a is-a part of relationship between classes.
Mark 1.00 out of
1.00
b. Aggregation is the stronger form of Inheritance.

c. Aggregation forms a is-a part of relationship between classes. Composition is the stronger form of Aggregation. 

d. Aggregation forms the is-a type of relationship between classes.

The correct answer is: Aggregation forms a is-a part of relationship between classes. Composition is the stronger form of
Aggregation.

Question Which of the below terms represents the levels of hierarchy ?


3
Select one or more:
Correct

Mark 1.00 out of


a. Multi-Level
1.00
b. Compound

c. Aggregation 

d. Generalization 

The correct answers are: Generalization, Aggregation


Question What de nes the state of an object ?
4
Select one:
Incorrect
a. Using the class Id
Mark 0.00 out of
1.00
b. Using the value of the class properties

c. Using the behavior 

d. Using the class identity

The correct answer is: Using the value of the class properties

Question How does the different section of an application communicate in an OO approach ?


5
Select one:
Correct
a. The objects created during runtime by different sections of the application interact through messages 
Mark 1.00 out of
1.00
b. In OO approach, the diffferent sections run in isolation so they will NOT interact

c. Different sections of the application interact through le system

d. Different sections of the application interact through database

The correct answer is: The objects created during runtime by different sections of the application interact through messages

Question Select the principle that best describes the given scenario. An air-condition can be operated using the button or remote
6 control.

Correct
Select one:
Mark 1.00 out of
1.00 a. Abstraction

b. Encapsulation 

c. Hierarchy

d. Polymorphism

The correct answer is: Encapsulation

Question
_________ is not the exact code for solving the problem but it would give us an idea of how the problem is going to be solved.
7
Correct

Mark 1.00 out of Select one:


1.00
a. object code

b. Pseudocode 

c. Structure code

d. Programming code

Your answer is correct.


The correct answer is: Pseudocode
Question In which of the given SDLC model, unclear requirements are considered?
8
Select one:
Correct
a. Waterfall Model
Mark 1.00 out of
1.00
b. Spiral Model

c. Agile Model

d. Prototyping Model 

The correct answer is: Prototyping Model

Question Enhancements made to the developed software is called as ………………


9
Select one:
Correct

Mark 1.00 out of


a. Maintenance 
1.00
b. Analysis

c. Design

d. Testing

The correct answer is: Maintenance

Question After the development of online website for global pharmacy , it was found that there were interface errors in few of the
10 modules. In which level of testing these errors would be identi ed.

Correct
Select one:
Mark 1.00 out of
1.00 a. Acceptance Testing

b. Integration Testing 

c. System Testing

d. Unit Testing

The correct answer is: Integration Testing

Question Software was developed for Global Marketing. Few changes that was earlier requested was already incorporated in the
11 delivered software. Now the client does not want the changes and requested for the previous release. Which of the below

Correct
option would facilitate developer to meet the client needs.

Mark 1.00 out of


1.00 Select one:
a. Software Control Management

b. Software Repository

c. Change Control Management

d. Software Con guration Management 

The correct answer is: Software Con guration Management


Question A Software needs to be developed for a Sterlin Hospital to monitor the radiations given for cancer patients. Even a very minute
12 deviation would result in the risk of the life of the patient. Which would be the appropriate life cycle model used to implement
the given scenario
Correct

Mark 1.00 out of


1.00
Select one:
a. Agile

b. Water fall

c. Prototyping

d. Spiral 

The correct answer is: Spiral

Question Unix Terminals are called Dummy terminals as they do not have _____________ capability.
13
Select one:
Correct

Mark 1.00 out of


a. Output
1.00
b. Processing 

c. Display

d. Input

The correct answer is: Processing

Question Which of the following is not a feature of UNIX?


14
Select one:
Correct

Mark 1.00 out of


a. User friendly 
1.00
b. Portability

c. Multitasking

d. Multiuser

The correct answer is: User friendly

Question Consider the sample.txt le and predict the output 


15 Unix is an operating system. 
Correct
Unix is open source.
Mark 1.00 out of
1.00  Linux is also a powerful OS. 

What is the output of grep -c "Unix" sample.txt command?

Select one:
a. 4

b. 2 

c. 0

d. 3

The correct answer is: 2


Question What does the below Unix command accomplish? 
16 $ sed 's/ABC/ZYX/' le.txt
Correct

Mark 1.00 out of Select one:


1.00 a. Only matches and displays the occurrence of the pattern

b. Replaces only rst occurrence of ‘ABC’ with 'ZYX'

c. Replaces all occurrences 'ABC' with 'ZYX'

d. Replaces rst occurrence in every line ‘ABC’ with 'ZYX' 

The correct answer is: Replaces rst occurrence in every line ‘ABC’ with 'ZYX'

Question Which of the following should be used to print lines containing ‘manager’ in emp.lst?
17
Select one:
Correct
a. awk ‘/manager { print }’ emp.lst
Mark 1.00 out of
1.00
b. awk ‘/manager/ { print } emp.lst

c. awk ‘manager { print }’ emp.lst

d. awk ‘/manager/ { print }’ emp.lst 

The correct answer is: awk ‘/manager/ { print }’ emp.lst

Question What is the purpose of using -a option with ls command ?


18
Select one:
Correct

Mark 1.00 out of


a. for showing hidden les 
1.00
b. for showing executables

c. for multi columnar output

d. for showing directories

The correct answer is: for showing hidden les

Question Which is the correct way to de ne an empty book element


19
Correct

Mark 1.00 out of Select one:


1.00
a. <book>

b. <book>NULL</book>

c. <book>empty</book>

d. <book></book> 

The correct answer is: <book></book>


Question Which is not true about XML
20
Select one:
Correct
a. XML must be wellformed
Mark 1.00 out of
1.00
b. XML Tags are not Case Sensitive 

c. All XML Elements Must Have a Closing Tag

d. XML Elements Must be Properly Nested

The correct answer is: XML Tags are not Case Sensitive

Question What is the correct XPATH that selects all the state elements that have a "speak" attribute with a value of "HIN"
21
Select one:
Correct
a. //state[@speak,'HIN']
Mark 1.00 out of
1.00
b. //state[@speak=HIN]

c. //state[speak='HIN']

d. //state[@speak='HIN'] 

The correct answer is: //state[@speak='HIN']

Question Find out the well-formed xml le


22
Select one:
Correct

Mark 1.00 out of


a. <book category="Web">
1.00     <bname>XML Tutorials</bname>
    <pages>100</pages>
    <price>$300.00</price>
 </book> 

b. <book category="Web">
    <bname>XML Tutorials</bname>
    <pages>100</pages>
    <price>$300.00</Price>
</book>

c. <book category="Web">
    <bname>XML Tutorials</BNAME>
    <pages>100</pages>
    <price>$300.00<price>
<book>

d. <book category=Web>
     <bname>XML Tutorials</bname>
     <pages>100</pages>
     <price>$300.00</price>
 </book>

The correct answer is: <book category="Web">


    <bname>XML Tutorials</bname>
    <pages>100</pages>
    <price>$300.00</price>
 </book>
Question If Employee class is created inside com.test package, what could be the rst line in class? Choose most appropriate option.
23
Select one:
Correct
a. packages com.test
Mark 1.00 out of
1.00
b. package com.test 

c. package com.test.Employee

d. class Employee{}

The correct answer is: package com.test

Question What will be the output of the following Java code?


24 public class Rectangle
Correct {
private int length;
Mark 1.00 out of
private int width;
1.00
public static void main(String[] args)
{
Rectangle rectangle1 = new Rectangle();
rectangle1.length=10;
rectangle1.width=5;
Rectangle rectangle2 = rectangle1;
System.out.println("Length : "+rectangle2.length);
System.out.println("Width : "+rectangle2.width);
}
}

Choose the most appropriate option.

Select one:
a. Length: 5 Width: 10

b. Length : 10 Width : 5 

c. Length : null Width : null

d. Length : 0 Width : 0

The correct answer is: Length : 10 Width : 5


Question What will be the output of the following Java code?
25 public class Employee
Correct {
private static int count; static
Mark 1.00 out of
{
1.00
Employee.count = 101;
}
public Employee()
{
Employee.count = 201;
}
public static int getCount()
{
return Employee.count;
}
}
public class ApplicationTester
{
public static void main(String[] args)
{
Employee emp = new Employee();
System.out.println(emp.getCount());
}
}

Choose the most appropriate option.

Select one:
a. 201 

b. null

c. 101

d. 0

The correct answer is: 201

Question What will be the output of the following Java code?


26
Correct public class MyClass
{
Mark 1.00 out of
public static void main (String[] args)
1.00
{
int value1=33;
int value2=--value1;
int value3=value1++;
System.out.println(value1+" "+value2+" "+value3);
}
}

Choose the most appropriate option.

Select one:
a. 33 32 32 

b. 32 32 32

c. 32 33 32

d. 32 32 33

The correct answer is: 33 32 32


Question What will be the output of the following Java code?
27 public class Vehicle
Incorrect {
protected String enginePower;
Mark 0.00 out of
public Vehicle()
1.00
{
this.enginePower = "100CC";
}
public String getEnginePower()
{
return this.enginePower;
}
}
public class PassengerVehicle extends Vehicle
{
private int capacity;
public PassengerVehicle()
{
this.capacity = 50;
this.enginePower = "150CC";
}
public int getCapacity()
{
return this.capacity;
}
}
public class ApplicationTester
{
public static void main(String[] args)
{
Vehicle vehicle = new PassengerVehicle();
System.out.println(vehicle.getEnginePower());
}
}

Choose the most appropriate option.

Select one:
a. null

b. 150CC

c. 100CC150CC

d. 100CC 

The correct answer is: 150CC


Question What will be the output of the following Java code?
28 public class BaseClass
Correct {
public static void method()
Mark 1.00 out of
{
1.00
System.out.println("1");
}
}
public class DerivedClass extends BaseClass
{
public static void method()
{
System.out.println("2");
}
}
public class ApplicationTester
{
public static void main(String[] args)
{
BaseClass ref = new DerivedClass();
ref.method();
//Line-1
}
}

Choose the most appropriate option.

Select one:
a. 1 

b. Compilation error at Line-1: Ambiguous method call 'ref.method()'

c. 2

d. Program will display both 1 and 2

The correct answer is: 1


Question What will be the output of the following Java code?
29 public class Account
Correct {
public void deposite(int amount)
Mark 1.00 out of
{
1.00
System.out.println("Account deposited with: " + amount);
}
public void transaction()
{
this.deposite(100);
}
}
public class SavingsAccount extends Account
{
public void deposite(int amount)
{
System.out.println("Savings Account deposited with: " + amount);
}
}
public class ApplicationTester
{
public static void main(String[] args)
{
Account account = new SavingsAccount();
account.transaction();
}
}

Choose the most appropriate option.

Select one:
a. Account deposited with: 100

b. Savings Account deposited with: 100 

c. Savings Account deposited with: 0

d. Account deposited with: 0

The correct answer is: Savings Account deposited with: 100


Question What is the output of the following code?
30 class Account
Correct {
int balance;
Mark 1.00 out of
public void createAccount()
1.00
{
balance = 1000;
}
public int getMinimumBalance()
{
return balance;
}
}
class SalaryAccount extends Account
{
private String companyName;
public SalaryAccount(String companyName)
{
this.companyName = companyName;
}
public void createAccount()
{
balance = 500;
}
public void checkCompany()
{
if (companyName.equalsIgnoreCase("Accenture"))
{
balance = 0;
}
}
}
public class MainClass
{
public static void main(String[] args)
{
Account account = new SalaryAccount("Accenture");
account.createAccount();
System.out.println("Balance : " + account.getMinimumBalance());
account.checkCompany();
System.out.println("Balance : " + account.getMinimumBalance());
}
}

Choose the most appropriate option.

Select one:
a. Balance: 1000 Balance: 500

b. Compilation Error: The method checkCompany() is unde ned for the type Account 

c. Balance: 500 Balance: 0

d. Balance: 1000 Balance: 0

The correct answer is: Compilation Error: The method checkCompany() is unde ned for the type Account
Question What will be the output of the following Java code?
31
Correct
public class ApplicationTester {
Mark 1.00 out of
1.00            public static void main(String[] args) {
                 int [] array1 = {10,20,30,40,50};
                 int [] array2 = array1;

                 for(int index1=0,index2=3; index2<array2.length&&index1<array1.length; index1++,++index2)


                   {

                                array1[index1]++;
                                System.out.print(array2[index2]+” ”);

                   }
         }

Select one:
a. Array Index Out Of Bounds Exception

b. 0 0

c. 40 50 

d. 41 51

The correct answer is: 40 50

Question Which is the CORRECT SQL Query to display names of employees which has only 3 letters that starts with 'A' and ends with 'e'?
32 Choose most appropriate option.

Correct
Select one:
Mark 1.00 out of
1.00 a. SELECT EmployeeName FROM Employee WHERE EmployeeName LIKE '__e';

b. SELECT EmployeeName FROM Employee WHERE EmployeeName LIKE 'A_e'; 

c. SELECT EmployeeName FROM Employee WHERE EmployeeName LIKE 'A%e';

d. SELECT EmployeeName FROM Employee WHERE EmployeeName = 'A_e';

The correct answer is: SELECT EmployeeName FROM Employee WHERE EmployeeName LIKE 'A_e';
Question Consider the following tables: 
33                       Vendor (VendorId, VendorName, PhoneNumber). 
Correct
                                 Here VendorId is the primary key. 
Mark 1.00 out of
1.00
                      Item (ItemCode, UnitPrice, QuantityOnHand, VendorId) 

                                Here ItemCode is the primary key and VendorId is the foreign key referencing the VendorId in                           
                Vendor Table. 

Which is the CORRECT SQL query to display ItemCode, UnitPrice, VendorName for all Items. It should also display the details
of the Item which is not having any vendor?

 Choose most appropriate option

Select one:
a. SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName FROM Item INNER JOIN Vendor ON Item.VendorId =
Vendor.VendorId;

b. SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName FROM Item LEFT OUTER JOIN Vendor ON Item.VendorId =


Vendor.VendorId; 

c. SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName FROM Item INNER JOIN Vendor ON Item.VendorId =


Vendor.VendorId AND Item.VendorId IS NULL;

d. SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName FROM Item, Vendor WHERE Item.VendorId =


Vendor.VendorId;

The correct answer is: SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName FROM Item LEFT OUTER JOIN Vendor ON
Item.VendorId = Vendor.VendorId;

Question What would be the output of the SQL statement given below? SELECT SUBSTR("Accenture",3,4) FROM DUAL; Choose most
34 appropriate option.

Correct
Select one:
Mark 1.00 out of
1.00 a. ntur

b. entu

c. cent 

d. centu

The correct answer is: cent

Question Identify the CORRECT SQL statement(s) to remove ONLY the data from "Employee" table?
35 (i) DROP TABLE Employee;
Correct (ii) DELETE FROM Employee;
Mark 1.00 out of (iii) TRUNCATE TABLE Employee;
1.00 Choose most appropriate option.

Select one:
a. Both (i) and (ii)

b. Both (i) and (iii)

c. Both (ii) and (iii) 

d. (i), (ii) and (iii)

The correct answer is: Both (ii) and (iii)


Question Identify the CORRECT SQL statement to create a Account table with composite primary key (AccountNumber, CustomerId).
36 Choose most appropriate option

Correct
Select one:
Mark 1.00 out of
1.00 a. CREATE TABLE Account (AccountNumber Number(5) CONSTRAINT Acc_Pkey1 PRIMARY KEY, CustomerId Number(10)
CONSTRAINT Acc_Pkey2 PRIMARY KEY, OpeningDate Date, Balance Number(10,2));

b. CREATE TABLE Account (AccountNumber Number(5), CustomerId Number(10), OpeningDate Date, Balance
Number(10,2), CONSTRAINT Acc_Pkey PRIMARY KEY (AccountNumber,CustomerId)); 

c. CREATE TABLE Account (AccountNumber Number(5), CustomerId Number(10) CONSTRAINT Acc_Pkey2 PRIMARY KEY
(AccountNumber,CustomerId), OpeningDate Date, Balance Number(10,2));

d. CREATE TABLE Account (AccountNumber Number(5), CustomerId Number(10), OpeningDate Date, Balance
Number(10,2), CONSTRAINT Acc_Pkey COMPOSITE PRIMARY KEY (AccountNumber,CustomerId));

Your answer is correct.

The correct answer is: CREATE TABLE Account (AccountNumber Number(5), CustomerId Number(10), OpeningDate Date,
Balance Number(10,2), CONSTRAINT Acc_Pkey PRIMARY KEY (AccountNumber,CustomerId));

Question Consider table Customer(cid NUMBER(4), cname VARCHAR2(10) ) is created in the database and has no records. Refer to the
37 below statements.  
 COMMIT; 
Correct
INSERT INTO Customer VALUES(101,’John’); 
Mark 1.00 out of
1.00
INSERT INTO Customer VALUES(102,’James’); 
DELETE FROM Customer WHERE cid=101; 
INSERT INTO Customer VALUES(103,’Mark’); 
ROLLBACK; 
COMMIT;   
How many records will be available in the customer table if the above statements are executed in sequential order.   Choose
the most appropriate option.

Select one:
a. 3

b. 1

c. 0 

d. 2

Your answer is correct.

The correct answer is: 0


Question Refer the incomplete code given below.
38 <style>
Correct
  # rstname {
Mark 1.00 out of
1.00      background-color: yellow;
     color:red;
 }
</style>
<input type=text <strong>__Blank1__</strong>=' rstname'>
Choose the CORRECT attribute which if replaces '__Blank1__' will apply the CSS to text box.
Choose most appropriate option.

Select one:
a. style

b. styleclass

c. class

d. id 

Your answer is correct.

The correct answer is: id

Question which of the following code creates a list box from which user can select more than one option?
39
Select one:
Correct
a. <select name='type' multiple><br />
Mark 1.00 out of
1.00  <option> P </option><br />
 <option> G </option><br />
 <option> S </option><br />
</select> 

b. <select type=multiValue><br />


 <option> P </option><br />
 <option> G </option><br />
 <option> S </option><br />
</select>

c. <select type=multiple><br />


 <option> P </option><br />
 <option> G </option><br />
 <option> S </option><br />
</select>

d. <select name='type' multiValue><br />


 <option> P </option><br />
 <option> G </option><br />
 <option> S </option><br />
</select>

Your answer is correct.

The correct answer is: <select name='type' multiple><br />


 <option> P </option><br />
 <option> G </option><br />
 <option> S </option><br />
</select>
Question Which attribute of the form speci es the name of the web page on the server which will process the form after submission?
40 Choose most appropriate option.

Correct
Select one:
Mark 1.00 out of
1.00 a. method

b. name

c. url

d. action 

The correct answer is: action

Question What would be the Output of the below java script Code?
41 <html> <body>
Correct <script>
var x = 5; var d = (x != "5");
Mark 1.00 out of
document.write(d +"--");
1.00
d = (x === "5"); document.write(d);
</script> </body>
</html>

Choose most appropriate option.

Select one:
a. false--false 

b. true--false

c. true--true

d. false--true

The correct answer is: false--false

Question Refer the incomplete HTML code given below.


42 <input type="text" name="firstname" ___Blank1___ = "5" />
Correct
It is required to restrict the maximum number of characters being entered in the above text box to 5. From the given option,
Mark 1.00 out of
1.00 identify the CORRECT option which can replace "___Blank1___" to meet the above requirement. Choose most appropriate
option.

Select one:
a. size

b. length

c. maxsize

d. maxlength 

The correct answer is: maxlength


Question What would be the output of the Javascript code given below?
43
Correct
<html>
Mark 1.00 out of
1.00
<body>

<script>

 var num1=100;

 function test(){
    num2=200;

    var num1=300;

    num1=num2;

 }
 test();

 document.write(num1 +"-"+num2);

 </script>
</body>

</html>

Select one:
a. 300-200

b. 300-100

c. 100-200 

d. 200-200

Your answer is correct.

The correct answer is: 100-200

Question
Steve is learning to draw a owchart to calculate the volume of a cuboid. Which of the options given below would t into the
44 process section of the ow chart?
Correct

Mark 1.00 out of Select one:


1.00 a. check if l,b,h have positive value

b. display the volume of the cuboid

c. Read the value of l,b,h(l represents the length, b represents the breadth, h represents the height)

d. Volume=l*b*h 

Your answer is correct.


The correct answer is: Volume=l*b*h
Question
Order the range of coupling from high to low
45 a. control coupling
Correct
b. stamp coupling
Mark 1.00 out of
1.00 c. content coupling
d. uncoupled

e. common coupling

f. data coupling

Select one:
a.
c  , a, b, f, e, d

b.
c , e , a, b, f, d 

c.
c , e , a, f , b, d

d.
d, c , e , a, b, f

Your answer is correct.

The correct answer is:


c , e , a, b, f, d

Question Carefully read the question and answer accordingly. Find which list is not related to stacks?
46
Select one:
Correct
a. Last In First Out
Mark 1.00 out of
1.00
b. None of the options.

c. Push-down

d. First in First Out 

The correct answer is: First in First Out

Question Carefully read the question and answer accordingly. One of the best application of Stack is
47
Select one:
Correct

Mark 1.00 out of


a. Radix sort
1.00
b. Array

c. Recursion 

d. Breadth First Search

The correct answer is: Recursion


Question Carefully read the question and answer accordingly. Which of the following options are correct?
48
Select one or more:
Correct
a. None of the options.
Mark 1.00 out of
1.00
b. A tree which does not have any node other than root node has depth of zero. 

c. A tree which does not have any node other than root node is called a null tree 

d. A tree with n nodes has exactly n branches or degree.

The correct answers are: A tree which does not have any node other than root node is called a null tree, A tree which does not
have any node other than root node has depth of zero.

Question Which algorithm is the best sorting method in-place with no quadratic worst-case scenarios?
49
Select one:
Correct
a. Bubble Sort
Mark 1.00 out of
1.00
b. Selection Sort

c. Quick Sort

d. Heap Sort 

The correct answer is: Heap Sort

Question What is the time complexity of these functions? 


50  int fact(int i)
Incorrect
 { 
Mark 0.00 out of
1.00 if(i<=1)

return i; 

 return 2*fact(i-1);

 }
 int fact2(int i) 

 if(i<=1) 

return i; 
 return fact2(i-1) + fact2(i-1);

 }

Select one:
a. O(n) for both fact() and fact2()

b. O(2^n) for fact() and O(n) for fact2() 

c. O(n) for fact() and O(2^n) for fact2()

d. O(2^n) for both fact() and fact2()

The correct answer is: O(n) for fact() and O(2^n) for fact2()
6/29/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

 Dashboard / Nobels Mock 3 - Quiz / Quiz / Quiz

Started on Friday, 19 June 2020, 4:30 PM


State Finished
Completed on Friday, 19 June 2020, 4:47 PM
Time taken 17 mins 10 secs
Grade 49.00 out of 50.00 (98%)

Question What is the diagram that depicts the interaction between objects by arranging the objects in time sequence ?
1
Select one:
Correct

Mark 1.00 out of


a. Activity Diagram
1.00
b. Component Diagram

c. Use Case Diagram

d. Sequence Diagram 

The correct answer is: Sequence Diagram

Question What is the term used to de ne the values that are common across all instances of a class ?
2
Select one:
Correct
a. Property
Mark 1.00 out of
1.00
b. Interface

c. Attribute

d. Static 

The correct answer is: Static

Question Select the multiplicity between passenger and train reservation ticket? What is the multiplicity of passenger ?
3
Select one:
Correct

Mark 1.00 out of


a. 0..1
1.00
b. 1 

c. 1..*

d. 0..*

The correct answer is: 1

Question What de nes the state of an object ?


4
Select one:
Correct

Mark 1.00 out of


a. Using the value of the class properties 
1.00
b. Using the class identity

c. Using the behavior

d. Using the class Id

The correct answer is: Using the value of the class properties

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2557965&cmid=4311&showall=1 1/17
6/29/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

Question Select the true statements about Use Case diagram ?


5
Select one or more:
Correct
a. Depicts the boundry of the system 
Mark 1.00 out of
1.00
b. Captures dynamic aspects of the system 

c. Captures attributes and methods

d. Captures users of the system 

The correct answers are: Depicts the boundry of the system, Captures users of the system, Captures dynamic aspects of the
system

Question How does the different section of an application communicate in an OO approach ?


6
Select one:
Correct
a. In OO approach, the diffferent sections run in isolation so they will NOT interact
Mark 1.00 out of
1.00
b. Different sections of the application interact through le system

c. The objects created during runtime by different sections of the application interact through messages 

d. Different sections of the application interact through database

The correct answer is: The objects created during runtime by different sections of the application interact through messages

Question A program is said to be_______, if it optimizes the amount of memory and processing time.
7
Select one:
Correct

Mark 1.00 out of


a. e cient 
1.00
b. modular

c. robust

d. documented

The correct answer is: e cient

Question In which of the given SDLC model, unclear requirements are considered?
8
Select one:
Correct

Mark 1.00 out of


a. Agile Model
1.00
b. Prototyping Model 

c. Waterfall Model

d. Spiral Model

The correct answer is: Prototyping Model

Question State true or false.


9  Con guration management is important only during the coding phase
Correct

Mark 1.00 out of Select one:


1.00
True

False 

The correct answer is 'False'


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2557965&cmid=4311&showall=1 2/17
6/29/2020 Quiz: Attempt review
The correct answer is False .
 Abhijit Mukund Pimpale .

Question After the development of online website for global pharmacy , it was found that there were interface errors in few of the
10 modules. In which level of testing these errors would be identi ed.

Correct
Select one:
Mark 1.00 out of
1.00 a. Unit Testing

b. Acceptance Testing

c. System Testing

d. Integration Testing 

The correct answer is: Integration Testing

Question ERD Example: Consider the given scenario. ZEE public school Library. A Library has many books. Each Book has many
11 chapters. Identify the cardinality between Chapter and Book

Correct
Select one:
Mark 1.00 out of
1.00 a. 0..0

b. m..m

c. m..1 

d. 0..m

The correct answer is: m..1

Question A website for Flight Booking was developed and given to the testing team for testing. It has various elds to enter the data, out
12 of which one of the input eld will take the birth year from the user ranging from 1980 to 2060. The boundary values for testing
this eld are?
Correct

Mark 1.00 out of


1.00 Select one:
a. 0, 1959, 1960, 1961, 1994, 1995, 1996

b. 1959, 1960, 1994, 1995

c. 0,2000,2050,2020,1981

d. 1979,1980,2060,2061 

e. 1979,2030,1980,2060,2061

The correct answer is: 1979,1980,2060,2061

Question Pipes are Used to combine two or more commands. The symbol used for representing pipe is ______
13
Select one:
Correct

Mark 1.00 out of


a. | 
1.00
b. ;;

c. >> 

d. ||

The correct answer is: |

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2557965&cmid=4311&showall=1 3/17
6/29/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

Question Unix Terminals are called Dummy terminals as they do not have _____________ capability.
14
Select one:
Correct
a. Input
Mark 1.00 out of
1.00
b. Output

c. Processing 

d. Display

The correct answer is: Processing

Question What does the below Unix command accomplish? 


15 $ sed 's/ABC/ZYX/' le.txt
Correct

Mark 1.00 out of Select one:


1.00 a. Replaces all occurrences 'ABC' with 'ZYX'

b. Only matches and displays the occurrence of the pattern

c. Replaces only rst occurrence of ‘ABC’ with 'ZYX'

d. Replaces rst occurrence in every line ‘ABC’ with 'ZYX' 

The correct answer is: Replaces rst occurrence in every line ‘ABC’ with 'ZYX'

Question Consider the sample.txt le and predict the output 


16 Unix is an operating system. 
Correct
Unix is open source.
Mark 1.00 out of
1.00  Linux is also a powerful OS. 

What is the output of grep -c "Unix" sample.txt command?

Select one:
a. 3

b. 2 

c. 4

d. 0

The correct answer is: 2

Question What is the purpose of using -a option with ls command ?


17
Correct
Select one:

Mark 1.00 out of


a. for showing executables
1.00
b. for showing hidden les 

c. for multi columnar output

d. for showing directories

The correct answer is: for showing hidden les

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2557965&cmid=4311&showall=1 4/17
6/29/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

Question Which of the following should be used to print lines containing ‘manager’ in emp.lst?
18
Select one:
Correct
a. awk ‘manager { print }’ emp.lst
Mark 1.00 out of
1.00
b. awk ‘/manager { print }’ emp.lst

c. awk ‘/manager/ { print } emp.lst

d. awk ‘/manager/ { print }’ emp.lst 

The correct answer is: awk ‘/manager/ { print }’ emp.lst

Question What does DTD stand for?


19
Select one:
Correct

Mark 1.00 out of


a. Dynamic Type De nition
1.00
b. Dynamic Transfer De nition

c. Direct Type De nition

d. Document Type De nition 

The correct answer is: Document Type De nition

Question Which of the following xml prolog is according to syntax of XML


20
Correct

Mark 1.00 out of Select one:


1.00
a. <?xml version="1.0" encoding="UTF-18"?>

b. <?xml version="1.0" version="UTF-8"?>

c. <?xml version="1.0" encoding="UTF-8"?> 

d. <?xml version="1.0" encoding="UTF-8">

The correct answer is: <?xml version="1.0" encoding="UTF-8"?>

Question Identify the predicate which selects the last Employee element that is the child of the Company element?
21
Correct
Select one:
Mark 1.00 out of
1.00 a. /Company/Employee[last()] 

b. /Company/Employee[1]

c. /Company/Employee[ rst-1]

d. /Company/Employee[ rst()-1]

The correct answer is: /Company/Employee[last()]

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2557965&cmid=4311&showall=1 5/17
6/29/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

Question Find out the well-formed xml le


22
Select one:
Correct
a. <book category="Web">
Mark 1.00 out of
1.00     <bname>XML Tutorials</bname>
    <pages>100</pages>
    <price>$300.00</Price>
</book>

b. <book category=Web>
     <bname>XML Tutorials</bname>
     <pages>100</pages>
     <price>$300.00</price>
 </book>

c. <book category="Web">
    <bname>XML Tutorials</BNAME>
    <pages>100</pages>
    <price>$300.00<price>
<book>

d. <book category="Web">
    <bname>XML Tutorials</bname>
    <pages>100</pages>
    <price>$300.00</price>
 </book> 

The correct answer is: <book category="Web">


    <bname>XML Tutorials</bname>
    <pages>100</pages>
    <price>$300.00</price>
 </book>

Question Consider the Java code given below. How many times "Accenture" will be printed when the code is executed?
23 public class Tester
Correct {
public static void main(String[] args)
Mark 1.00 out of
{
1.00
for(int i=0; i <5; i++)
{
System.out.println("Accenture");
i++;
}
}

Choose the most appropriate option.

Select one:
a. 3 times 

b. 4 times

c. 1 time

d. 2 times

The correct answer is: 3 times

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2557965&cmid=4311&showall=1 6/17
6/29/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

Question What will be the output of the following Java code?


24 public class ApplicationTester
Correct {
public static void main(String[] args)
Mark 1.00 out of
{
1.00
int i=0;
for(i=0; i<10; i++)
{
if(i == 5)
{
continue;
}
i++;
System.out.print(i + " ");
}
}
}

Choose the most appropriate option.

Select one:
a. 1 2 3 4 6 7 8 9

b. 1 2 3 4 5 6 7 8 9

c. 1 2 3 4 and then program will get into in nite loop

d. 1 3 5 7 9 

The correct answer is: 1 3 5 7 9

Question Identify the relationship between the class Patient and class Doctor which are given below.
25 public class Patient
Correct {
private String name;
Mark 1.00 out of
//getter and setter methods
1.00
}
public class Doctor
{
private String name;
private String specialization;
//getter and setter methods
public void treatPatient(Patient patient)
{
//valid Java code
}
}

Choose the most appropriate option.

Select one:
a. No relationship exists between Doctor class and Patient class

b. Inheritance

c. Aggregation 

d. Composition

The correct answer is: Aggregation

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2557965&cmid=4311&showall=1 7/17
6/29/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

Question What will be the output of the following code:


26 public class Test
Correct {
public static void main(String[] args)
Mark 1.00 out of
{
1.00
int number=20;
switch(number)
{
case 10: System.out.println("10");
break;
case 20: System.out.println("20");
case 30: System.out.println("30");
break;
default:System.out.println("Not in 10, 20 or 30");
}
}
}

Choose most appropriate option.

Select one:
a. 30

b. 20 30 

c. invalid switch statement

d. 20

The correct answer is: 20 30

Question What will be the output of the following Java code?


27 public class BaseClass
Correct {
public static void method()
Mark 1.00 out of
{
1.00
System.out.println("1");
}
}
public class DerivedClass extends BaseClass
{
public static void method()
{
System.out.println("2");
}
}
public class ApplicationTester
{
public static void main(String[] args)
{
BaseClass ref = new DerivedClass();
ref.method();
//Line-1
}
}

Choose the most appropriate option.

Select one:
a. 2

b. 1 

c. Compilation error at Line-1: Ambiguous method call 'ref.method()'

d. Program will display both 1 and 2

The correct answer is: 1

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2557965&cmid=4311&showall=1 8/17
6/29/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

Question What will be the output of the following Java code?


28 public class OverloadTester
Correct {
public static void main(String[] args)
Mark 1.00 out of
{
1.00
double result = new OverloadTester().add(25, 35);
System.out.println("Sum is " + result);
}
public int add(int number1, int number2)
{
return number1 + number2;
}
public double add(int number1, int number2)
{
return number1 + number2;
}
}

Choose the most appropriate option.

Select one:
a. Compilation Error: Duplicate method add(int, int) in type OverloadTester 

b. Sum is 60

c. Sum is 60.0

d. Sum is 0

The correct answer is: Compilation Error: Duplicate method add(int, int) in type OverloadTester

Question What will be the output of the following Java code?


29
Correct class Employee
{
Mark 1.00 out of
Employee ()
1.00
{
System.out.println("Employee constructor");
}
static
{
System.out.println("Employee static block");
}
}
class Manager
{
Manager ()
{
System.out.println("Manager constructor");
}
static
{
System.out.println("Manager static block");
}
}

public class Main


{
public static void main(String[] args) {
Manager obj=null;
}

Select one:
a. only Manager class constructor and static block executes

b. no output 

c. only Manager class static block executes

d. Both class Constrcutor and Static block executes

The correct answer is: no output


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2557965&cmid=4311&showall=1 9/17
6/29/2020 Quiz: Attempt review
The correct answer is: no output

 Abhijit Mukund Pimpale .

Question What is the output of the following code?


30 class Account
Correct {
int balance;
Mark 1.00 out of
public void createAccount()
1.00
{
balance = 1000;
}
public int getMinimumBalance()
{
return balance;
}
}
class SalaryAccount extends Account
{
private String companyName;
public SalaryAccount(String companyName)
{
this.companyName = companyName;
}
public void createAccount()
{
balance = 500;
}
public void checkCompany()
{
if (companyName.equalsIgnoreCase("Accenture"))
{
balance = 0;
}
}
}
public class MainClass
{
public static void main(String[] args)
{
Account account = new SalaryAccount("Accenture");
account.createAccount();
System.out.println("Balance : " + account.getMinimumBalance());
account.checkCompany();
System.out.println("Balance : " + account.getMinimumBalance());
}
}

Choose the most appropriate option.

Select one:
a. Balance: 1000 Balance: 0

b. Compilation Error: The method checkCompany() is unde ned for the type Account 

c. Balance: 1000 Balance: 500

d. Balance: 500 Balance: 0

The correct answer is: Compilation Error: The method checkCompany() is unde ned for the type Account

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2557965&cmid=4311&showall=1 10/17
6/29/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

Question What will be the output of the following Java code?


31 public class ApplicationTester
Correct {
public static void main(String[] args)
Mark 1.00 out of
{
1.00
for(int i=0; i<=10; i++)
{
if(i>6)
break;
}
System.out.println(i); //Line-1
}
}

Choose most appropriate option.

Select one:
a. 6

b. null

c. 5

d. Compilation error at Line-1: i cannot be resolved to a variable 

The correct answer is: Compilation error at Line-1: i cannot be resolved to a variable

Question
Identify the CORRECT SQL statement(s) to remove ONLY the data from "Employee" table?
32 (i) DROP TABLE Employee;
Correct (ii) DELETE FROM Employee;
Mark 1.00 out of (iii) TRUNCATE TABLE Employee;
1.00 Choose most appropriate option.

Select one:
a. Both (ii) and (iii) 

b. Both (i) and (iii)

c. Both (i) and (ii)

d. (i), (ii) and (iii)

The correct answer is: Both (ii) and (iii)

Question Identify the CORRECT SQL statement to create a table with composite primary key. Choose most appropriate option.
33
Select one:
Correct

Mark 1.00 out of


a. CREATE TABLE Account (AccountNumber Number(5) CONSTRAINT Acc_Pkey1 PRIMARY KEY, CustomerId Number(10)
1.00 CONSTRAINT Acc_Pkey2 PRIMARY KEY, OpeningDate Date, Balance Number(10,2));

b. CREATE TABLE Account (AccountNumber Number(5), CustomerId Number(10), OpeningDate Date, Balance
Number(10,2), CONSTRAINT Acc_Pkey COMPOSITE PRIMARY KEY (AccountNumber,CustomerId));

c. CREATE TABLE Account (AccountNumber Number(5), CustomerId Number(10), OpeningDate Date, Balance
Number(10,2), CONSTRAINT Acc_Pkey PRIMARY KEY (AccountNumber,CustomerId)); 

d. CREATE TABLE Account (AccountNumber Number(5), CustomerId Number(10) CONSTRAINT Acc_Pkey2 PRIMARY KEY
(AccountNumber,CustomerId), OpeningDate Date, Balance Number(10,2));

The correct answer is: CREATE TABLE Account (AccountNumber Number(5), CustomerId Number(10), OpeningDate Date,
Balance Number(10,2), CONSTRAINT Acc_Pkey PRIMARY KEY (AccountNumber,CustomerId));

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2557965&cmid=4311&showall=1 11/17
6/29/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

Question Which of the following SQL commands is used to remove table "EMPLOYEE" present in the database? Choose most
34 appropriate option.

Correct
Select one:
Mark 1.00 out of
1.00 a. DELETE TABLE EMPLOYEE;

b. TRUNCATE TABLE EMPLOYEE;

c. REMOVE TABLE EMPLOYEE;

d. DROP TABLE EMPLOYEE; 

The correct answer is: DROP TABLE EMPLOYEE;

Question
Which of the following statement(s) is/are TRUE?
35 (i) In a non-correlated(independent) subquery, the subquery is always executed only once.
Correct (ii) In a non-correlated(independent) subquery, the inner query (sub query) references the column from the outer query (main
Mark 1.00 out of query).
1.00 Choose most appropriate option

Select one:
a. Only (ii)

b. Neither (i) nor (ii)

c. Only (i) 

d. Both (i) and (ii)

The correct answer is: Only (i)

Question Identify the CORRECT SQL statement to create a Account table with composite primary key (AccountNumber, CustomerId).
36 Choose most appropriate option

Correct
Select one:
Mark 1.00 out of
1.00 a. CREATE TABLE Account (AccountNumber Number(5) CONSTRAINT Acc_Pkey1 PRIMARY KEY, CustomerId Number(10)
CONSTRAINT Acc_Pkey2 PRIMARY KEY, OpeningDate Date, Balance Number(10,2));

b. CREATE TABLE Account (AccountNumber Number(5), CustomerId Number(10), OpeningDate Date, Balance
Number(10,2), CONSTRAINT Acc_Pkey COMPOSITE PRIMARY KEY (AccountNumber,CustomerId));

c. CREATE TABLE Account (AccountNumber Number(5), CustomerId Number(10), OpeningDate Date, Balance
Number(10,2), CONSTRAINT Acc_Pkey PRIMARY KEY (AccountNumber,CustomerId)); 

d. CREATE TABLE Account (AccountNumber Number(5), CustomerId Number(10) CONSTRAINT Acc_Pkey2 PRIMARY KEY
(AccountNumber,CustomerId), OpeningDate Date, Balance Number(10,2));

Your answer is correct.


The correct answer is: CREATE TABLE Account (AccountNumber Number(5), CustomerId Number(10), OpeningDate Date,
Balance Number(10,2), CONSTRAINT Acc_Pkey PRIMARY KEY (AccountNumber,CustomerId));

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2557965&cmid=4311&showall=1 12/17
6/29/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

Question Consider the tables given below.


37 Customer(customerId,customerName)
Book(bookId, bookName)
Correct
Purchase(purchaseId, bookId, customerId)
Mark 1.00 out of
1.00
 
bookId and customerId in purchase table are foreign keys referring to Book and Customer tables respectively.
 
Which is the CORRECT SQL statement to retrieve customer name and book name for all books purchased by customers.

Select one:
a. SELECT c.customerName,b.bookName
FROM customer c INNER JOIN purchase p
ON c.customerId=p.customerId
INNER JOIN book b
ON b.bookid=p.bookid; 

b. SELECT c.customerName,b.bookName
FROM customer c INNER JOIN purchase p
ON c.customerId=p.customerId
SELF JOIN book b
ON b.bookid=p.bookid;

c. SELECT c.customerName,b.bookName
FROM customer c INNER JOIN purchase p
ON c.customerId=p.customerId;

d. SELECT c.customerName,b.bookName
FROM customer c INNER JOIN purchase p
INNER JOIN book b
ON b.bookid=p.bookid AND c.customerId=p.customerId;

Your answer is correct.


The correct answer is: SELECT c.customerName,b.bookName
FROM customer c INNER JOIN purchase p
ON c.customerId=p.customerId
INNER JOIN book b
ON b.bookid=p.bookid;

Question 'link', 'vlink' and 'alink' are attributes of which HTML tag?
38
Correct
Choose the most appropriate option.
Mark 1.00 out of
1.00
Select one:
a. <head>

b. <img>

c. <a>

d. <body> 

Your answer is correct.

The correct answer is: <body>

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2557965&cmid=4311&showall=1 13/17
6/29/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

Question Which of the following attribute is used by a HTML tag to apply inline style? Choose most appropriate option.
39
Select one:
Correct
a. styleclass
Mark 1.00 out of
1.00
b. style 

c. class

d. id

Your answer is correct.


The correct answer is: style

Question Which of the following CSS code is the correct one to apply style to tag 'P'? Choose most appropriate option.
40
Select one:
Incorrect
a. p { color:red; text-align:center; }
Mark 0.00 out of
1.00
b. p { color:red; text-align:center }

c. p { color:red; text-align:center }; 

d. p ( color:red; text-align:center; )

The correct answer is: p { color:red; text-align:center; }

Question Which of the following is not a method of document object? Choose most appropriate option.
41
Select one:
Correct

Mark 1.00 out of


a. write(String)
1.00
b. print(String) 

c. getElementByTagName(String)

d. getElementById(String)

The correct answer is: print(String)

Question Choose from below the valid syntax to show "Welcome to JS!!" to user in JavaScript using a pop up. Choose most appropriate
42 option
Correct
Select one:
Mark 1.00 out of
1.00 a. alert("Welcome to JS!!"); 

b. alert(Welcome to JS!!);

c. alertmsg("Welcome to JS!!");

d. alertBox("Welcome to JS!!");

The correct answer is: alert("Welcome to JS!!");

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2557965&cmid=4311&showall=1 14/17
6/29/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

Question Consider the HTML code given below.


43
Correct
<html>
Mark 1.00 out of
1.00
  <head>

    <script>
      var key=10;

      function add(){
        var key=20; 

        window.key=key+1; 
        document.write(key);

        document.write(" "); 
        print();
   }

      function print(){ 
        document.write(key);

   }
    </script>

  </head>
  <body>

    <form>
      <input type="s

Select one:
a. 11 11

b. 20 21 

c. 21 21

d. 11 10

Your answer is correct.

The correct answer is: 20 21

Question Steve is learning to draw a owchart to calculate the volume of a cuboid. Which of the options given below would t into the
44 process section of the ow chart?
Correct

Mark 1.00 out of Select one:


1.00 a. Read the value of l,b,h(l represents the length, b represents the breadth, h represents the height)

b. display the volume of the cuboid

c. Volume=l*b*h 

d. check if l,b,h have positive value

Your answer is correct.

The correct answer is: Volume=l*b*h

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2557965&cmid=4311&showall=1 15/17
6/29/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

Question The properties of good program must have_____


45
Correct Select one:
Mark 1.00 out of a.
1.00 Fault Prevention and fault tolerance 

b.  Component dependence

c.
 Poor Design for change

d. Modules tightly connected

Your answer is correct.

The correct answer is:


Fault Prevention and fault tolerance

Question Carefully read the question and answer accordingly. One of the best application of Stack is
46
Select one:
Correct
a. Radix sort
Mark 1.00 out of
1.00
b. Breadth First Search

c. Recursion 

d. Array

The correct answer is: Recursion

Question Carefully read the question and answer accordingly. What operation is processed for each element in the list
47
Select one:
Correct

Mark 1.00 out of


a. Inserting
1.00
b. Sorting

c. Traversal 

d. Merging

The correct answer is: Traversal

Question An algorithm which executes on constant time period can be denoted as


48
Select one:
Correct

Mark 1.00 out of


a. O(1) 
1.00
b. O(n)

c. O(nlogn)

d. O(n2)

The correct answer is: O(1)

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2557965&cmid=4311&showall=1 16/17
6/29/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

Question Which algorithm is the best sorting method in-place with no quadratic worst-case scenarios?
49
Select one:
Correct

Mark 1.00 out of


a. Heap Sort 
1.00
b. Quick Sort

c. Selection Sort

d. Bubble Sort

The correct answer is: Heap Sort

Question What is the time complexity of nd_count()?


50 int nd_count(int i)
Correct
{
Mark 1.00 out of
1.00
int c=0;
for(int m=0;m<I;m++)

       for(int n=m;n>0;n--)

             c=c+1;
return c;

Select one:
a. theta(n2) 

b. theta(n)

c. theta(nlognlogn)

d. theta(n*logn)

The correct answer is: theta(n2)

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2557965&cmid=4311&showall=1 17/17
6/10/2020 Quiz: Attempt review

  Prashant Raju Ghadge .

 Dashboard / Nobles Mock 1 - Quiz / Quiz / Quiz

Started on Friday, 5 June 2020, 6:15 PM


State Finished
Completed on Friday, 5 June 2020, 7:35 PM
Time taken 1 hour 20 mins
Grade 44 out of 50 (88%)

Question
Identify the CORRECT SQL statement(s) to remove ONLY the data from "Employee" table?
1 (i) DROP TABLE Employee;
Correct (ii) DELETE FROM Employee;
Mark 1 out of 1 (iii) TRUNCATE TABLE Employee;
Choose most appropriate option.

Select one:
a. Both (i) and (iii)

b. Both (ii) and (iii) 

c. Both (i) and (ii)

d. (i), (ii) and (iii)

The correct answer is: Both (ii) and (iii)

Question The employee table contains EmployeeNumber, EmployeeName, Salary and DeptCode Columns. Which is the CORRECT SQL
2 query to display DeptCode and average salary of each department? Choose most appropriate option.

Correct
Select one:
Mark 1 out of 1
a. SELECT DeptCode,avg(salary) FROM Employee GROUP BY DeptCode; 

b. SELECT DeptCode,avg(salary) FROM Employee GROUP BY Salary;

c. SELECT DeptCode,avg(salary) FROM Employee;

d. SELECT DeptCode,avg(salary) FROM Employee GROUP BY EmployeeNumber;

The correct answer is: SELECT DeptCode,avg(salary) FROM Employee GROUP BY DeptCode;

Question
The employee tables contains EmployeeId,EmployeeName and DeptCode Columns. Which is the CORRECT SQL query to
3 display the EmployeeId and EmployeeName of employees who are working in DeptCode 10 OR 20?
Correct (i) SELECT EmployeeId,EmployeeName FROM Employee WHERE DeptCode IN (10,20);
Mark 1 out of 1 (ii) SELECT EmployeeId,EmployeeName FROM Employee WHERE DeptCode = 10 OR DeptCode = 20;
Choose most appropriate option.

Select one:
a. Both (i) and (ii) 

b. Neither (i) nor (ii)

c. Only (ii)

d. Only (i)

The correct answer is: Both (i) and (ii)


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 1/25
6/10/2020 Quiz: Attempt review

  Prashant Raju Ghadge .

Question Consider the table Student(StudentId, StudentName, Email, PercentageOfMarks). Which is the CORRECT query to display the
4 details in the ascending order (lowest to highest) of PercentageOfMarks and in the descending order of StudentId in case
PercentageOfMarks is the same. Choose most appropriate option
Correct

Mark 1 out of 1
Select one:
a. SELECT StudentId, StudentName, Email, PercentageOfmarks FROM Student ORDER BY PercentageOfMarks DESC,
StudentId;

b. SELECT StudentId, StudentName, Email, PercentageOfmarks FROM Student ORDER BY PercentageOfMarks DESC,
StudentId DESC;

c. SELECT StudentId, StudentName, Email, PercentageOfmarks FROM Student ORDER BY PercentageOfMarks, StudentId
DESC; 

d. SELECT StudentId, StudentName, Email, PercentageOfmarks FROM Student ORDER BY StudentId DESC,
PercentageOfMarks;

The correct answer is: SELECT StudentId, StudentName, Email, PercentageOfmarks FROM Student ORDER BY
PercentageOfMarks, StudentId DESC;

Question What is the SQL query for nding the total number of rows in a given table 'emp'? Choose most appropriate option.
5
Select one:
Correct
a. SELECT SUM FROM EMP;
Mark 1 out of 1
b. SELECT COUNT(*) FROM EMP; 

c. SELECT COUNT FROM EMP;

d. SELECT SUM(*) FROM EMP;

The correct answer is: SELECT COUNT(*) FROM EMP;

Question Consider table Item(itemId, category, unitprice). Identify the appropriate SQL statement to display item id and discount in the
6 ascending order of discount. [Note: Discount should be 10% of unitprice] Choose most appropriate option.

Correct
Select one:
Mark 1 out of 1
a. select itemId, discount from Item order by discount;

b. select itemId, unitprice*0.1 as discount from Item order by discount; 

c. select itemId, unitprice*0.1 as discount from Item order by itemId;

d. select itemId, discount=unitprice*0.1 from Item order by discount;

The correct answer is: select itemId, unitprice*0.1 as discount from Item order by discount;

Question which command help us to get back the permission of accessing the table.
7
Select one:
Correct

Mark 1 out of 1
a. rollback

b. commit

c. revoke 

d. grant

The correct answer is: revoke


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 2/25
6/10/2020 Quiz: Attempt review

  Prashant Raju Ghadge .

Question Identify the CORRECT SQL statement to create a table with composite primary key. Choose most appropriate option.
8
Select one:
Correct

Mark 1 out of 1
a. CREATE TABLE Account (AccountNumber Number(5), CustomerId Number(10), OpeningDate Date, Balance
Number(10,2), CONSTRAINT Acc_Pkey COMPOSITE PRIMARY KEY (AccountNumber,CustomerId));

b. CREATE TABLE Account (AccountNumber Number(5), CustomerId Number(10), OpeningDate Date, Balance
Number(10,2), CONSTRAINT Acc_Pkey PRIMARY KEY (AccountNumber,CustomerId)); 

c. CREATE TABLE Account (AccountNumber Number(5), CustomerId Number(10) CONSTRAINT Acc_Pkey2 PRIMARY KEY
(AccountNumber,CustomerId), OpeningDate Date, Balance Number(10,2));

d. CREATE TABLE Account (AccountNumber Number(5) CONSTRAINT Acc_Pkey1 PRIMARY KEY, CustomerId Number(10)
CONSTRAINT Acc_Pkey2 PRIMARY KEY, OpeningDate Date, Balance Number(10,2));

The correct answer is: CREATE TABLE Account (AccountNumber Number(5), CustomerId Number(10), OpeningDate Date,
Balance Number(10,2), CONSTRAINT Acc_Pkey PRIMARY KEY (AccountNumber,CustomerId));

Question Consider the table Employee(empid, empname, designation). Identify the appropriate SQL statement to retrieve all employees
9 whose designation is either 'S or 'A'. Choose most appropriate option.

Incorrect
Select one:
Mark 0 out of 1
a. SELECT * FROM Employee WHERE designation =('S' , 'A');

b. SELECT * FROM Employee WHERE designation IN('S' , 'A');

c. SELECT * FROM Employee WHERE designation =('S' OR 'A'); 

d. SELECT * FROM Employee WHERE designation IN('S' OR 'A');

The correct answer is: SELECT * FROM Employee WHERE designation IN('S' , 'A');

Question What would be the output of the SQL statement given below? SELECT SUBSTR("Accenture",3,4) FROM DUAL; Choose most
10 appropriate option.

Correct
Select one:
Mark 1 out of 1
a. entu

b. ntur

c. centu

d. cent 

The correct answer is: cent

Question Consider table Customer(cid NUMBER(4), cname VARCHAR2(10)) has some records. Identify the appropriate ALTER
11 statements (choose 2)which executes on table Customer [ Note: There is no null value for any column]

Correct
Select one or more:
Mark 1 out of 1
a. ALTER TABLE Customer ADD dob DATE DEFAULT '30-Jun-1995'; 

b. ALTER TABLE Customer MODIFY cname VARCHAR2(15); 

c. ALTER TABLE Customer ADD CONSTRAINT cust_name NOT NULL(cname);

d. ALTER TABLE Customer MODIFY cid NUMBER(2);

The correct answers are: ALTER TABLE Customer ADD dob DATE DEFAULT '30-Jun-1995';, ALTER TABLE Customer MODIFY
cname VARCHAR2(15);


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 3/25
6/10/2020 Quiz: Attempt review

  Prashant Raju Ghadge .

Question Consider the table employee(empname,salary) with some records. Identify a correct SQL statement to retrieve unique
12 combination of empname and salary. Choose most appropriate option.

Correct
Select one:
Mark 1 out of 1
a. select empname,salary from employee;

b. select distinct empname,distinct salary from employee;

c. select distinct empname,salary from employee; 

d. select empname,distinct salary from employee;

The correct answer is: select distinct empname,salary from employee;

Question Assume that table Asset(assetId number(2)) is created and 2 records are already inserted and saved.
13
COMMIT;
Correct
DELETE FROM ASSET;
Mark 1 out of 1
ROLLBACK;
INSERT INTO ASSET VALUES(5);
COMMIT;

What would be the output of the below SQL statement after executing the above statements sequentially.

SELECT COUNT(*) FROM Asset;

Select one:
a. 0

b. 3 

c. 2

d. 1

Your answer is correct.

The correct answer is: 3

Question Consider the below tables.


14 Event(eventId,eventName) – eventId is primary key
Employee(empId, empName, eventId) – empId is primary key and eventId is foreign key referring to Event table.
Correct
Identify the correct SQL statement to retrieve empid, empname and eventName for all employees. If employee has not
Mark 1 out of 1
registered for an event then it should display ‘Not Registered’.

Select one:
a. SELECT e1.empId, e1.empName, NVL(e2.eventName,'Not Registered') FROM event e2 INNER JOIN employee e1 ON
e2.eventId=e1.eventId;

b. SELECT e1.empId, e1.empName, NVL(e2.eventName,'Not Registered') FROM employee e1 LEFT OUTER JOIN event e2
ON e1.eventId=e2.eventId; 

c. SELECT e1.empId, e1.empName, NVL(e2.eventName,'Not Registered') FROM event e2 LEFT OUTER JOIN employee e1
ON e2.eventId=e1.eventId;

d. SELECT e1.empId, e1.empName, NVL(e2.eventName,'Not Registered') FROM employee e1 RIGHT OUTER JOIN event e2
ON e1.eventId=e2.eventId;

Your answer is correct.

The correct answer is: SELECT e1.empId, e1.empName, NVL(e2.eventName,'Not Registered') FROM employee e1 LEFT OUTER
JOIN event e2 ON e1.eventId=e2.eventId;


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 4/25
6/10/2020 Quiz: Attempt review

  Prashant Raju Ghadge .

Question Consider a table with the name Project is created using the SQL statement given below
15
CREATE TABLE Project(
Correct
projectid VARCHAR2(10) CONSTRAINT pkey PRIMARY KEY,
Mark 1 out of 1
projectname VARCHAR2(10) CONSTRAINT pnull NOT NULL,
employeecount NUMBER(2) DEFAULT 0);

Which of the following statements insert record successfully to the Project table [Choose 2]

Select one or more:


a. INSERT INTO project VALUES('P1','Finance';)

b. INSERT INTO project(projectid,projectname) VALUES('P2','Finance'); 

c. INSERT INTO project(projectid,employeecount) VALUES('P3',10);

d. INSERT INTO project VALUES('P1','Finance',20); 

Your answer is correct.

The correct answers are: INSERT INTO project VALUES('P1','Finance',20);, INSERT INTO project(projectid,projectname)
VALUES('P2','Finance');

Question What will be the output of the following Java code?


16 class Vehicle
Incorrect {
public Vehicle()
Mark 0 out of 1
{
System.out.print("Default ");
}
}
class Car extends Vehicle
{
public Car(String carName)
{
System.out.print(carName + "");
}
}
public class InheritanceTester
{
public static void main(String[] args)
{
Car car=new Car("Ford");
}
}

Choose the most appropriate option.

Select one:
a. Ford 

b. Ford Default

c. Compilation error: Parent class 'Vehicle' does not have parameterized constructor

d. Default Ford

The correct answer is: Default Ford


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 5/25
6/10/2020 Quiz: Attempt review

  Prashant Raju Ghadge .

Question What will be the output of the following Java code?


17 public class Rectangle
Correct {
private int length;
Mark 1 out of 1
private int width;
public static void main(String[] args)
{
Rectangle rectangle1 = new Rectangle();
rectangle1.length=10;
rectangle1.width=5;
Rectangle rectangle2 = rectangle1;
System.out.println("Length : "+rectangle2.length);
System.out.println("Width : "+rectangle2.width);
}
}

Choose the most appropriate option.

Select one:
a. Length : 0 Width : 0

b. Length : 10 Width : 5 

c. Length : null Width : null

d. Length: 5 Width: 10

The correct answer is: Length : 10 Width : 5

Question Identify the appropriate relationship between the classes House and Room. Assume that getter and setter methods for all
18 instance variables are implemented

Correct class Room


{
Mark 1 out of 1
private int length;
private float width;
}
class House
{
private float area;
private Room room;
public House()
{
room=new Room();
}
}

Choose the most appropriate option

Select one:
a. No relationship exists between class House and class Room

b. Aggregation

c. Composition 

d. Specialization

The correct answer is: Composition


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 6/25
6/10/2020 Quiz: Attempt review

  Prashant Raju Ghadge .

Question What will be the output of the following Java code?


19 public class ApplicationTester
Correct {
public static void main(String[] args)
Mark 1 out of 1
{
int i=0;
for(i=0; i<10; i++)
{
if(i == 5)
{
continue;
}
i++;
System.out.print(i + " ");
}
}
}

Choose the most appropriate option.

Select one:
a. 1 2 3 4 and then program will get into in nite loop

b. 1 2 3 4 6 7 8 9

c. 1 2 3 4 5 6 7 8 9

d. 1 3 5 7 9 

The correct answer is: 1 3 5 7 9

Question Identify the relationship between the class Patient and class Doctor which are given below.
20 public class Patient
Correct {
private String name;
Mark 1 out of 1
//getter and setter methods
}
public class Doctor
{
private String name;
private String specialization;
//getter and setter methods
public void treatPatient(Patient patient)
{
//valid Java code
}
}

Choose the most appropriate option.

Select one:
a. No relationship exists between Doctor class and Patient class

b. Inheritance

c. Composition

d. Aggregation 

The correct answer is: Aggregation


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 7/25
6/10/2020 Quiz: Attempt review

  Prashant Raju Ghadge .

Question What will be the output of the following Java code?


21 public class ApplicationTester
Correct {
public static void main(String[] args)
Mark 1 out of 1
{
String s1 = "One";
String s2 = "One";
System.out.println((s1==s2) + " " + s1.equals(s2));
}
}

Choose the most appropriate option.

Select one:
a. true true 

b. false true

c. true false

d. false false

The correct answer is: true true

Question What will be the output of the following Java code?


22 public class Employee
Correct {
private static int count; static
Mark 1 out of 1
{
Employee.count = 101;
}
public Employee()
{
Employee.count = 201;
}
public static int getCount()
{
return Employee.count;
}
}
public class ApplicationTester
{
public static void main(String[] args)
{
Employee emp = new Employee();
System.out.println(emp.getCount());
}
}

Choose the most appropriate option.

Select one:
a. 101

b. 201 

c. null

d. 0

The correct answer is: 201


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 8/25
6/10/2020 Quiz: Attempt review

  Prashant Raju Ghadge .

Question What will be the output of the following Java code?


23 public class LocalVariableTester
Correct {
public static void main(String[] args)
Mark 1 out of 1
{
int data1=8, data2;
if(data1 >= 10)
{
data2 = 20;
}
System.out.println(data1 + " " + data2);
}
}

Choose the most appropriate option

Select one:
a. 10 20

b. 10 0

c. Compilation error: The local variable 'data2' may not have been initialized 

d. 10 null

The correct answer is: Compilation error: The local variable 'data2' may not have been initialized

Question Which of the following statement(s) is/are FALSE?


24 (i) 'package ' statement can appear any where in the Java code
Correct (ii) In a Java code, only one 'import ' statement can be written
Mark 1 out of 1 Choose the most appropriate option.

Select one:
a. Only (i) is FALSE

b. Both (i) and (ii) are TRUE

c. Both (i) and (ii) are FALSE 

d. Only (ii) is FALSE

The correct answer is: Both (i) and (ii) are FALSE


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 9/25
6/10/2020 Quiz: Attempt review

  Prashant Raju Ghadge .

Question What will be the output of the following Java code?


25 public class MyClass
Correct {
private static int data;
Mark 1 out of 1
static
{
MyClass.data = 999;
}
public static int getData()
{
return data;
}
public static void setData(int data)
{
MyClass.data = data;
}
}
public class ApplicationTester
{
public static void main(String[] args)
{
MyClass ref1 = new MyClass();
MyClass ref2 = new MyClass();
System.out.print(ref1.getData());
ref2.setData(111);
System.out.println(" " + ref1.getData());
}
}

Choose the most appropriate option.

Select one:
a. 999 111 

b. 999 999

c. 111 111

d. 0 111

The correct answer is: 999 111


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 10/25
6/10/2020 Quiz: Attempt review

  Prashant Raju Ghadge .

Question What will be the output of the following Java code?


26 public class Employee
Incorrect {
private static int employeeCount;
Mark 0 out of 1
public Employee()
{
employeeCount++;
//Line-1
}
public static int getEmployeeCount()
{
return Employee.employeeCount;
}
}
public class StaticTester
{
public static void main(String[] args)
{
Employee emp1 = new Employee();
Employee emp2 = new Employee();
Employee emp3 = new Employee();
System.out.println(Employee.getEmployeeCount());
}
}

Choose the most appropriate option.

Select one:
a. 1

b. 3

c. Compilation error at Line-1: Cannot use static member 'employeeCount' in a non-static context 

d. 0

The correct answer is: 3


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 11/25
6/10/2020 Quiz: Attempt review

  Prashant Raju Ghadge .

Question What will be the output of the following Java code?


27 public class Vehicle
Correct {
protected String enginePower;
Mark 1 out of 1
public Vehicle()
{
this.enginePower = "100CC";
}
public String getEnginePower()
{
return this.enginePower;
}
}
public class PassengerVehicle extends Vehicle
{
private int capacity;
public PassengerVehicle()
{
this.capacity = 50;
this.enginePower = "150CC";
}
public int getCapacity()
{
return this.capacity;
}
}
public class ApplicationTester
{
public static void main(String[] args)
{
Vehicle vehicle = new PassengerVehicle();
System.out.println(vehicle.getEnginePower());
}
}

Choose the most appropriate option.

Select one:
a. 100CC150CC

b. 150CC 

c. 100CC

d. null

The correct answer is: 150CC


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 12/25
6/10/2020 Quiz: Attempt review

  Prashant Raju Ghadge .

Question What will be the output of the following Java code?


28 public class Employee
Correct {
private String mailId;
Mark 1 out of 1
public void setEmailId(String mailId)
{
this.mailId = mailId;
}
public String getEmailId()
{
return this.mailId;
}
}
public class UtilityClass
{
public static void updateEmailId(Employee emp)
{
emp.setEmailId("[email protected]");
}
}
public class ApplicationTester { public static void main(String[] args)
{
Employee employee1 = new Employee();
employee1.setEmailId("[email protected]");
UtilityClass.updateEmailId(employee1);
//Line-1
System.out.println(employee1.getEmailId());
}
}

Choose the most appropriate option.

Select one:
a. null

b. [email protected]

c. Compilation error at Line-1: Invalid method call 'UtilityClass.updateEmailId(String) '

d. [email protected]

The correct answer is: [email protected]


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 13/25
6/10/2020 Quiz: Attempt review

  Prashant Raju Ghadge .

Question Predict the output of the following Java code.


29 public class Customer
Correct {
public void getCustomer(String customer_name)
Mark 1 out of 1
{
System.out.println("Customer name is : "+customer_name);
}
public void getCustomer(int customerId, String customer_location)
{
System.out.println("Customer location : "+customer_location+" & Customer Id : "+customerId);
}
public void getCustomer(int customerId, float reward_points)
{
System.out.println("Customer Id : "+customerId+" & reward points till date is :"+reward_points);
}
public static void main(String[] args)
{
Customer c = new Customer();
c.getCustomer("Smith");
c.getCustomer(1232,560.0f);
c.getCustomer(1232, "Florida");
}
}

Choose the most appropriate option.

Select one:
a. Customer name is : Smith 
Customer location : Florida reward points till date is :560 
Customer location : Florida & Customer Id : 1232

b. Compilation Error. The method getCustomer(int, String) in the type Customer is not applicable for the arguments (int,
oat)

c. Customer name is : Smith 


Customer Id : 1232 & reward points till date is :560.0 
Customer location : Florida & Customer Id : 1232 

d. Customer name is : Smith


Customer location : Florida & Customer Id : NULL
Customer Id : NULL & reward points till date is :560

The correct answer is: Customer name is : Smith 


Customer Id : 1232 & reward points till date is :560.0 
Customer location : Florida & Customer Id : 1232


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 14/25
6/10/2020 Quiz: Attempt review

  Prashant Raju Ghadge .

Question What will be the output of the following Java code?


30 public interface MyInterface
Correct {
int MY_DATA = 100; public void display();
Mark 1 out of 1
}
public class MyClass implements MyInterface
{
public MyClass()
{
MyInterface.MY_DATA = 200;
//Line-1
}
public void display()
{
System.out.println(MyInterface.MY_DATA);
}
}
public class ApplicationTester
{
public static void main(String[] args)
{
MyInterface ref = new MyClass();
//Line-2 ref.display();
}
}

Choose the most appropriate option.

Select one:
a. 100

b. Compilation error at Line-1: The nal eld MyInterface.MY_DATA cannot be assigned 

c. Compilation error at Line-2: Invalid reference type 'MyInterface '

d. 200

The correct answer is: Compilation error at Line-1: The nal eld MyInterface.MY_DATA cannot be assigned


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 15/25
6/10/2020 Quiz: Attempt review

  Prashant Raju Ghadge .

Question What will be the output of the following Java code?


31 public class MyClass
Incorrect {
private static int count;
Mark 0 out of 1
static
{
MyClass.count = 100;
//Line-1
int count = 100;
//Line-2
}
public MyClass()
{
count++ ;
}
public static int getCount()
{
return count;
}
}
public class StaticTester
{
public static void main(String[] args)
{
MyClass ref1 = new MyClass();
MyClass ref2 = new MyClass();
System.out.println(ref1.getCount());
}
}

Choose the most appropriate option.

Select one:
a. 2

b. Compilation error at Line-2: Duplicate variable 'count'

c. 102

d. Compilation error at Line-1: Invalid variable reference 'MyClass.count' 

The correct answer is: 102

Question What will be the output of the following Java code?


32
Incorrect public class MyClass
{
Mark 0 out of 1
public static void main (String[] args)
{
int value1=33;
int value2=--value1;
int value3=value1++;
System.out.println(value1+" "+value2+" "+value3);
}
}

Choose the most appropriate option.

Select one:
a. 32 32 32

b. 32 33 32

c. 32 32 33 

d. 33 32 32

The correct answer is: 33 32 32


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 16/25
6/10/2020 Quiz: Attempt review

  Prashant Raju Ghadge .

Question Given the below code. What is output ?


33 class Currency
Correct {
private String country = "Canada";
Mark 1 out of 1
public String getC()
{
return country;
}
}
class JapeneseYen extends Currency
{
public String getC()
{
return super.country; //Line 12
}
}
public class AustralianDollar extends Currency
{
public String getC(int x)
{
return super.getC();
}
public static void main(String[] args)
{
System.out.print(new JapeneseYen().getC() + " " + new AustralianDollar().getC());
}
}

Choose most appropriate option.

Select one:
a. Canada null

b. Compilation fails due to an error on line 12 ";country is not visible ";. 

c. null Canada

d. Canada Canada

e. null null

The correct answer is: Compilation fails due to an error on line 12 ";country is not visible ";.

Question What will be the output of the following Java code?


34 public class ApplicationTester
Correct {
public static void main(String[] args)
Mark 1 out of 1
{
for(int i=0; i<=10; i++)
{
if(i>6)
break;
}
System.out.println(i); //Line-1
}
}

Choose most appropriate option.

Select one:
a. Compilation error at Line-1: i cannot be resolved to a variable 

b. null

c. 6

d. 5

The correct answer is: Compilation error at Line-1: i cannot be resolved to a variable


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 17/25
6/10/2020 Quiz: Attempt review

  Prashant Raju Ghadge .

Question What is the output of the following code?


35 class Account
Correct {
int balance;
Mark 1 out of 1
public void createAccount()
{
balance = 1000;
}
public int getMinimumBalance()
{
return balance;
}
}
class SalaryAccount extends Account
{
private String companyName;
public SalaryAccount(String companyName)
{
this.companyName = companyName;
}
public void createAccount()
{
balance = 500;
}
public void checkCompany()
{
if (companyName.equalsIgnoreCase("Accenture"))
{
balance = 0;
}
}
}
public class MainClass
{
public static void main(String[] args)
{
Account account = new SalaryAccount("Accenture");
account.createAccount();
System.out.println("Balance : " + account.getMinimumBalance());
account.checkCompany();
System.out.println("Balance : " + account.getMinimumBalance());
}
}

Choose the most appropriate option.

Select one:
a. Balance: 1000 Balance: 500

b. Compilation Error: The method checkCompany() is unde ned for the type Account 

c. Balance: 1000 Balance: 0

d. Balance: 500 Balance: 0

The correct answer is: Compilation Error: The method checkCompany() is unde ned for the type Account


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 18/25
6/10/2020 Quiz: Attempt review

  Prashant Raju Ghadge .

Question What will be the output of the following Java code?


36 class Base
Correct {
protected void getDetails()
Mark 1 out of 1
{
System.out.println("Base method");
}
}
class Derived extends Base
{
private void getDetails()
{
System.out.println("Derived method");
}
}
public class Main
{

public static void main(String[] args)


{
Base obj=new Derived();
obj.getDetails();

}
}

Select one:
a. Prints "Base method"

b. prints both "Base method" "Derived method"

c. compliation error :weaker access privileges 

d. Prints "Dervied method"

The correct answer is: compliation error :weaker access privileges

Question Refer to the below code:


37 <script>
Correct function helloMessage(){
var jsName = //Line1 alert('Hello '+jsName+' !')
Mark 1 out of 1
}
</script>
<form>
Enter First Name : <input type="text" name="firstName" id="first"><br>
<input type="button" value="Click Here!" onclick="helloMessage()">
</form>

Which is the CORRECT code to be inserted at "Line1" to make the JavaScript run properly? Choose most appropriate option

Select one:
a. document.getElementById(' rst').value; 

b. document.getElementById. rst.value;

c. document.getElementByName(' rst').value;

d. document.getElement(' rst').value;

The correct answer is: document.getElementById(' rst').value;


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 19/25
6/10/2020 Quiz: Attempt review

  Prashant Raju Ghadge .

Question which of the following code creates a list box from which user can select more than one option?
38
Select one:
Correct
a. <select type=multiValue><br />
Mark 1 out of 1
 <option> P </option><br />
 <option> G </option><br />
 <option> S </option><br />
</select>

b. <select type=multiple><br />


 <option> P </option><br />
 <option> G </option><br />
 <option> S </option><br />
</select>

c. <select name='type' multiValue><br />


 <option> P </option><br />
 <option> G </option><br />
 <option> S </option><br />
</select>

d. <select name='type' multiple><br />


 <option> P </option><br />
 <option> G </option><br />
 <option> S </option><br />
</select> 

Your answer is correct.


The correct answer is: <select name='type' multiple><br />
 <option> P </option><br />
 <option> G </option><br />
 <option> S </option><br />
</select>

Question Which of the following attribute is used by a HTML tag to apply inline style? Choose most appropriate option.
39
Select one:
Correct
a. id
Mark 1 out of 1
b. class

c. style 

d. styleclass

Your answer is correct.

The correct answer is: style

Question Johana wants to display "Welcome to JS!!" as a pop up message using JavaScript. Which of the following suits her
40 requirement?

Correct
Select one:
Mark 1 out of 1
a. alertmsg("Welcome to JS!!");

b. alert("Welcome to JS!!"); 

c. alert(Welcome to JS!!);

d. alertBox("Welcome to JS!!");

The correct answer is: alert("Welcome to JS!!");


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 20/25
6/10/2020 Quiz: Attempt review

  Prashant Raju Ghadge .

Question Which of the following is the correct html form element to create the checkbox in a web page? Choose most appropriate
41 option.

Correct
Select one:
Mark 1 out of 1
a. <input type="checkbox"> 

b. <input checkbox>

c. <input=checkbox>

d. <checkbox>

The correct answer is: <input type="checkbox">

Question Which of the following is not a method of document object? Choose most appropriate option.
42
Select one:
Correct
a. getElementById(String)
Mark 1 out of 1
b. write(String)

c. getElementByTagName(String)

d. print(String) 

The correct answer is: print(String)

Question Which of the following statements is TRUE for CSS?


43 A. An external style sheet is ideal when the style is applied to many pages
Correct B. An inline style created for a html tag can be reused for other tags in same page.
Mark 1 out of 1 Choose most appropriate option.

Select one:
a. Only A 

b. Only B

c. Both A and B

d. Neither A nor B

The correct answer is: Only A

Question Identify the CORRECT statements with respect to CSS.


44 a) CSS is used for giving style for HTML content
Correct b) External style sheet can be used only for one HTML page in a website
Mark 1 out of 1 Choose most appropriate option.

Select one:
a. only a 

b. only b

c. neither a nor b

d. both a and b

The correct answer is: only a


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 21/25
6/10/2020 Quiz: Attempt review

  Prashant Raju Ghadge .

Question Which of the following is correct syntax to refer an external java script le called “formValidation.js”? Choose most appropriate
45 option.

Correct
Select one:
Mark 1 out of 1
a. <script name = “formValidation.js”></script>

b. <script href = “formValidation.js”></script>

c. <script source = “formValidation.js”></script>

d. <script src = “formValidation.js”></script> 

The correct answer is: <script src = “formValidation.js”></script>

Question Identify the CORRECT HTML code to de ne the state of the hyperlink. The requirement is to display the hyperlink "Click" in RED
46 color if user has already visited "https://portal.accenture.com". Choose most appropriate option.

Incorrect
Select one:
Mark 0 out of 1
a. <html>
 <body>
 <a href="https://portal.accenture.com/" link="red"> Click </a>
 </body>
 </html>

b. <html>
 <body vlink="red" >
<a href="https://portal.accenture.com/">Click </a>
 </body>
 </html>

c. <html>
<body link="red" >
<a href="https://portal.accenture.com/"> Click </a>
</body>
</html>

d. <html>
 <body>
 <a href="https://portal.accenture.com/" vlink="red"> Click </a>
 </body>
 </html> 

The correct answer is: <html>


 <body vlink="red" >
<a href="https://portal.accenture.com/">Click </a>
 </body>
 </html>

Question Which method is used to remove focus from the speci ed object? Choose most appropriate option.
47
Select one:
Correct

Mark 1 out of 1
a. onfocus()

b. onclick()

c. onsubmit()

d. onblur() 

The correct answer is: onblur()


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 22/25
6/10/2020 Quiz: Attempt review

  Prashant Raju Ghadge .

Question Consider the HTML code given below.


48
Correct
<html>
Mark 1 out of 1
  <head>
    <script>

      var key=10;

      function add(){

        var key=20;


        window.key=key+1;

        document.write(key);

        document.write(" ");

        print();
      }

      function print(){

        document.write(key);
      }

    </script>

  </head>

  <body>
    <form>

      <input type="submit" onclick="add()" />

    </form>

  </body>
</html>

What will be displayed after executing the above code?


Choose the most appropriate option.

Select one:
a. 20 21 

b. 21 21

c. 11 11

d. 11 10

Your answer is correct.


The correct answer is: 20 21


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 23/25
6/10/2020 Quiz: Attempt review

  Prashant Raju Ghadge .

Question What would be the output of the Javascript code given below?
49
Correct
<html>
Mark 1 out of 1
<body>

<script>

 var num1=100;
 function test(){

    num2=200;

    var num1=300;
    num1=num2;

 }

 test();

 document.write(num1 +"-"+num2);
 </script>

</body>

</html>

Select one:
a. 300-200

b. 200-200

c. 100-200 

d. 300-100

Your answer is correct.

The correct answer is: 100-200


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 24/25
6/10/2020 Quiz: Attempt review

  Prashant Raju Ghadge .

Question Consider the javascript code given below. What would be the print values from line 1 and line 2 on execution?
50
Correct
<html> 
Mark 1 out of 1
   <body> 

     <p id="id1"></p><!-- line 1--> 


     <p id="id2"></p><!-- line 2-->

     <script>

       var y=10; 
       myFunction();

       document.getElementById("id1").innerHTML = y; 

       document.getElementById("id2").innerHTML = window.y;

       function myFunction() {
         y=20; 

         y=y+window.y

       } 

     </script>
   </body> 

</html>

Choose the most appropriate option.

Select one:
a. 40 40 

b. 10 40

c. 10 30

d. 10 10

Your answer is correct.


The correct answer is: 40 40


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 25/25
6/18/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

 Dashboard / Nobles Mock 2 - Quiz / Quiz / Quiz

Started on Friday, 12 June 2020, 5:24 PM


State Finished
Completed on Friday, 12 June 2020, 6:22 PM
Time taken 57 mins 39 secs
Grade 41 out of 50 (82%)

Question Which is the CORRECT SQL statement to add the new column "DateOfJoining" to an existing table "Employee"? Choose most
1 appropriate option.

Correct
Select one:
Mark 1 out of 1
a. ALTER TABLE Employee UPDATE DateOfJoining DATE;

b. ALTER TABLE Employee ADD DateOfJoining DATE; 

c. CREATE TABLE Employee ADD DateOfJoining DATE;

d. ALTER TABLE Employee MODIFY DateOfJoining DATE;

The correct answer is: ALTER TABLE Employee ADD DateOfJoining DATE;

Question
The employee tables contains EmployeeId,EmployeeName and DeptCode Columns. Which is the CORRECT SQL query to
2 display the EmployeeId and EmployeeName of employees who are working in DeptCode 10 OR 20?
Correct (i) SELECT EmployeeId,EmployeeName FROM Employee WHERE DeptCode IN (10,20);
Mark 1 out of 1 (ii) SELECT EmployeeId,EmployeeName FROM Employee WHERE DeptCode = 10 OR DeptCode = 20;
Choose most appropriate option.

Select one:
a. Both (i) and (ii) 

b. Neither (i) nor (ii)

c. Only (ii)

d. Only (i)

The correct answer is: Both (i) and (ii)

Question The employee table contains EmployeeNumber, EmployeeName, Salary and DeptCode Columns. Which is the CORRECT SQL
3 query to display DeptCode and average salary of each department? Choose most appropriate option.

Correct
Select one:
Mark 1 out of 1
a. SELECT DeptCode,avg(salary) FROM Employee GROUP BY EmployeeNumber;

b. SELECT DeptCode,avg(salary) FROM Employee GROUP BY DeptCode; 

c. SELECT DeptCode,avg(salary) FROM Employee GROUP BY Salary;

d. SELECT DeptCode,avg(salary) FROM Employee;

The correct answer is: SELECT DeptCode,avg(salary) FROM Employee GROUP BY DeptCode;

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 1/22
6/18/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

Question Identify the CORRECT SQL statement(s) to remove ONLY the data from "Employee" table?
4 (i) DROP TABLE Employee;
Correct (ii) DELETE FROM Employee;
Mark 1 out of 1 (iii) TRUNCATE TABLE Employee;
Choose most appropriate option.

Select one:
a. Both (ii) and (iii) 

b. Both (i) and (iii)

c. Both (i) and (ii)

d. (i), (ii) and (iii)

The correct answer is: Both (ii) and (iii)

Question Consider a table Account(accountId, balance). 


5 Observe the below statements. Few queries results in same output. Identify those queries. (Choose two).
Correct

Mark 1 out of 1 Select one or more:


a. SELECT * FROM Account WHERE balance > 1000 AND balance < 5000;

b. SELECT * FROM Account WHERE balance >= 1000 AND balance <= 5000; 

c. SELECT * FROM Account WHERE balance between 1000 AND 5000; 

d. SELECT * FROM Account WHERE balance >= 1000 OR balance <= 5000;

The correct answers are: SELECT * FROM Account WHERE balance >= 1000 AND balance <= 5000;, SELECT * FROM Account
WHERE balance between 1000 AND 5000;

Question Which of the following can be created as a table level constraint?


6 (i) primary Key
Correct (ii) foreign key
Mark 1 out of 1 (iii) unique
Choose most appropriate option.

Select one:
a. (i) and (iii)

b. (i) only

c. (i) and (ii)

d. (i), (ii) and (iii) 

The correct answer is: (i), (ii) and (iii)

Question Consider table Students(studentId, branchid). Identify the CORRECT SQL statement to retrieve the branches which has more
7 than 3 students. Choose most appropriate option.
Incorrect
Select one:
Mark 0 out of 1
a. SELECT branchid FROM Students GROUP BY branchid HAVING COUNT(*) > 3;

b. SELECT branchid FROM Students HAVING COUNT(*) >3;

c. SELECT branchid FROM Students WHERE COUNT(*) >3 GROUP BY branchid;

d. SELECT branchid FROM Students GROUP BY studentId HAVING COUNT(*) > 3; 

The correct answer is: SELECT branchid FROM Students GROUP BY branchid HAVING COUNT(*) > 3;
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 2/22
6/18/2020 Quiz: Attempt review
The correct answer is: SELECT branchid FROM Students GROUP BY branchid HAVING COUNT(*) > 3;
 Abhijit Mukund Pimpale .

Question Consider table Item(itemId, category, unitprice). Identify the appropriate SQL statement to display item id and discount in the
8 ascending order of discount. [Note: Discount should be 10% of unitprice] Choose most appropriate option.

Correct
Select one:
Mark 1 out of 1
a. select itemId, discount=unitprice*0.1 from Item order by discount;

b. select itemId, unitprice*0.1 as discount from Item order by itemId;

c. select itemId, unitprice*0.1 as discount from Item order by discount; 

d. select itemId, discount from Item order by discount;

The correct answer is: select itemId, unitprice*0.1 as discount from Item order by discount;

Question Consider the table Products(pid,pname,pcost). Identify the appropriate SQL statement to rename the table to ProductsInfo .
9 Choose most appropriate option.

Correct
Select one:
Mark 1 out of 1
a. ALTER TABLE Products UPDATE TO ProductsInfo;

b. ALTER TABLE Products RENAME ProductsInfo;

c. ALTER TABLE Products RENAME TO ProductsInfo; 

d. ALTER TABLE RENAME Products TO ProductsInfo;

The correct answer is: ALTER TABLE Products RENAME TO ProductsInfo;

Question Which of the following SQL commands is used to remove table "EMPLOYEE" present in the database? Choose most
10 appropriate option.

Correct
Select one:
Mark 1 out of 1
a. TRUNCATE TABLE EMPLOYEE;

b. DROP TABLE EMPLOYEE; 

c. DELETE TABLE EMPLOYEE;

d. REMOVE TABLE EMPLOYEE;

The correct answer is: DROP TABLE EMPLOYEE;

Question Consider the table employee(empname,salary) with some records. Identify a correct SQL statement to retrieve unique
11 combination of empname and salary. Choose most appropriate option.

Correct
Select one:
Mark 1 out of 1
a. select distinct empname,distinct salary from employee;

b. select distinct empname,salary from employee; 

c. select empname,salary from employee;

d. select empname,distinct salary from employee;

The correct answer is: select distinct empname,salary from employee;

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 3/22
6/18/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

Question Which of the following statement(s) is/are TRUE?


12
Correct
(i) In a subquery, the inner query is responsible for giving result.
Mark 1 out of 1

(ii) In a subquery, the outer query is responsible to display output.

Choose most appropriate option

Select one:
a. Only (ii)

b. Only (i)

c. Both (i) and (ii) 

d. Neither (i) nor (ii)

The correct answer is: Both (i) and (ii)

Question Assume that table Asset(assetId number(2)) is created and 2 records are already inserted and saved.
13
COMMIT;
Correct
DELETE FROM ASSET;
Mark 1 out of 1
ROLLBACK;
INSERT INTO ASSET VALUES(5);
COMMIT;

What would be the output of the below SQL statement after executing the above statements sequentially.

SELECT COUNT(*) FROM Asset;

Select one:
a. 3 

b. 0

c. 2

d. 1

Your answer is correct.

The correct answer is: 3

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 4/22
6/18/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

Question Consider the tables given below.


14 Customer(customerId,customerName)
Book(bookId, bookName)
Correct
Purchase(purchaseId, bookId, customerId)
Mark 1 out of 1
 
bookId and customerId in purchase table are foreign keys referring to Book and Customer tables respectively.
 
Which is the CORRECT SQL statement to retrieve customer name and book name for all books purchased by customers.

Select one:
a. SELECT c.customerName,b.bookName
FROM customer c INNER JOIN purchase p
ON c.customerId=p.customerId
INNER JOIN book b
ON b.bookid=p.bookid; 

b. SELECT c.customerName,b.bookName
FROM customer c INNER JOIN purchase p
INNER JOIN book b
ON b.bookid=p.bookid AND c.customerId=p.customerId;

c. SELECT c.customerName,b.bookName
FROM customer c INNER JOIN purchase p
ON c.customerId=p.customerId
SELF JOIN book b
ON b.bookid=p.bookid;

d. SELECT c.customerName,b.bookName
FROM customer c INNER JOIN purchase p
ON c.customerId=p.customerId;

Your answer is correct.

The correct answer is: SELECT c.customerName,b.bookName


FROM customer c INNER JOIN purchase p
ON c.customerId=p.customerId
INNER JOIN book b
ON b.bookid=p.bookid;

Question Consider Project table given below.


15 PROJECTID   EMPLOYEEID
Correct
---------------   -------------------
Mark 1 out of 1
         1                   10

         2                   11

         1                   13

Identify the correct SQL statement to display the projectId which has more than one employee.

Select one:
a. SELECT DISTINCT projectid FROM project WHERE projectid IN( SELECT projectid FROM project GROUP BY projectid
WHERE COUNT(employeeId)>1);

b. SELECT DISTINCT projectid FROM project WHERE projectid IN( SELECT projectid FROM project GROUP BY projectid
HAVING COUNT(employeeId)>1); 

c. SELECT DISTINCT projectid FROM project WHERE projectid IN( SELECT projectid FROM project WHERE
COUNT(employeeId)>1);

d. SELECT DISTINCT projectid FROM project WHERE projectid IN( SELECT projectid FROM project HAVING
COUNT(employeeId)>1);

Your answer is correct.

The correct answer is: SELECT DISTINCT projectid FROM project WHERE projectid IN( SELECT projectid FROM project GROUP
BY projectid HAVING COUNT(employeeId)>1);

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 5/22
6/18/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

Question Identify the appropriate relationship between the classes House and Room. Assume that getter and setter methods for all
16 instance variables are implemented

Correct class Room


{
Mark 1 out of 1
private int length;
private float width;
}
class House
{
private float area;
private Room room;
public House()
{
room=new Room();
}
}

Choose the most appropriate option

Select one:
a. Composition 

b. No relationship exists between class House and class Room

c. Aggregation

d. Specialization

The correct answer is: Composition

Question If Employee class is created inside com.test package, what could be the rst line in class? Choose most appropriate option.
17
Select one:
Correct
a. package com.test 
Mark 1 out of 1
b. class Employee{}

c. packages com.test

d. package com.test.Employee

The correct answer is: package com.test

Question Consider the Java code given below. How many times "1" will be printed when the code is executed?
18 public class ApplicationTester
Correct {
public static void main(String[] args)
Mark 1 out of 1
{
int i = -1;
while( ++i <= 1)
{
System.out.println("1");
i++;
}
}
}

Choose the most appropriate option.

Select one:
a. 3 times

b. 1 time 

c. Nothing will be printed.

d. 2 times

The correct answer is: 1 time

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 6/22
6/18/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

Question Consider the Java code given below. How many times "Accenture" will be printed when the code is executed?
19 public class Tester
Correct {
public static void main(String[] args)
Mark 1 out of 1
{
for(int i=0; i <5; i++)
{
System.out.println("Accenture");
i++;
}
}
}

Choose the most appropriate option.

Select one:
a. 4 times

b. 2 times

c. 3 times 

d. 1 time

The correct answer is: 3 times

Question What will be the output of the following Java code?


20 public class ApplicationTester
Correct {
public static void main(String[] args)
Mark 1 out of 1
{
String s1 = "One";
String s2 = "One";
System.out.println((s1==s2) + " " + s1.equals(s2));
}
}

Choose the most appropriate option.

Select one:
a. true false

b. true true 

c. false false

d. false true

The correct answer is: true true

Question which of the following represents correct order from the most to least restrictive? Choose most appropriate option.
21
Select one:
Correct

Mark 1 out of 1
a. private,protected,default,public

b. public,protected,default,private

c. private,default,proctected,public 

d. protected,private,default,public

The correct answer is: private,default,proctected,public

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 7/22
6/18/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

Question What will be the output of the following Java code?


22 class Vehicle
Correct {
public Vehicle()
Mark 1 out of 1
{
System.out.print("Default ");
}
}
class Car extends Vehicle
{
public Car(String carName)
{
System.out.print(carName + "");
}
}
public class InheritanceTester
{
public static void main(String[] args)
{
Car car=new Car("Ford");
}
}

Choose the most appropriate option.

Select one:
a. Ford Default

b. Default Ford 

c. Compilation error: Parent class 'Vehicle' does not have parameterized constructor

d. Ford

The correct answer is: Default Ford

Question Observe the below code,


23 public class MyClass
Incorrect {
public int display(int num1,float num2)
Mark 0 out of 1
{
return 0;
}
public double display(String name, int salary)
{
return 0.0;
}
//Line 1
}

Which of the below function can be inserted at line 1 so that the code compiles successfully.

Select one:
a. public oat display(int num1, oat num2){ return 0.0f; } 

b. public String display(String name, int salary{ return success; }

c. public void display(int num1,String num2){ }

d. public double display(String empName, int empId){ return 0.0; }

The correct answer is: public void display(int num1,String num2){ }

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 8/22
6/18/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

Question What will be the output of the following Java code?


24 public class Employee
Correct {
private static int employeeCount;
Mark 1 out of 1
public Employee()
{
employeeCount++;
//Line-1
}
public static int getEmployeeCount()
{
return Employee.employeeCount;
}
}
public class StaticTester
{
public static void main(String[] args)
{
Employee emp1 = new Employee();
Employee emp2 = new Employee();
Employee emp3 = new Employee();
System.out.println(Employee.getEmployeeCount());
}
}

Choose the most appropriate option.

Select one:
a. 0

b. 3 

c. 1

d. Compilation error at Line-1: Cannot use static member 'employeeCount' in a non-static context

The correct answer is: 3

Question Predict the line of code


25 Abstract class Base1
Incorrect {
protected void getDetails()
Mark 0 out of 1
{
System.out.println("Base method");
}
public Abstract void demomethod();
}
Abstract class Base2 extends Base1
{
public Abstract void samplemethod();
}
class Derived extends Base2
{
//Line1
}

Select one:
a. only "samplemethod" need to overried in Dervied class

b. Error: abstract class can't extends other abstract class 

c. none of the option

d. Derived class need to override both "samplemethod" and "demomethod"

The correct answer is: Derived class need to override both "samplemethod" and "demomethod"

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 9/22
6/18/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

Question What is the output expected for the below code ?


26 public class ConstructorTest
Correct {
private ConstructorTest(int w) // line 2
Mark 1 out of 1
{

System.out.println(w);
}
public static ConstructorTest() // line 6
{

System.out.println(10);
}
public static void main(String args[])
{
ConstructorTest obj = new ConstructorTest(50);
}
}

Choose most appropriate option.

Select one:
a. 10

b. 50

c. Won't compile because of line (6) constructor can't be static 

d. 10 50

The correct answer is: Won't compile because of line (6) constructor can't be static

Question What will be the output of the following Java code?


27 public class ApplicationTester
Incorrect {
public static void main(String[] args)
Mark 0 out of 1
{
int i=1, j=1;
while(i <= 3)
{
j=1;
do
{
System.out.println("Java");
i++;
j++;
}while(j <= 2);
}
}
}

Choose the most appropriate option.

Select one:
a. "Java" will be displayed 2 times

b. "Java"will be displayed 3 times 

c. "Java" will be displayed 4 times

d. "Java"will be displayed 6 times

The correct answer is: "Java" will be displayed 4 times

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 10/22
6/18/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

Question What will be the output of the following Java code?


28 public class ApplicationTester
Correct {
public static void main(String[] args)
Mark 1 out of 1
{
int[] array = {11,22,33,44,55,11};
int searchNumber = 11, position=999;
for(int index=0; index < array.length; index++)
{
if(searchNumber == array[index])
{
position = index;
}
} System.out.println(position);
}
}

Choose the most appropriate option.

Select one:
a. 5 

b. 1

c. 0

d. 6

The correct answer is: 5

Question What will be the output of the following Java code?


29 public class IfTester
Incorrect {
public static void main(String[] args)
Mark 0 out of 1
{
int number1 = 10, number2;
if(number1 == 10)
{
number2 = 20;
}
if (number1 != 10)
{
number2 = 30;
}
System.out.println("Number2 :"+number2);
}
}

Choose the most appropriate option.

Select one:
a. Number2 :20 

b. Number2 :30

c. Compilation Error: The local variable number2 may not have been initialized

d. Number2 :0

The correct answer is: Compilation Error: The local variable number2 may not have been initialized

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 11/22
6/18/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

Question Analyse the following pseudo code and identify the CORRECT output. 
30 Note: Assume that the input given for Basic is 12000 and Allowances is 3000 
Correct
1. input Basic, Allowances 
Mark 1 out of 1
2. Gross_Salary= Basic + Allowances 

3. if (Gross_Salary > 10000) then 


4. Tax = 0.1 * Gross_Salary 

5. Net_Salary = Gross_Salary - Tax 


6. else 

7. Net_Salary = Gross_Salary 
8. end-if 

9. display Net_Salary 
Choose the most appropriate option.

Select one:
a. 15000

b. 14985

c. 13500 

d. 14000

The correct answer is: 13500

Question What will be the output of the following Java code?


31
Incorrect public class MyClass
{
Mark 0 out of 1
public static void main (String[] args)
{
int value1=33;
int value2=--value1;
int value3=value1++;
System.out.println(value1+" "+value2+" "+value3);
}
}

Choose the most appropriate option.

Select one:
a. 32 32 32

b. 33 32 32

c. 32 32 33 

d. 32 33 32

The correct answer is: 33 32 32

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 12/22
6/18/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

Question What will be the output of the following Java code?


32 public class MyClass
Correct {
private static int data;
Mark 1 out of 1
static
{
MyClass.data = 999;
}
public static int getData()
{
return data;
}
public static void setData(int data)
{
MyClass.data = data;
}
}
public class ApplicationTester
{
public static void main(String[] args)
{
MyClass ref1 = new MyClass();
MyClass ref2 = new MyClass();
System.out.print(ref1.getData());
ref2.setData(111);
System.out.println(" " + ref1.getData());
}
}

Choose the most appropriate option.

Select one:
a. 999 999

b. 0 111

c. 999 111 

d. 111 111

The correct answer is: 999 111

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 13/22
6/18/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

Question What is the output of the following code?


33 class Account
Incorrect {
int balance;
Mark 0 out of 1
public void createAccount()
{
balance = 1000;
}
public int getMinimumBalance()
{
return balance;
}
}
class SalaryAccount extends Account
{
private String companyName;
public SalaryAccount(String companyName)
{
this.companyName = companyName;
}
public void createAccount()
{
balance = 500;
}
public void checkCompany()
{
if (companyName.equalsIgnoreCase("Accenture"))
{
balance = 0;
}
}
}
public class MainClass
{
public static void main(String[] args)
{
Account account = new SalaryAccount("Accenture");
account.createAccount();
System.out.println("Balance : " + account.getMinimumBalance());
account.checkCompany();
System.out.println("Balance : " + account.getMinimumBalance());
}
}

Choose the most appropriate option.

Select one:
a. Balance: 1000 Balance: 0

b. Balance: 500 Balance: 0 

c. Compilation Error: The method checkCompany() is unde ned for the type Account

d. Balance: 1000 Balance: 500

The correct answer is: Compilation Error: The method checkCompany() is unde ned for the type Account

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 14/22
6/18/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

Question What will be the output of the following Java code?


34 class Base
Correct {
protected void getDetails()
Mark 1 out of 1
{
System.out.println("Base method");
}
}
class Derived extends Base
{
private void getDetails()
{
System.out.println("Derived method");
}
}
public class Main
{

public static void main(String[] args)


{
Base obj=new Derived();
obj.getDetails();

}
}

Select one:
a. prints both "Base method" "Derived method"

b. compliation error :weaker access privileges 

c. Prints "Dervied method"

d. Prints "Base method"

The correct answer is: compliation error :weaker access privileges

Question What will be the output of the following Java code?


35
Correct public class ApplicationTester
{
Mark 1 out of 1
public static void main(String[] args)
{
int[] array = {-9,-11-8,-100,-78};
int minimum = 0;
for(int index=0; index < array.length; index++)
{
if(minimum < array[index])
{ minimum = array[index];
}
}
System.out.println(minimum);
}
}

Choose the most appropriate option.

Select one:
a. -100

b. null

c. -8

d. 0 

The correct answer is: 0

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 15/22
6/18/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

Question What will be the output of the following Java code?


36 Employee.java public class Employee
Incorrect {
private double salary;
Mark 0 out of 1
public Employee()
{
this.salary = 10000.0;
}
public static void updateSalary(Employee emp)
{
emp.salary = emp.salary + 10000.0;
//Line-1
}
public double getSalary()
{
return this.salary;
}
}
ApplicationTester .java public class ApplicationTester
{
public static void main(String[] args)
{
Employee emp1 = new Employee();
Employee emp2 = new Employee();
Employee.updateSalary(emp1);
System.out.println(emp1.getSalary() + " " + emp2.getSalary());
}
}

Choose the most appropriate option.

Select one:
a. 20000.0 10000.0

b. 0.0 10000.0

c. 10000.0 10000.0

d. Compilation error at Line-1: Cannot 'emp.salary' in a static context 

The correct answer is: 20000.0 10000.0

Question Refer the incomplete code given below.


37 <style>
Correct
  # rstname {
Mark 1 out of 1
     background-color: yellow;
     color:red;
 }
</style>
<input type=text <strong>__Blank1__</strong>=' rstname'>
Choose the CORRECT attribute which if replaces '__Blank1__' will apply the CSS to text box.
Choose most appropriate option.

Select one:
a. style

b. styleclass

c. class

d. id 

Your answer is correct.

The correct answer is: id

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 16/22
6/18/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

Question Which of the following attribute is used by a HTML tag to apply inline style? Choose most appropriate option.
38
Select one:
Correct

Mark 1 out of 1
a. id

b. class

c. styleclass

d. style 

Your answer is correct.

The correct answer is: style

Question Which of the following CSS code is the correct one to apply style to tag 'p'? Choose most appropriate option.
39
Select one:
Correct
a. p { color=red; text-align=center; }
Mark 1 out of 1
b. p { color:red, text-align:center; }

c. p { color:red; text-align:center; } 

d. p ( color:red; text-align:center; )

Your answer is correct.

The correct answer is: p { color:red; text-align:center; }

Question Johana wants to display "Welcome to JS!!" as a pop up message using JavaScript. Which of the following suits her
40 requirement?

Correct
Select one:
Mark 1 out of 1
a. alertBox("Welcome to JS!!");

b. alert("Welcome to JS!!"); 

c. alert(Welcome to JS!!);

d. alertmsg("Welcome to JS!!");

The correct answer is: alert("Welcome to JS!!");

Question Identify the CORRECT statements with respect to CSS.


41 a) CSS is used for giving style for HTML content
Correct b) External style sheet can be used only for one HTML page in a website
Mark 1 out of 1 Choose most appropriate option.

Select one:
a. only a 

b. neither a nor b

c. only b

d. both a and b

The correct answer is: only a

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 17/22
6/18/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

Question Which method is used to remove focus from the speci ed object? Choose most appropriate option.
42
Select one:
Correct
a. onclick()
Mark 1 out of 1

b. onblur() 

c. onfocus()

d. onsubmit()

The correct answer is: onblur()

Question What would be the color of the text "Bengaluru" and "India" while executing the below html and css code? Assume that "Black"
43 is the default color if there is no style applied.

Correct <html>
<head>
Mark 1 out of 1
<style>
p{ color:red; } .c1{ color:green; }
</style>
</head>
<body>
<p> Bengaluru </p> <p class="c1"> India </p>
</body>
</html>

Choose most appropriate option.

Select one:
a. Bengaluru - Red,India - Red

b. Bengaluru - Red,India - Black

c. Bengaluru - Red,India - Green 

d. Bengaluru - Black,India - Black

The correct answer is: Bengaluru - Red,India - Green

Question Which of the following is correct syntax to refer an external java script le called “formValidation.js”? Choose most appropriate
44 option.

Correct
Select one:
Mark 1 out of 1
a. <script src = “formValidation.js”></script> 

b. <script source = “formValidation.js”></script>

c. <script name = “formValidation.js”></script>

d. <script href = “formValidation.js”></script>

The correct answer is: <script src = “formValidation.js”></script>

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 18/22
6/18/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

Question What would be the output of the following Java Script?


45 <html>
Correct <body>
<script>
Mark 1 out of 1
var key1=1; document.write(typeof(key1) + " ");
var key2=null; document.write(typeof(key2));
</script>
</body>
</html>

Choose most appropriate option.

Select one:
a. int unde ned

b. number object 

c. int object

d. number unde ned

The correct answer is: number object

Question In HTML, Which of the following is used to merge columns in a table? Choose most appropriate option.
46
Select one:
Correct
a. columns-span
Mark 1 out of 1
b. colspan 

c. columnspan

d. cspan

The correct answer is: colspan

Question Which of the following statements is TRUE for CSS?


47 A. An external style sheet is ideal when the style is applied to many pages
Correct B. An inline style created for a html tag can be reused for other tags in same page.
Mark 1 out of 1 Choose most appropriate option.

Select one:
a. Neither A nor B

b. Both A and B

c. Only B

d. Only A 

The correct answer is: Only A

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 19/22
6/18/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

Question What would be the output of the Javascript code given below?
48
Incorrect
<html>
Mark 0 out of 1
<body>
<script>

 var num1=100;

 function test(){

    num2=200;
    var num1=300;

    num1=num2;

 }

 test();
 document.write(num1 +"-"+num2);

 </script>

</body>

</html>

Select one:
a. 200-200 

b. 300-100

c. 300-200

d. 100-200

Your answer is incorrect.

The correct answer is: 100-200

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 20/22
6/18/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

Question
Consider the HTML code given below.
49
Correct
<html>
Mark 1 out of 1
  <head>

    <script>
      var key=10;

      function add(){

        var key=20;

        window.key=key+1;
        document.write(key);

        document.write(" ");

        print();

      }
      function print(){

        document.write(key);

      }

    </script>
  </head>

  <body>

    <form>
      <input type="submit" onclick="add()" />

    </form>

  </body>

</html>
 

What will be displayed after executing the above code?

Choose the most appropriate option.

Select one:
a. 21 21

b. 11 11

c. 11 10

d. 20 21 

Your answer is correct.

The correct answer is: 20 21

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 21/22
6/18/2020 Quiz: Attempt review

 Abhijit Mukund Pimpale .

Question How many cells will be created after executing the below HTML code?
50
Correct
<html>
Mark 1 out of 1
<body>

<table border="1">

<tr> <td colspan="3"> Jack </td> </tr>

<tr> <td colspan="2"> Tom </td> <td> Mark </td> </tr>


<tr> <td rowspan="2"> John</td> <td> James</td> <td>Mary</td> </tr>

<tr> <td> Helen</td> <td> Sam </td>  </tr>

</table>

</body>
</html>

Select one:
a. 9

b. 7

c. 8 

d. 10

Your answer is correct.


The correct answer is: 8

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 22/22
2/18/2020 Quiz

Olympians Mock 3 MCQ / MCQ / Quiz

Started on
Tuesday, 18 February 2020, 3:24 PM

State
Finished

Completed on
Tuesday, 18 February 2020, 4:28 PM

Time taken
1 hour 3 mins

Grade
37.00 out of 50.00 (74%)

Question 1

Correct

Mark 1.00 out of 


1.00

What is the term used to de ne the values that are common


across all instances of a class ?

Select one:

a. Attribute

b. Property

c. Static

d. Interface

The correct answer is: Static

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 1/51
2/18/2020 Quiz

Question 2

Incorrect

Mark 0.00 out of


1.00

Select the true statement ?

Select one:

a. Aggregation forms the is-a type of relationship between


classes.

b. Aggregation forms a is-a part of relationship between


classes. Composition is the stronger form of Aggregation.

c. Aggregation is the stronger form of Inheritance.

d. Inheritance forms a is-a part of relationship between classes.


The correct answer is: Aggregation forms a is-a part of relationship


between classes. Composition is the stronger form of Aggregation.

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 2/51
2/18/2020 Quiz

Question 3

Incorrect

Mark 0.00 out of


1.00

What de nes the state of an object ?

Select one:

a. Using the class Id

b. Using the class identity


c. Using the behavior

d. Using the value of the class properties

The correct answer is: Using the value of the class properties

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 3/51
2/18/2020 Quiz

Question 4

Correct

Mark 1.00 out of


1.00

Select the diagram used to depict the building blocks and the
static structure of the system ?

Select one:

a. Sequence Diagram

b. Interaction Diagram

c. Class Diagram

d. Component Diagram

The correct answer is: Class Diagram

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 4/51
2/18/2020 Quiz

Question 5

Correct

Mark 1.00 out of


1.00

Select the principle that best describes the given scenario. An air-
condition can be operated using the button or remote control.

Select one:

a. Hierarchy

b. Encapsulation

c. Abstraction

d. Polymorphism

The correct answer is: Encapsulation

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 5/51
2/18/2020 Quiz

Question 6

Correct

Mark 1.00 out of


1.00

Select the principle that best describes the given scenario. The
wind is called a breeze if it is gentle. The wind is called a storm if it
is harsh.

Select one:

a. Aggregation

b. Abstraction

c. Typing

d. Polymorphism

The correct answer is: Polymorphism


https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 6/51
2/18/2020 Quiz

Question 7

Correct

Mark 1.00 out of


1.00

_________ is not the exact code for solving the problem but it
would give us an idea of how the problem is going to be solved.

Select one:

a. Programming code

b. Structure code

c. object code

d. Pseudocode

Your answer is correct.



The correct answer is: Pseudocode

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 7/51
2/18/2020 Quiz

Question 8

Correct

Mark 1.00 out of


1.00

Enhancements made to the developed software is called as


………………

Select one:

a. Testing

b. Analysis

c. Maintenance

d. Design

The correct answer is: Maintenance

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 8/51
2/18/2020 Quiz

Question 9

Correct

Mark 1.00 out of


1.00

State true or false.

 Con guration management is important only during the coding


phase

Select one:

True

False 

The correct answer is 'False'.

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 9/51
2/18/2020 Quiz

Question 10

Correct

Mark 1.00 out of


1.00

After the development of online website for global pharmacy , it


was found that there were interface errors in few of the modules.
In which level of testing these errors would be identi ed.

Select one:

a. Integration Testing

b. System Testing

c. Acceptance Testing

d. Unit Testing

The correct answer is: Integration Testing


https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 10/51
2/18/2020 Quiz

Question 11

Correct

Mark 1.00 out of


1.00

A Software needs to be developed for a Sterlin Hospital to monitor


the radiations given for cancer patients. Even a very minute
deviation would result in the risk of the life of the patient. Which
would be the appropriate life cycle model used to implement the
given scenario

Select one:

a. Prototyping

b. Spiral

c. Agile

d. Water fall

The correct answer is: Spiral

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 11/51
2/18/2020 Quiz

Question 12

Incorrect

Mark 0.00 out of


1.00

ERD Example: Consider the given scenario. ZEE public school


Library. A Library has many books. Each Book has many chapters.
Identify the cardinality between Chapter and Book

Select one:

a. m..m

b. 0..0

c. m..1

d. 0..m

The correct answer is: m..1


https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 12/51
2/18/2020 Quiz

Question 13

Correct

Mark 1.00 out of


1.00

Pipes are Used to combine two or more commands. The symbol


used for representing pipe is ______

Select one:

a. ;;

b. |

c. >> 

d. ||

The correct answer is: |

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 13/51
2/18/2020 Quiz

Question 14

Correct

Mark 1.00 out of


1.00

Which of the following is not a feature of UNIX?

Select one:

a. User friendly

b. Multiuser

c. Multitasking

d. Portability

The correct answer is: User friendly

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 14/51
2/18/2020 Quiz

Question 15

Correct

Mark 1.00 out of


1.00

Consider the sample.txt le and predict the output 

Unix is an operating system. 

Unix is open source.

 Linux is also a powerful OS. 

What is the output of grep -c "Unix" sample.txt command?

Select one:

a. 4

b. 2

c. 3

d. 0 

The correct answer is: 2

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 15/51
2/18/2020 Quiz

Question 16

Correct

Mark 1.00 out of


1.00

Every entry in the UNIX directory le has the following


component(s).

Select one:

a. Filename and Inode number


b. Filename

c. File Sixe

d. Inode number

The correct answer is: Filename and Inode number

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 16/51
2/18/2020 Quiz

Question 17

Incorrect

Mark 0.00 out of


1.00

which of the following option can be used ,in order to quit vi editor
without saving the work done ?

Select one:

a. :c

b. :q!

c. :w

d. :q

The correct answer is: :q!

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 17/51
2/18/2020 Quiz

Question 18

Correct

Mark 1.00 out of


1.00

Which of the following should be used to print lines containing


‘manager’ in emp.lst?

Select one:

a. awk ‘/manager { print }’ emp.lst

b. awk ‘manager { print }’ emp.lst

c. awk ‘/manager/ { print } emp.lst

d. awk ‘/manager/ { print }’ emp.lst


The correct answer is: awk ‘/manager/ { print }’ emp.lst

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 18/51
2/18/2020 Quiz

Question 19

Correct

Mark 1.00 out of


1.00

Comment in XML document is given by

Select one:

a. <!-- --!>

b. </-- -- >

c. <!-- -->

d. <?-- -->

The correct answer is: <!-- -->

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 19/51
2/18/2020 Quiz

Question 20

Incorrect

Mark 0.00 out of


1.00

Which of the following fragments of XML are well-formed

Select one:

a. <?xml version="1.0"?>

b. <?xml encoding="JIS" version="File1"?>


c. <?xml encoding="Master"?>

d. <?xml?>

The correct answer is: <?xml version="1.0"?>

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 20/51
2/18/2020 Quiz

Question 21

Incorrect

Mark 0.00 out of


1.00

Which of the following xml prolog is according to syntax of XML

Select one:

a. <?xml version="1.0" encoding="UTF-8">

b. <?xml version="1.0" version="UTF-8"?>


c. <?xml version="1.0" encoding="UTF-8"?>

d. <?xml version="1.0" encoding="UTF-18"?>

The correct answer is: <?xml version="1.0" encoding="UTF-8"?>

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 21/51
2/18/2020 Quiz

Question 22

Incorrect

Mark 0.00 out of


1.00

Find out the well-formed xml le

Select one:

a. <book category="Web">
    <bname>XML Tutorials</bname>
    <pages>100</pages>
    <price>$300.00</Price>
</book>

b. <book category=Web>
     <bname>XML Tutorials</bname>
     <pages>100</pages>
     <price>$300.00</price>
 </book>


c. <book category="Web">
    <bname>XML Tutorials</bname>
    <pages>100</pages>
    <price>$300.00</price>
 </book>

d. <book category="Web">
    <bname>XML Tutorials</BNAME>
    <pages>100</pages>
    <price>$300.00<price>
<book>

The correct answer is: <book category="Web">


    <bname>XML Tutorials</bname>
    <pages>100</pages>
    <price>$300.00</price>
 </book>

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 22/51
2/18/2020 Quiz

Question 23

Correct

Mark 1.00 out of


1.00

What will be the output of the following Java code?

class StringSample
{
public StringSample(String string)
{
System.out.println("The string is " + string);
}
}
public class ConstructorTester1
{
public static void main(String[] args)
{
StringSample stringSample = new StringSample();
StringSample stringSample1 = new StringSample("Test
String");
} 
}

Choose the most appropriate option.

Select one:

a. The string is Test String

b. The string is null

c. The string is null The string is Test String

d. Compilation Error: The constructor StringSample() is


unde ned

The correct answer is: Compilation Error: The constructor


StringSample() is unde ned

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 23/51
2/18/2020 Quiz

Question 24

Incorrect

Mark 0.00 out of


1.00

Consider the Java code given below. How many times "1" will be
printed when the code is executed?

public class ApplicationTester


{
public static void main(String[] args)
{
int i = -1;
while( ++i <= 1)
{
System.out.println("1");
i++;
}
}
}

Choose the most appropriate option. 

Select one:

a. 2 times

b. 1 time

c. Nothing will be printed.

d. 3 times

The correct answer is: 1 time

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 24/51
2/18/2020 Quiz

Question 25

Correct

Mark 1.00 out of


1.00

What will be the output of the following Java code?

public class ApplicationTester


{
public static void main(String[] args)
{
int i=10;
while(++i<15)
{
System.out.print(i + " ");
}
}
}

Choose the most appropriate option.

Select one: 

a. 10 11 12 13 14

b. 11 12 13 14

c. 14

d. 15

The correct answer is: 11 12 13 14

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 25/51
2/18/2020 Quiz

Question 26

Correct

Mark 1.00 out of


1.00

What will be the output of the following Java code?

public class StringTester


{
public static void main(String[] args)
{
String s1=new String("Accenture");
String s2=new String("India Limited");
s1.concat(s2);
System.out.println(s1);
}
}

Choose the most appropriate option.

Select one:

a. Accenture

b. Accenture India

c. India Limited

d. Accenture India Limited

The correct answer is: Accenture

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 26/51
2/18/2020 Quiz

Question 27

Correct

Mark 1.00 out of


1.00

Which of the following statement/statements is/are FALSE?


(i) 'package ' statement can appear any where in the Java code
(ii) In a Java code, one can write only one 'import ' statement
Choose the most appropriate option.

Select one:

a. Only (i) is FALSE

b. Both (i) and (ii) are FALSE


c. Only (ii) is FALSE

d. Both (i) and (ii) are TRUE


The correct answer is: Both (i) and (ii) are FALSE

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 27/51
2/18/2020 Quiz

Question 28

Correct

Mark 1.00 out of


1.00

Given the following code, which option, if used to replace //INSERT


CODE HERE, will correctly calculate the sum of all the even
numbers in the array num and store it in the variable sum?

public class Test

public static void main(String[] args)

   int num[] = {10, 15, 2, 17};

   int sum = 0;

   for (int i=0; i<num.length;i++)

     {

        //INSERT CODE HERE 

        

          sum=sum+num[i];

     }

Select one:

a. if (number % 2 != 0) continue;

b. if (number % 2 == 0) break;

c. if (number % 2 != 0) break;

d. if (number % 2 == 0) continue;

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 28/51
2/18/2020 Quiz

The correct answer is: if (number % 2 != 0) continue;

Question 29

Correct

Mark 1.00 out of


1.00

What will be the output of the following Java code?

public class ApplicationTester


{
public static void main(String[] args)
{
for(int i=0; i<=10; i++)
{
if(i>6)
break;
}
System.out.println(i); //Line-1

}
}

Choose most appropriate option.

Select one:

a. Compilation error at Line-1: i cannot be resolved to a variable


b. 5

c. 6

d. null

The correct answer is: Compilation error at Line-1: i cannot be


resolved to a variable

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 29/51
2/18/2020 Quiz

Question 30

Incorrect

Mark 0.00 out of


1.00

What will be the output of the following Java code?

Employee.java public class Employee


{
private double salary;
public Employee()
{
this.salary = 10000.0;
}
public static void updateSalary(Employee emp)
{
emp.salary = emp.salary + 10000.0;
//Line-1
}
public double getSalary()
{
return this.salary; 
}
}
ApplicationTester .java public class ApplicationTester
{
public static void main(String[] args)
{
Employee emp1 = new Employee();
Employee emp2 = new Employee();
Employee.updateSalary(emp1);
System.out.println(emp1.getSalary() + " " +
emp2.getSalary());
}
}

Choose the most appropriate option.

Select one:

a. 0.0 10000.0

b. Compilation error at Line-1: Cannot 'emp.salary' in a static


context
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 30/51
2/18/2020 Quiz

c. 20000.0 10000.0

d. 10000.0 10000.0

The correct answer is: 20000.0 10000.0

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 31/51
2/18/2020 Quiz

Question 31

Incorrect

Mark 0.00 out of


1.00

What will be the output of the following Java code?

class Base
{
protected void getDetails()
{
System.out.println("Base method");
}
}
class Derived extends Base
{
private void getDetails()
{
System.out.println("Derived method");
}
}
public class Main 
{

public static void main(String[] args)


{
Base obj=new Derived();
obj.getDetails();

}
}

Select one:

a. Prints "Base method"

b. compliation error :weaker access privileges

c. prints both "Base method" "Derived method"

d. Prints "Dervied method"



https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 32/51
2/18/2020 Quiz

The correct answer is: compliation error :weaker access privileges

Question 32

Correct

Mark 1.00 out of


1.00

Which is the CORRECT SQL statement to add the new column


"DateOfJoining" to an existing table "Employee"? Choose most
appropriate option.

Select one:

a. ALTER TABLE Employee UPDATE DateOfJoining DATE;

b. ALTER TABLE Employee MODIFY DateOfJoining DATE;

c. ALTER TABLE Employee ADD DateOfJoining DATE;



d. CREATE TABLE Employee ADD DateOfJoining DATE;

The correct answer is: ALTER TABLE Employee ADD DateOfJoining


DATE;

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 33/51
2/18/2020 Quiz

Question 33

Incorrect

Mark 0.00 out of


1.00

Consider the following tables: 

                      Vendor (VendorId, VendorName, PhoneNumber). 

                                 Here VendorId is the primary key. 

                      Item (ItemCode, UnitPrice, QuantityOnHand, VendorId) 

                                Here ItemCode is the primary key and VendorId is


the foreign key referencing the VendorId in                                           
Vendor Table. 

Which is the CORRECT SQL query to display ItemCode, UnitPrice,


VendorName for all Items. It should also display the details of the
Item which is not having any vendor?

 Choose most appropriate option

Select one:

a. SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName
FROM Item INNER JOIN Vendor ON Item.VendorId =
Vendor.VendorId;

b. SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName
FROM Item LEFT OUTER JOIN Vendor ON Item.VendorId =
Vendor.VendorId;

c. SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName
FROM Item, Vendor WHERE Item.VendorId = Vendor.VendorId;

d. SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName
FROM Item INNER JOIN Vendor ON Item.VendorId =
Vendor.VendorId AND Item.VendorId IS NULL;

The correct answer is: SELECT


Item.ItemCode,Item.UnitPrice,Vendor.VendorName FROM Item LEFT
OUTER JOIN Vendor ON Item.VendorId = Vendor.VendorId;

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 34/51
2/18/2020 Quiz

Question 34

Correct

Mark 1.00 out of


1.00

The following statement is True/False?

Is it mandatory for foreign key column to have the same data type
of primary key in case of writing the querry of join to fetch data
from multiple tables. 

Select one:

a. True

b. False

The correct answer is: True

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 35/51
2/18/2020 Quiz

Question 35

Correct

Mark 1.00 out of


1.00

What would be the output of the SQL statement given below?


SELECT SUBSTR("Accenture",3,4) FROM DUAL; Choose most
appropriate option.

Select one:

a. cent

b. entu

c. ntur

d. centu

The correct answer is: cent


https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 36/51
2/18/2020 Quiz

Question 36

Incorrect

Mark 0.00 out of


1.00

Consider table Customer(cid NUMBER(4), cname VARCHAR2(10) )


is created in the database and has no records. Refer to the below
statements.  
 COMMIT; 
INSERT INTO Customer VALUES(101,’John’); 
INSERT INTO Customer VALUES(102,’James’); 
DELETE FROM Customer WHERE cid=101; 
INSERT INTO Customer VALUES(103,’Mark’); 
ROLLBACK; 
COMMIT;   
How many records will be available in the customer table if the
above statements are executed in sequential order.   Choose the
most appropriate option.

Select one: 

a. 0

b. 2

c. 1

d. 3

Your answer is incorrect.

The correct answer is: 0

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 37/51
2/18/2020 Quiz

Question 37

Correct

Mark 1.00 out of


1.00

Assume that table Asset(assetId number(2)) is created and 2


records are already inserted and saved.

COMMIT;
DELETE FROM ASSET;
ROLLBACK;
INSERT INTO ASSET VALUES(5);
COMMIT;

What would be the output of the below SQL statement after


executing the above statements sequentially.

SELECT COUNT(*) FROM Asset;

Select one: 

a. 0

b. 2

c. 1

d. 3

Your answer is correct.

The correct answer is: 3

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 38/51
2/18/2020 Quiz

Question 38

Correct

Mark 1.00 out of


1.00

which of the following code creates a list box from which user can
select more than one option?

Select one:

a. <select name='type' multiple><br />


 <option> P </option><br />
 <option> G </option><br />
 <option> S </option><br />
</select>

b. <select type=multiValue><br />


 <option> P </option><br />
 <option> G </option><br />
 <option> S </option><br />
</select> 

c. <select type=multiple><br />


 <option> P </option><br />
 <option> G </option><br />
 <option> S </option><br />
</select>

d. <select name='type' multiValue><br />


 <option> P </option><br />
 <option> G </option><br />
 <option> S </option><br />
</select>

Your answer is correct.

The correct answer is: <select name='type' multiple><br />


 <option> P </option><br />
 <option> G </option><br />
 <option> S </option><br />
</select>

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 39/51
2/18/2020 Quiz

Question 39

Correct

Mark 1.00 out of


1.00

Refer to the below code:

<script>
function helloMessage(){
var jsName = //Line1 alert('Hello '+jsName+' !')
}
</script>
<form>
Enter First Name : <input type="text" name="firstName"
id="first"><br>
<input type="button" value="Click Here!"
onclick="helloMessage()">
</form>

Which is the CORRECT code to be inserted at "Line1" to make the


JavaScript run properly? Choose most appropriate option

Select one:

a. document.getElementByName(' rst').value;

b. document.getElement(' rst').value;

c. document.getElementById. rst.value;

d. document.getElementById(' rst').value;

The correct answer is: document.getElementById(' rst').value;

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 40/51
2/18/2020 Quiz

Question 40

Correct

Mark 1.00 out of


1.00

Which of the following attribute is used by a HTML tag to apply


inline style? Choose most appropriate option.

Select one:

a. styleclass

b. id

c. style

d. class

The correct answer is: style

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 41/51
2/18/2020 Quiz

Question 41

Correct

Mark 1.00 out of


1.00

Refer the incomplete code given below.

<style> #firstname { background-color: yellow;


color:red; } </style>
<input type=text __Blank1__="firstname">

Choose from below the CORRECT attribute which if replaces


"__Blank1__" will apply the CSS to text box. Choose most
appropriate option.

Select one:

a. style

b. styleclass

c. id 

d. class

The correct answer is: id

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 42/51
2/18/2020 Quiz

Question 42

Correct

Mark 1.00 out of


1.00

Refer the incomplete HTML Code given below

<table border="2" _______=10>


<!-- Line1-->
<tr> <th>Employee Name</th>
<th>Department</th> </tr>
<tr> <td>Jack</td>
<td>LKM</td> </tr>
<tr> <td>Ace</td><td>Delivery</td> </tr>
</table>

Identify the appropriate option to be placed at Line1 so that for


each cell, there will be a space between the cell border and its
respective content Choose most appropriate option.

Select one:

a. colspan

b. cellpadding

c. cellspacing

d. colspace

The correct answer is: cellpadding

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 43/51
2/18/2020 Quiz

Question 43

Correct

Mark 1.00 out of


1.00

What would be the output of the Javascript code given below?

<html>

<body>

<script>

 var num1=100;

 function test(){

    num2=200;

    var num1=300;

    num1=num2;

 }

 test();

 document.write(num1 +"-"+num2);

 </script>

</body>

</html>

Select one:

a. 200-200

b. 300-200

c. 100-200

d. 300-100

Your answer is correct.

The correct answer is: 100-200

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 44/51
2/18/2020 Quiz

Question 44

Correct

Mark 1.00 out of


1.00

SPOT THE ERROR:

Observe the below algorithm to nd the average of three


numbers. 

Step1: Start

Step2: Get num1, num2, num3

Step3: Add num1, num2, num3 and store it in Sum

Step4: Average=sum%3

Step5: Display Sum and Average

Step6: Stop

Identify the incorrect step(if any)


Select one:

a.  Step 4

b. Step 2

c. No error

d.  Step 5

Your answer is correct.

The correct answer is:  Step 4

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 45/51
2/18/2020 Quiz

Question 45

Incorrect

Mark 0.00 out of


1.00

The given snippet describes ________________-

BEGIN
DECLARE marks[10]
DECLARE number
SET number TO 0
FOR index=0 TO 9
INPUT array[index]
END FOR
number= marks[0]
FOR index=0 TO 9
IF marks[index] > number THEN
number =marks[index]
END IF
END FOR
PRINT number
END 

Select one:

a. Sample Pseudocode to nd out the maximum number


among 10 numbers.

b. Sample Pseudocode to search an element among 10


numbers.

c. Sample Pseudocode to nd out the minimum number among


10 numbers.

d. Sample Pseudocode to sort the given array of 10 numbers


The correct answer is: Sample Pseudocode to nd out the maximum


number among 10 numbers.

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 46/51
2/18/2020 Quiz

Question 46

Correct

Mark 1.00 out of


1.00

Carefully read the question and answer accordingly. From the list
of input elements one element is taken during each iteration to
nd its corresponding position. This idea of sorting is said to be
_______.

Select one:

a. Bubble Sort

b. selection Sort

c. Merge sort

d. insertion sort

The correct answer is: insertion sort 

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 47/51
2/18/2020 Quiz

Question 47

Correct

Mark 1.00 out of


1.00

Carefully read the question and answer accordingly. What


operation is processed for each element in the list

Select one:

a. Sorting

b. Traversal

c. Merging

d. Inserting

The correct answer is: Traversal

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 48/51
2/18/2020 Quiz

Question 48

Correct

Mark 1.00 out of


1.00

An algorithm which executes on constant time period can be


denoted as

Select one:

a. O(nlogn)

b. O(n)

c. O(1)

d. O(n2)

The correct answer is: O(1)

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 49/51
2/18/2020 Quiz

Question 49

Correct

Mark 1.00 out of


1.00

Which algorithm is the best sorting method in-place with no


quadratic worst-case scenarios?

Select one:

a. Quick Sort

b. Heap Sort

c. Bubble Sort

d. Selection Sort

The correct answer is: Heap Sort

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 50/51
2/18/2020 Quiz

Question 50

Correct

Mark 1.00 out of


1.00

What is the time complexity of below function?

void cal_fun(int m,int a[])

int i=0,j=0;

for(;i<m;++i)

       while(j<m && a[i] < a[j])

             j++;

Select one:

a. O(nlogn)

b. O(n2) 

c. O(n)

d. O(1)

The correct answer is: O(n)

Powered by TEKSTAC     

Best Viewed on latest versions


of Chrome, Firefox and Microsoft Edge

https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 51/51
Spartans Mock 1
Question 1
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

Choose all the statement(s) that are valid.

Select one or more:

a. A super class is an incomplete class that requires further specification

b. Two classes in two different packages can have the same name.

c. There is only single copy of member function in memory when a class is loaded

d. Static data member have same copy, each associated with the object of class
Feedback

The correct answers are: Two classes in two different packages can have the same name., There is only
single copy of member function in memory when a class is loaded, Static data member have same copy,
each associated with the object of class

Question 2
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Predict the output:


class A
{
public static void main (String[] args) throws java.lang.Exception
{
String str="Two";
switch (str) {
case "One":
System.out.print(1);
case "Two": System.out.print(3);
case "Three": System.out.print(4);
break;
}

}
}

Select one:

a. error

b. 34

c. 4

d. 134
Feedback

The correct answer is: 34

Question 3
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Identify whether the below statement is True or False: The hierarchy of Reader/Writer class is character-
oriented and InputStream/OutputStream class is byte-oriented.

Select one:

True

False
Feedback

The correct answer is 'True'.

Question 4
Correct
Mark 1.00 out of 1.00

Flag question
Question text

Predict the output:


public class Topper
{
public static void check() {
this.display();
}
public static void display() {
System.out.println("Welcome to Java");
}
public static void main(String args []) {
check();
}
}

Select one:

a. Compile time error

b. Runtime error

c. An exception is raised stating that the variable this can only be used within an instance

d. Welcome to Java
Feedback

The correct answer is: Compile time error

Question 5
Correct
Mark 1.00 out of 1.00

Flag question

Question text

predict the output:


public class TestExec {
public static void main(String args[])
{
try
{
int avg=0;
for (int i = -1; i < 3 ;++i)
avg += (avg / i);
}
catch(Exception e)
{
System.out.print("Exception Caught ");
}
catch(ArithmeticException e)
{
System.out.print("Arithmetic Exception caught");
}
System.out.print(avg);
}
}

Select one:

a. Exception Caught

b. Compilation Error

c. 0

d. Arithmetic Exception caught


Feedback

The correct answer is: Compilation Error

Question 6
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

int disp()
{
int no1,no2=25,no3=25;
no1=(no2= = no3);
System.out.println(no1);
return 0;
}
What will be output of the above code?

Select one:

a. FALSE

b. TRUE

c. 25

d. Complie Time error


Feedback

The correct answer is: Complie Time error

Question 7
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

Predict the output:


class One
{
void calculate(int a, int b)
{
System.out.println("Class One");
}
}

class Two extends One


{
@Override
void calculate(int a, int b)
{
System.out.println("Class Two");
}
}

class Three extends Two


{
@Override
void calculate(int a, int b)
{
System.out.println("Class Three");
}
}

public class Test


{
public static void main(String[] args)
{
One one = new Two();

one.calculate(10, 20);

Two two = (Two) one;

two.calculate(50, 100);
Three three = (Three) two;

three.calculate(100, 200);
}
}

Select one:

a. Class One
Class Two
java.lang.ClassCastException

b. Class One
Class Two
Class Three

c. java.lang.ClassCastException

d. Class Two
Class Two
java.lang.ClassCastException
Feedback

The correct answer is: Class Two


Class Two
java.lang.ClassCastException

Question 8
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

Given the following classes defined in separate files, what will be the effect of compiling and running this
class Test? Predict the output:
class Shape {
public void draw() {
System.out.println("All Shapes");
}}

class Square extends Shape {


public void draw() {
System.out.println("Only Square");
}}

public class Test


{
public static void main (String args []) {
Shape v;
Square c;
v = new Shape();
c = new Square();
v.draw();
c.draw();
v = c;
v.draw();
}
}

Select one:

a. All Shapes
Only Square
All Shapes

b. All Shapes
All Shapes
Only Square

c. Generates runtime error on the statement v= c;

d. All Shapes
Only Square
Only Square
Feedback

The correct answer is: All Shapes


Only Square
Only Square

Question 9
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

String str= new String("Hello World");

Which of the following calls are valid?


(A) str.trim()
(B) str.replace('o', 'A')
(C) str.substring(3)
(D) str.toUppercase()
(E) str.setCharAt(1,'A')
(F) str.append("xyz")

Select one:

a. (C), (D) & (E)

b. (A), (B) & (C)

c. (A), (C), (D) & (E)

d. (D) & (E)

e. (A), (B), (C) & (D)


Feedback

The correct answer is: (A), (B) & (C)

Question 10
Correct
Mark 1.00 out of 1.00

Flag question

Question text

What is the approach of OO ?

Select one:

a. bundle data seperated from method

b. bundle data only for security

c. bundle data and method

d. bundle method seperated from data


Feedback

The correct answer is: bundle data and method

Question 11
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text
Select the true statement ?

Select one:

a. Aggregation forms the is-a type of relationship between classes.

b. Aggregation forms a is-a part of relationship between classes. Composition is the stronger form of
Aggregation.

c. Aggregation is the stronger form of Inheritance.

d. Inheritance forms a is-a part of relationship between classes.


Feedback

The correct answer is: Aggregation forms a is-a part of relationship between classes. Composition is the
stronger form of Aggregation.

Question 12
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

Select the principle that best describes the given scenario. The airline ticket booking clerk manages the
available seats, dates, passenger information, etc while the mehanic maintains information like flight
perfomance, fuel consumption, service intervals, etc

Select one:

a. Abstraction

b. Encapsulation

c. Typing

d. Polymorphism
Feedback

The correct answer is: Abstraction

Question 13
Incorrect
Mark 0.00 out of 1.00

Flag question
Question text

Select the true statements about Use Case diagram ?

Select one or more:

a. Captures attributes and methods

b. Captures dynamic aspects of the system

c. Captures users of the system

d. Depicts the boundry of the system


Feedback

The correct answers are: Depicts the boundry of the system, Captures users of the system, Captures
dynamic aspects of the system

Question 14
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

Select the benefits of OOP ?

Select one or more:

a. Testing

b. Ease of design

c. code deployment

d. Resuability
Feedback

The correct answers are: Ease of design, Resuability

Question 15
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Select the diagram used to depict the building blocks and the static structure of the system ?

Select one:

a. Class Diagram

b. Interaction Diagram

c. Component Diagram

d. Sequence Diagram
Feedback

The correct answer is: Class Diagram

Question 16
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

The properties of good program must have_____

Select one:

a.
Poor Design for change

b. Modules tightly connected

c. Component dependence

d.
Fault Prevention and fault tolerance
Feedback

Your answer is incorrect.


The correct answer is:
Fault Prevention and fault tolerance

Question 17
Incorrect
Mark 0.00 out of 1.00

Flag question
Question text

A program is said to be_______, if it optimizes the amount of memory and processing time.

Select one:

a. efficient

b. modular

c. robust

d. documented
Feedback

The correct answer is: efficient

Question 18
Correct
Mark 1.00 out of 1.00

Flag question

Question text

SPOT THE ERROR:


Observe the below algorithm to find the average of three numbers.
Step1: Start
Step2: Get num1, num2, num3
Step3: Add num1, num2, num3 and store it in Sum
Step4: Average=sum%3
Step5: Display Sum and Average
Step6: Stop
Identify the incorrect step(if any)

Select one:

a.
Step 2

b.
Step 4

c. No error

d.
Step 5
Feedback
Your answer is correct.
The correct answer is:
Step 4

Question 19
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Carefully read the question and answer accordingly. From the list of input elements one element is taken
during each iteration to find its corresponding position. This idea of sorting is said to be _______.

Select one:

a. selection Sort

b. Merge sort

c. Bubble Sort

d. insertion sort
Feedback

The correct answer is: insertion sort

Question 20
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Carefully read the question and answer accordingly. One of the best application of Stack is

Select one:

a. Radix sort

b. Recursion

c. Breadth First Search

d. Array
Feedback
The correct answer is: Recursion

Question 21
Correct
Mark 1.00 out of 1.00

Flag question

Question text

What is the time complexity of find_count()?


int find_count(int i)
{
int c=0;
for(int m=0;m<I;m++)
for(int n=m;n>0;n--)
c=c+1;
return c;
}

Select one:

a. theta(n)

b. theta(n*logn)

c. theta(n2)

d. theta(nlognlogn)
Feedback

The correct answer is: theta(n2)

Question 22
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

Which algorithm is the best sorting method in-place with no quadratic worst-case scenarios?

Select one:
a. Quick Sort

b. Bubble Sort

c. Heap Sort

d. Selection Sort
Feedback

The correct answer is: Heap Sort

Question 23
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Carefully read the question and answer accordingly. Which of the following options are correct?

Select one or more:

a. A tree which does not have any node other than root node is called a null tree

b. A tree with n nodes has exactly n branches or degree.

c. None of the options.

d. A tree which does not have any node other than root node has depth of zero.
Feedback

The correct answers are: A tree which does not have any node other than root node is called a null tree,
A tree which does not have any node other than root node has depth of zero.

Question 24
Correct
Mark 1.00 out of 1.00

Flag question

Question text

In which of the given SDLC model, unclear requirements are considered?

Select one:
a. Spiral Model

b. Waterfall Model

c. Prototyping Model

d. Agile Model
Feedback

The correct answer is: Prototyping Model

Question 25
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The SRS document should be

Select one:

a. Modifiable

b. Consistent

c. All the options

d. Unambiguous
Feedback

The correct answer is: All the options

Question 26
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

FlipFlip Shopping cart expects a huge hit ratio to their website, by its customers ,during the festive reason
in a month ahead. Anticipating this requirement they would want to replicate the servers to better serve
their customer. What type of maintenance is carried out to implement the given scenario?

Select one:
a. Adaptive Maintenance

b. Corrective Maintenance

c. Perfective Maintenance

d. Preventive Maintenance
Feedback

The correct answer is: Preventive Maintenance

Question 27
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A website for Flight Booking was developed and given to the testing team for testing. It has various fields
to enter the data, out of which one of the input field will take the birth year from the user ranging from
1980 to 2060. The boundary values for testing this field are?

Select one:

a. 0, 1959, 1960, 1961, 1994, 1995, 1996

b. 1959, 1960, 1994, 1995

c. 0,2000,2050,2020,1981

d. 1979,2030,1980,2060,2061

e. 1979,1980,2060,2061
Feedback

The correct answer is: 1979,1980,2060,2061

Question 28
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Tom and his team uses the SVN(Configuration Management Tool) to do versioning of source code. Tom
has pulled out the code from the SVN server to his local machine, updated his task partially and wanted
to update the work back to the SVN server. What is the actual process Tom has performed with the SVN
server.

Select one:

a. check out/check in

b. commit/rollback

c. fork/join

d. check in/check out


Feedback

The correct answer is: check out/check in

Question 29
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Predict the output of the below query .


Create view studentdetails select ID, address, name from student;

Select one:

a. Creates a view named ID with 2 attributes

b. Query has syntax error

c. Creates a view named studentdetails with 3 attributes

d. Creates a view named studentdetails with 1 attribute


Feedback

The correct answer is: Query has syntax error

Question 30
Incorrect
Mark 0.00 out of 1.00

Flag question
Question text

Term used to represent a Table, Record and field in relational database are

Select one:

a. Attribute, Tuple and Relation

b. Tuple, Relation and Attribute

c. Relation, Tuple & Attribute

d. Relation , Attribute & Tuple


Feedback

The correct answer is: Relation, Tuple & Attribute

Question 31
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Which clause is used with SELECT command to eliminate redundant or duplicate rows?

Select one:

a. Different

b. Distinctive

c. Unique

d. Distinct
Feedback

The correct answer is: Distinct

Question 32
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Which of the following is not a built in aggregate function in Oracle?

Select one:

a. Max

b. Total

c. Count

d. Avg
Feedback

The correct answer is: Total

Question 33
Correct
Mark 1.00 out of 1.00

Flag question

Question text

In order to grant ‘SELECT’ on Employee table to User1, which one of following statement is correct?

Select one:

a. Grant select to Employee on User1;

b. Grant select on Employee to User1;

c. Grant select from Employee to User1;

d. Grant select to Employee to User1;


Feedback

The correct answer is: Grant select on Employee to User1;

Question 34
Correct
Mark 1.00 out of 1.00

Flag question

Question text

What statements are true with respect to delete and truncate command?
Select one:

a. Both the commands work in same manner

b. Both the commands can be reversed

c. Both the commands cannot be reversed

d. Delete command can be reversed but truncate cannot be reversed


Feedback

The correct answer is: Delete command can be reversed but truncate cannot be reversed

Question 35
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Which of the following should be used to print lines containing ‘manager’ in emp.lst?

Select one:

a. awk ‘manager { print }’ emp.lst

b. awk ‘/manager/ { print } emp.lst

c. awk ‘/manager/ { print }’ emp.lst

d. awk ‘/manager { print }’ emp.lst


Feedback

The correct answer is: awk ‘/manager/ { print }’ emp.lst

Question 36
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Which command in UNIX displays the list of all the users who have logged into the Unix server?
Select one:

a. users

b. List users

c. Who am i

d. Who
Feedback

The correct answer is: Who

Question 37
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Which of the following is not a feature of UNIX?

Select one:

a. Portability

b. User friendly

c. Multiuser

d. Multitasking
Feedback

The correct answer is: User friendly

Question 38
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Unix Terminals are called Dummy terminals as they do not have _____________ capability.

Select one:
a. Processing

b. Output

c. Input

d. Display
Feedback

The correct answer is: Processing

Question 39
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Which of the following layer acts as an interface between user and kernel ?

Select one:

a. Hardware

b. Shell

c. Kernel

d. System Calls
Feedback

The correct answer is: Shell

Question 40
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Consider the sample.txt file and predict the output


Unix is an operating system.
Unix is open source.
Linux is also a powerful OS.
What is the output of grep -c "Unix" sample.txt command?

Select one:

a. 4

b. 0

c. 3

d. 2
Feedback

The correct answer is: 2

Question 41
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

What is the output of the following code?


<script type="text/javascript">
var s = "6718654 or 70101?";
var pattern = /\d{4}/;
var output = s.match(pattern);
document.write(output);
</script>

Select one:

a. 671701

b. 70101

c. 6718

d. 6718654
Feedback

The correct answer is: 6718

Question 42
Correct
Mark 1.00 out of 1.00

Flag question

Question text

What is used in an HTML page to give instruction to the web browser about the version of HTML being
used?

Select one:

a. HEAD

b. TITLE

c. DOCTYPE

d. DOCUMENT
Feedback

The correct answer is: DOCTYPE

Question 43
Correct
Mark 1.00 out of 1.00

Flag question

Question text

In CSS, styles are written under _____ tag which is the child of _____ tag

Select one or more:

a. style

b. head

c. script

d. body
Feedback

The correct answers are: head, style

Question 44
Correct
Mark 1.00 out of 1.00
Flag question

Question text

What are the new form elments introduced in HTML5

Select one or more:

a. optgroup

b. output

c. datalist

d. button

e. keygen
Feedback

The correct answers are: output, keygen, datalist

Question 45
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

What does the following selector do ?


$("div")

Select one:

a. Selects all div elements within a <p> tag

b. selects the first div element inside a <p> tag

c. Selects all div elements

d. Selects the first div element


Feedback

The correct answer is: Selects all div elements


Question 46
Correct
Mark 1.00 out of 1.00

Flag question

Question text

What is the CSS code to remove an underline from all hyperlinks

Select one:

a. a {text: no-underline;}

b. a {text-decoration: no-underline;}

c. a {text-style: no-underline;}

d. a {text-decoration:none;}
Feedback

The correct answer is: a {text-decoration:none;}

Question 47
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Identify the well-formed XML code

Select one:

a. <bookstore>
<book category="children">
<title>Harry Potter</title>
<author>J K. Rowling</author>
<year>2005</year>
<price>29.99 </book>
</bookstore>

b. <bookstore>
<book category="children">
<title>Harry Potter</title>
<author>J K. Rowling</author>
<year>2005</year>
<price>29.99</price>
</bookstore>

c. <bookstore>
<book category="children">
<title>Harry Potter</title>
<author>J K. Rowling</author>
<year>2005</year>
<price>29.99</price>
</book>
</bookstore>

d. <bookstore>
<book category=children>
<title>Harry Potter</title>
<author>J K. Rowling</author>
<year>2005</year>
<price>29.99</price>
</book>
</bookstore>
Feedback

The correct answer is: <bookstore>


<book category="children">
<title>Harry Potter</title>
<author>J K. Rowling</author>
<year>2005</year>
<price>29.99</price>
</book>
</bookstore>

Question 48
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Which is the correct way to define an empty book element

Select one:

a. <book>NULL</book>

b. <book>

c. <book>empty</book>

d. <book></book>
Feedback
The correct answer is: <book></book>

Question 49
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Identify the predicate which selects the last Employee element that is the child of the Company element?

Select one:

a. /Company/Employee[first()-1]

b. /Company/Employee[last()]

c. /Company/Employee[first-1]

d. /Company/Employee[1]
Feedback

The correct answer is: /Company/Employee[last()]

Question 50
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Which is not true about XML

Select one:

a. All XML Elements Must Have a Closing Tag

b. XML must be wellformed

c. XML Tags are not Case Sensitive

d. XML Elements Must be Properly Nested


Feedback

The correct answer is: XML Tags are not Case Sensitive
Spartans Mock 2
Question 1
Correct
Mark 1 out of 1

Flag question

Question text

Consider the table Student(StudentId, StudentName, Email, PercentageOfMarks). Which is the


CORRECT query to display the details in the ascending order (lowest to highest) of PercentageOfMarks
and in the descending order of StudentId in case PercentageOfMarks is the same. Choose most
appropriate option

Select one:

a. SELECT StudentId, StudentName, Email, PercentageOfmarks FROM Student ORDER BY


PercentageOfMarks DESC, StudentId DESC;

b. SELECT StudentId, StudentName, Email, PercentageOfmarks FROM Student ORDER BY StudentId


DESC, PercentageOfMarks;

c. SELECT StudentId, StudentName, Email, PercentageOfmarks FROM Student ORDER BY


PercentageOfMarks DESC, StudentId;

d. SELECT StudentId, StudentName, Email, PercentageOfmarks FROM Student ORDER BY


PercentageOfMarks, StudentId DESC;
Feedback

The correct answer is: SELECT StudentId, StudentName, Email, PercentageOfmarks FROM Student
ORDER BY PercentageOfMarks, StudentId DESC;

Question 2
Correct
Mark 1 out of 1

Flag question

Question text

The employee tables contains EmployeeId,EmployeeName and DeptCode Columns. Which is the
CORRECT SQL query to display the EmployeeId and EmployeeName of employees who are working in
DeptCode 10 OR 20?
(i) SELECT EmployeeId,EmployeeName FROM Employee WHERE DeptCode IN (10,20);
(ii) SELECT EmployeeId,EmployeeName FROM Employee WHERE DeptCode = 10 OR DeptCode = 20;
Choose most appropriate option.

Select one:

a. Both (i) and (ii)

b. Neither (i) nor (ii)

c. Only (ii)

d. Only (i)
Feedback

The correct answer is: Both (i) and (ii)

Question 3
Incorrect
Mark 0 out of 1

Flag question

Question text

Which is the CORRECT SQL Query to display names of employees which has only 3 letters that starts
with 'A' and ends with 'e'? Choose most appropriate option.

Select one:

a. SELECT EmployeeName FROM Employee WHERE EmployeeName LIKE 'A%e';

b. SELECT EmployeeName FROM Employee WHERE EmployeeName LIKE '__e';

c. SELECT EmployeeName FROM Employee WHERE EmployeeName LIKE 'A_e';

d. SELECT EmployeeName FROM Employee WHERE EmployeeName = 'A_e';


Feedback

The correct answer is: SELECT EmployeeName FROM Employee WHERE EmployeeName LIKE 'A_e';

Question 4
Correct
Mark 1 out of 1

Flag question

Question text
Which is the CORRECT SQL statement to add the new column "DateOfJoining" to an existing table
"Employee"? Choose most appropriate option.

Select one:

a. ALTER TABLE Employee ADD DateOfJoining DATE;

b. ALTER TABLE Employee MODIFY DateOfJoining DATE;

c. ALTER TABLE Employee UPDATE DateOfJoining DATE;

d. CREATE TABLE Employee ADD DateOfJoining DATE;


Feedback

The correct answer is: ALTER TABLE Employee ADD DateOfJoining DATE;

Question 5
Incorrect
Mark 0 out of 1

Flag question

Question text

Assume that table Employee is created with foreign key column managerid referring to empid column of
same table and the following records are inserted.

EMPID EMPNAME MANAGERID


1001 James NULL
1002 Mark 1001
1003 Mary 1002
1004 Mark 1001
How many rows will be deleted after executing the below DML statement? DELETE FROM employee
WHERE empid=1001; Choose most appropriate option.

Select one:

a. 3

b. Error: Integrated constraint violated. Child record found

c. 1

d. 2
Feedback

The correct answer is: Error: Integrated constraint violated. Child record found
Question 6
Correct
Mark 1 out of 1

Flag question

Question text

Consider table Students(sid NUMBER(3),sname VARCHAR2(10),scontact NUMBER(10) ) is already


created in the database.
It is required to change the data type of the column "scontact" to VARCHAR2(15).
Which of the following is Correct for the above requirement?
Note: sid column is primary key. Choose most appropriate option.

Select one:

a. There are no criteria to be followed. We can change the datatype of the column irrespective of the data

b. It is not possible to change the data type of a column

c. To change the data type of a column, it is important to ensure that the corresponding column is not
having data for any of the record

d. Data type can be changed only for primary key column


Feedback

The correct answer is: To change the data type of a column, it is important to ensure that the
corresponding column is not having data for any of the record

Question 7
Partially correct
Mark 1 out of 1

Flag question

Question text

Assume that table Project is created using the DDL statement given below and has no records.
CREATE TABLE Project( projectId VARCHAR2(4) CONSTRAINT proj_pk PRIMARY KEY,
projectName VARCHAR2(10) DEFAULT 'NA' CONSTRAINT proj_nn NOT NULL);
Identify the INSERT statements which would successfully insert record into Project table. Choose two
most appropriate options.

Select one or more:


a. INSERT INTO project(projectName,projectId) VALUES('NA','P4' );

b. INSERT INTO project(projectId) VALUES('P2');

c. INSERT INTO project(projectId,projectName) VALUES('P3', Null);

d. INSERT INTO project VALUES('P1');


Feedback

The correct answers are: INSERT INTO project(projectName,projectId) VALUES('NA','P4' );, INSERT
INTO project(projectId) VALUES('P2');

Question 8
Correct
Mark 1 out of 1

Flag question

Question text

Which of the following statement(s) is/are TRUE?

(i) In a subquery, the inner query is responsible for giving result.

(ii) In a subquery, the outer query is responsible to display output.

Choose most appropriate option

Select one:

a. Only (i)

b. Neither (i) nor (ii)

c. Only (ii)

d. Both (i) and (ii)


Feedback

The correct answer is: Both (i) and (ii)

Question 9
Incorrect
Mark 0 out of 1
Flag question

Question text

Consider table Customer(cid NUMBER(4), cname VARCHAR2(10)) has some records. Identify the
appropriate ALTER statements (choose 2)which executes on table Customer [ Note: There is no null
value for any column]

Select one or more:

a. ALTER TABLE Customer MODIFY cname VARCHAR2(15);

b. ALTER TABLE Customer MODIFY cid NUMBER(2);

c. ALTER TABLE Customer ADD dob DATE DEFAULT '30-Jun-1995';

d. ALTER TABLE Customer ADD CONSTRAINT cust_name NOT NULL(cname);


Feedback

The correct answers are: ALTER TABLE Customer ADD dob DATE DEFAULT '30-Jun-1995';, ALTER
TABLE Customer MODIFY cname VARCHAR2(15);

Question 10
Incorrect
Mark 0 out of 1

Flag question

Question text

Consider the Tables given below:


Product(productId,productName)
ProductOrder(orderId,productId,quantity)
productId column of ProductOrder is a Foreign key referring to Product Table
Identify the appropriate SQL statement which will fetch the productId,productName and orderId for all the
Products ordered. If no orders exist for a product, display those product id and productname with value
for orderid column as "Yet to be Ordered".
Choose appropriate query for the above requirement.

Select one:

a. SELECT p1.productId,p1.productName,NVL("Yet to be Ordered",p2.orderId) FROM Product p1 LEFT


OUTER JOIN ProductOrder p2 ON p1.productId=p2.productId;
b. SELECT p1.productId,p1.productName,NVL(p2.orderId,"Yet to be Ordered") FROM Product p1 RIGHT
OUTER JOIN ProductOrder p2 ON p1.productId=p2.productId;

c. SELECT p1.productId,p1.productName,NVL(p2.orderId,"Yet to be Ordered") FROM Product p1 INNER


JOIN ProductOrder p2 ON p1.productId=p2.productId;

d. SELECT p1.productId,p1.productName,NVL(p2.orderId,"Yet to be Ordered") FROM Product p1 LEFT


OUTER JOIN ProductOrder p2 ON p1.productId=p2.productId;
Feedback

The correct answer is: SELECT p1.productId,p1.productName,NVL(p2.orderId,"Yet to be Ordered")


FROM Product p1 LEFT OUTER JOIN ProductOrder p2 ON p1.productId=p2.productId;

Question 11
Correct
Mark 1 out of 1

Flag question

Question text

Which of the following can be created as a table level constraint?


(i) primary Key
(ii) foreign key
(iii) unique
Choose most appropriate option.

Select one:

a. (i) and (iii)

b. (i), (ii) and (iii)

c. (i) and (ii)

d. (i) only
Feedback

The correct answer is: (i), (ii) and (iii)

Question 12
Correct
Mark 1 out of 1

Flag question
Question text

Consider table Department(deptId,deptName). Which of the following query is used to display the
department details whose deptname has second letter as 'a' and second last letter as 'e'? Choose most
appropriate option.

Select one:

a. SELECT * FROM department WHERE deptname LIKE "_a%e_";

b. SELECT * FROM department WHERE deptname LIKE "a%e_";

c. SELECT * FROM department WHERE deptname LIKE "a%e%";

d. SELECT * FROM department WHERE deptname LIKE "%a%e_";


Feedback

The correct answer is: SELECT * FROM department WHERE deptname LIKE "_a%e_";

Question 13
Incorrect
Mark 0 out of 1

Flag question

Question text

Consider a table with the name Project is created using the SQL statement given below

CREATE TABLE Project(


projectid VARCHAR2(10) CONSTRAINT pkey PRIMARY KEY,
projectname VARCHAR2(10) CONSTRAINT pnull NOT NULL,
employeecount NUMBER(2) DEFAULT 0);

Which of the following statements insert record successfully to the Project table [Choose 2]

Select one or more:

a. INSERT INTO project(projectid,employeecount) VALUES('P3',10);

b. INSERT INTO project(projectid,projectname) VALUES('P2','Finance');

c. INSERT INTO project VALUES('P1','Finance',20);

d. INSERT INTO project VALUES('P1','Finance';)


Feedback

Your answer is incorrect.


The correct answers are: INSERT INTO project VALUES('P1','Finance',20);, INSERT INTO
project(projectid,projectname) VALUES('P2','Finance');

Question 14
Incorrect
Mark 0 out of 1

Flag question

Question text

Consider the below tables.


Event(eventId,eventName) – eventId is primary key
Employee(empId, empName, eventId) – empId is primary key and eventId is foreign key referring to
Event table.
Identify the correct SQL statement to retrieve empid, empname and eventName for all employees. If
employee has not registered for an event then it should display ‘Not Registered’.

Select one:

a. SELECT e1.empId, e1.empName, NVL(e2.eventName,'Not Registered') FROM event e2 INNER JOIN


employee e1 ON e2.eventId=e1.eventId;

b. SELECT e1.empId, e1.empName, NVL(e2.eventName,'Not Registered') FROM employee e1 RIGHT


OUTER JOIN event e2 ON e1.eventId=e2.eventId;

c. SELECT e1.empId, e1.empName, NVL(e2.eventName,'Not Registered') FROM event e2 LEFT OUTER


JOIN employee e1 ON e2.eventId=e1.eventId;

d. SELECT e1.empId, e1.empName, NVL(e2.eventName,'Not Registered') FROM employee e1 LEFT


OUTER JOIN event e2 ON e1.eventId=e2.eventId;
Feedback

Your answer is incorrect.


The correct answer is: SELECT e1.empId, e1.empName, NVL(e2.eventName,'Not Registered') FROM
employee e1 LEFT OUTER JOIN event e2 ON e1.eventId=e2.eventId;

Question 15
Correct
Mark 1 out of 1

Flag question

Question text

Consider Project table given below.


PROJECTID EMPLOYEEID
--------------- -------------------
1 10
2 11
1 13
Identify the correct SQL statement to display the projectId which has more than one employee.

Select one:

a. SELECT DISTINCT projectid FROM project WHERE projectid IN( SELECT projectid FROM project
GROUP BY projectid WHERE COUNT(employeeId)>1);

b. SELECT DISTINCT projectid FROM project WHERE projectid IN( SELECT projectid FROM project
WHERE COUNT(employeeId)>1);

c. SELECT DISTINCT projectid FROM project WHERE projectid IN( SELECT projectid FROM project
HAVING COUNT(employeeId)>1);

d. SELECT DISTINCT projectid FROM project WHERE projectid IN( SELECT projectid FROM project
GROUP BY projectid HAVING COUNT(employeeId)>1);
Feedback

Your answer is correct.


The correct answer is: SELECT DISTINCT projectid FROM project WHERE projectid IN( SELECT
projectid FROM project GROUP BY projectid HAVING COUNT(employeeId)>1);

Question 16
Incorrect
Mark 0 out of 1

Flag question

Question text

What will be the output of the following Java code?


public class ApplicationTester
{
public static void main(String[] args)
{
String s1 = "One";
String s2 = "One";
System.out.println((s1==s2) + " " + s1.equals(s2));
}
}
Choose the most appropriate option.

Select one:

a. true false

b. false true

c. true true
d. false false
Feedback

The correct answer is: true true

Question 17
Incorrect
Mark 0 out of 1

Flag question

Question text

What will be the output of the following Java code?


public class ApplicationTester
{
public static void main(String[] args)
{
int i;
for(i = 1; i <=3; i++);
{
System.out.println(i);
}
System.out.println(i);
}
}
Choose the most appropriate option.

Select one:

a. 4 will be displayed twice on the console

b. 1 to 3 will be displayed on the console

c. 3 will be displayed twice on the console

d. 1 to 4 will be displayed on the console


Feedback

The correct answer is: 4 will be displayed twice on the console

Question 18
Correct
Mark 1 out of 1
Flag question

Question text

What will be the output of the following Java code?


public class Rectangle
{
private int length;
private int width;
public static void main(String[] args)
{
Rectangle rectangle1 = new Rectangle();
rectangle1.length=10;
rectangle1.width=5;
Rectangle rectangle2 = rectangle1;
System.out.println("Length : "+rectangle2.length);
System.out.println("Width : "+rectangle2.width);
}
}
Choose the most appropriate option.

Select one:

a. Length : 10 Width : 5

b. Length: 5 Width: 10

c. Length : null Width : null

d. Length : 0 Width : 0
Feedback

The correct answer is: Length : 10 Width : 5

Question 19
Incorrect
Mark 0 out of 1

Flag question

Question text

What will be the output of the following Java code?


public class StringTester
{
public static void main(String[] args)
{
String player1 = new String ("virat kohli");
String player2 = new String("GAYLE");
player1.toUpperCase();
String newPlayer=player1.substring(6);
newPlayer = newPlayer + player2.toLowerCase();
System.out.println(newPlayer);
}
}
Choose the most appropriate option.

Select one:

a. KOHLI gayle

b. kohligayle

c. kohliGAYLE

d. KOHLIgayle
Feedback

The correct answer is: kohligayle

Question 20
Incorrect
Mark 0 out of 1

Flag question

Question text

What will be the output of the following Java code?


class Vehicle
{
public Vehicle()
{
System.out.print("Default ");
}
}
class Car extends Vehicle
{
public Car(String carName)
{
System.out.print(carName + "");
}
}
public class InheritanceTester
{
public static void main(String[] args)
{
Car car=new Car("Ford");
}
}
Choose the most appropriate option.

Select one:

a. Default Ford

b. Ford Default

c. Compilation error: Parent class 'Vehicle' does not have parameterized constructor

d. Ford
Feedback

The correct answer is: Default Ford

Question 21
Correct
Mark 1 out of 1

Flag question

Question text

Consider the Java code given below. How many times ";Hello "; will be printed when the code is
executed?
public class ApplicationTester
{
public static void main(String[] args)
{
int i = 0;
do
{
System.out.println("Hello");
i++;
} while(i <= 1);
}
}
Choose the most appropriate option.

Select one:

a. 1 time

b. 2 times
c. Nothing will be printed

d. 3 times
Feedback

The correct answer is: 2 times

Question 22
Correct
Mark 1 out of 1

Flag question

Question text

Which of the following statement/s is/are TRUE?


(1) Abstract method can have body
(2) Abstract class cannot be instantiated
(3) Abstract class can have constructor
Choose the most appropriate option.

Select one:

a. Both (2) and (3) are TRUE

b. Only (2) is TRUE

c. Both (1) and (3) are TRUE

d. Both (1) and (2) are TRUE


Feedback

The correct answer is: Both (2) and (3) are TRUE

Question 23
Correct
Mark 1 out of 1

Flag question

Question text

class Test
{
static
{
System.out.println("A");
}
}
public class Demo
{
static
{
System.out.println("B");
}
public static void main(String[] args)
{
Test t=new Test();
}
static
{
System.out.println("D");
}
}
Choose the most appropriate option.

Select one:

a. A B D

b. B A D

c. A D B

d. B D A
Feedback

The correct answer is: B D A

Question 24
Incorrect
Mark 0 out of 1

Flag question

Question text

What will be the output of the following Java code?


public class Employee
{
private static int employeeCount;
public Employee()
{
employeeCount++;
//Line-1
}
public static int getEmployeeCount()
{
return Employee.employeeCount;
}
}
public class StaticTester
{
public static void main(String[] args)
{
Employee emp1 = new Employee();
Employee emp2 = new Employee();
Employee emp3 = new Employee();
System.out.println(Employee.getEmployeeCount());
}
}
Choose the most appropriate option.

Select one:

a. 3

b. Compilation error at Line-1: Cannot use static member 'employeeCount' in a non-static context

c. 1

d. 0
Feedback

The correct answer is: 3

Question 25
Incorrect
Mark 0 out of 1

Flag question

Question text

Accenture developed a Java based Application (Vendor Management System) for New Codington city.
The product was delivered to New Codington after successful testing on Windows platform. New
Codington wants to run the application on their desktop which has Linux platform. What are the MINIMUM
resources needed to successfully run the application? Choose the most appropriate option.

Select one:

a. JDK on Windows

b. JVM on Linux
c. JDK on Linux

d. JVM on Windows
Feedback

The correct answer is: JVM on Linux

Question 26
Correct
Mark 1 out of 1

Flag question

Question text

What will be the output of the following Java code?


public class ApplicationTester
{
public static void main(String[] args)
{
int[] array = {11,22,33,44,55,11};
int searchNumber = 11, position=999;
for(int index=0; index < array.length; index++)
{
if(searchNumber == array[index])
{
position = index;
}
} System.out.println(position);
}
}
Choose the most appropriate option.

Select one:

a. 0

b. 1

c. 5

d. 6
Feedback

The correct answer is: 5

Question 27
Correct
Mark 1 out of 1
Flag question

Question text

What will be the output of the following Java code?


public class Tester
{
public static void main(String[] args)
{
int array[] ={1,2,4,2,5,2,6};
int pos=-1; int value=2;
int itr;
for ( itr = 0; itr < array.length; itr++)
{
if(array[itr]!=value)
{
continue;
} pos=itr;
}
System.out.println(pos);
}
}
Choose the most appropriate option.

Select one:

a. -1

b. 6

c. 1

d. 5
Feedback

The correct answer is: 5

Question 28
Correct
Mark 1 out of 1

Flag question

Question text
What is the output of the below code?
public class Calculator
{
public static void main(String[] args)
{
int result = 0;
Calculator calculator = new Calculator();
calculator.add(10, 20, result);
System.out.println("Result : " + result);
}
public void add(int num1, int num2, int result)
{
result = num1 + num2;
}
}
Choose the most appropriate option.

Select one:

a. Result: 20

b. Result : null

c. Result : 30

d. Result : 0
Feedback

The correct answer is: Result : 0

Question 29
Correct
Mark 1 out of 1

Flag question

Question text

Predict the line of code


Abstract class Base1
{
protected void getDetails()
{
System.out.println("Base method");
}
public Abstract void demomethod();
}
Abstract class Base2 extends Base1
{
public Abstract void samplemethod();
}
class Derived extends Base2
{
//Line1
}

Select one:

a. only "samplemethod" need to overried in Dervied class

b. Derived class need to override both "samplemethod" and "demomethod"

c. none of the option

d. Error: abstract class can't extends other abstract class


Feedback

The correct answer is: Derived class need to override both "samplemethod" and "demomethod"

Question 30
Correct
Mark 1 out of 1

Flag question

Question text

Predict the output of the following Java code.


public class Customer
{
public void getCustomer(String customer_name)
{
System.out.println("Customer name is : "+customer_name);
}
public void getCustomer(int customerId, String customer_location)
{
System.out.println("Customer location : "+customer_location+" & Customer Id :
"+customerId);
}
public void getCustomer(int customerId, float reward_points)
{
System.out.println("Customer Id : "+customerId+" & reward points till date is
:"+reward_points);
}
public static void main(String[] args)
{
Customer c = new Customer();
c.getCustomer("Smith");
c.getCustomer(1232,560.0f);
c.getCustomer(1232, "Florida");
}
}
Choose the most appropriate option.

Select one:

a. Compilation Error. The method getCustomer(int, String) in the type Customer is not applicable for the
arguments (int, float)

b. Customer name is : Smith


Customer Id : 1232 & reward points till date is :560.0
Customer location : Florida & Customer Id : 1232

c. Customer name is : Smith


Customer location : Florida & Customer Id : NULL
Customer Id : NULL & reward points till date is :560

d. Customer name is : Smith


Customer location : Florida reward points till date is :560
Customer location : Florida & Customer Id : 1232
Feedback

The correct answer is: Customer name is : Smith


Customer Id : 1232 & reward points till date is :560.0
Customer location : Florida & Customer Id : 1232

Question 31
Incorrect
Mark 0 out of 1

Flag question

Question text

What will be the output of the following Java code?


public class MyClass
{
private static int count;
static
{
MyClass.count = 100;
//Line-1
int count = 100;
//Line-2
}
public MyClass()
{
count++ ;
}
public static int getCount()
{
return count;
}
}
public class StaticTester
{
public static void main(String[] args)
{
MyClass ref1 = new MyClass();
MyClass ref2 = new MyClass();
System.out.println(ref1.getCount());
}
}
Choose the most appropriate option.

Select one:

a. 2

b. 102

c. Compilation error at Line-2: Duplicate variable 'count'

d. Compilation error at Line-1: Invalid variable reference 'MyClass.count'


Feedback

The correct answer is: 102

Question 32
Incorrect
Mark 0 out of 1

Flag question

Question text

Consider the Java code given below. After the execution of the code what will be the content of "array2 "?
public class Tester
{
public static void main(String[] args)
{
int array1[] = {71,12,23,34};
int array2[] = new int[4];
int count = 0;
for (int i = 0; i < array2.length; i++)
{
if(array1[i]%2==0)
{
array2[count]=array1[i];
count++;
}
}
}
}
Choose the most appropriate option.

Select one:

a. 12 0 34 0

b. 12 34 0 0

c. 0 0 12 34

d. 12 34
Feedback

The correct answer is: 12 34 0 0

Question 33
Correct
Mark 1 out of 1

Flag question

Question text

What will be the output of the following Java code?


class Base
{
protected void getDetails()
{
System.out.println("Base method");
}
}
class Derived extends Base
{
private void getDetails()
{
System.out.println("Derived method");
}
}
public class Main
{

public static void main(String[] args)


{
Base obj=new Derived();
obj.getDetails();

}
}

Select one:

a. prints both "Base method" "Derived method"

b. compliation error :weaker access privileges

c. Prints "Dervied method"

d. Prints "Base method"


Feedback

The correct answer is: compliation error :weaker access privileges

Question 34
Incorrect
Mark 0 out of 1

Flag question

Question text

What will be the output of the following Java code?


Employee.java public class Employee
{
private double salary;
public Employee()
{
this.salary = 10000.0;
}
public static void updateSalary(Employee emp)
{
emp.salary = emp.salary + 10000.0;
//Line-1
}
public double getSalary()
{
return this.salary;
}
}
ApplicationTester .java public class ApplicationTester
{
public static void main(String[] args)
{
Employee emp1 = new Employee();
Employee emp2 = new Employee();
Employee.updateSalary(emp1);
System.out.println(emp1.getSalary() + " " + emp2.getSalary());
}
}
Choose the most appropriate option.

Select one:

a. 10000.0 10000.0

b. 20000.0 10000.0

c. 0.0 10000.0

d. Compilation error at Line-1: Cannot 'emp.salary' in a static context


Feedback

The correct answer is: 20000.0 10000.0

Question 35
Correct
Mark 1 out of 1

Flag question

Question text

What will be the output of the following Java code?

public class ApplicationTester


{
public static void main(String[] args)
{
int[] array = {-9,-11-8,-100,-78};
int minimum = 0;
for(int index=0; index < array.length; index++)
{
if(minimum < array[index])
{ minimum = array[index];
}
}
System.out.println(minimum);
}
}
Choose the most appropriate option.

Select one:
a. 0

b. -8

c. null

d. -100
Feedback

The correct answer is: 0

Question 36
Correct
Mark 1 out of 1

Flag question

Question text

Given the below code. What is output ?


class Currency
{
private String country = "Canada";
public String getC()
{
return country;
}
}
class JapeneseYen extends Currency
{
public String getC()
{
return super.country; //Line 12
}
}
public class AustralianDollar extends Currency
{
public String getC(int x)
{
return super.getC();
}
public static void main(String[] args)
{
System.out.print(new JapeneseYen().getC() + " " + new AustralianDollar().getC());
}
}
Choose most appropriate option.

Select one:
a. null null

b. Canada null

c. null Canada

d. Canada Canada

e. Compilation fails due to an error on line 12 ";country is not visible ";.


Feedback

The correct answer is: Compilation fails due to an error on line 12 ";country is not visible ";.

Question 37
Incorrect
Mark 0 out of 1

Flag question

Question text

Refer the incomplete code given below.


<style>
#firstname {
background-color: yellow;
color:red;
}
</style>
<input type=text <strong>__Blank1__</strong>='firstname'>
Choose the CORRECT attribute which if replaces '__Blank1__' will apply the CSS to text box.
Choose most appropriate option.

Select one:

a. class

b. style

c. id

d. styleclass
Feedback

Your answer is incorrect.


The correct answer is: id

Question 38
Incorrect
Mark 0 out of 1

Flag question

Question text

which of the following code creates a list box from which user can select more than one option?

Select one:

a. <select type=multiValue><br />


<option> P </option><br />
<option> G </option><br />
<option> S </option><br />
</select>

b. <select name='type' multiple><br />


<option> P </option><br />
<option> G </option><br />
<option> S </option><br />
</select>

c. <select name='type' multiValue><br />


<option> P </option><br />
<option> G </option><br />
<option> S </option><br />
</select>

d. <select type=multiple><br />


<option> P </option><br />
<option> G </option><br />
<option> S </option><br />
</select>
Feedback

Your answer is incorrect.


The correct answer is: <select name='type' multiple><br />
<option> P </option><br />
<option> G </option><br />
<option> S </option><br />
</select>

Question 39
Correct
Mark 1 out of 1
Flag question

Question text

'link', 'vlink' and 'alink' are attributes of which HTML tag?

Choose the most appropriate option.

Select one:

a. <head>

b. <a>

c. <img>

d. <body>
Feedback

Your answer is correct.


The correct answer is: <body>

Question 40
Correct
Mark 1 out of 1

Flag question

Question text

which of the following is block level html tags?

Select one:

a. <h6>

b. <b>

c. <i>

d. <a>
Feedback

Your answer is correct.


The correct answer is: <h6>
Question 41
Correct
Mark 1 out of 1

Flag question

Question text

<!DOCTYPE html>
<html>
<body>
<script>
var x = (3 + 3) + 4 + "6"; alert(x);//line 1
</script>
</body>
</html>
What will be printed in alert box in line 1? Choose most appropriate option.

Select one:

a. 16

b. 646

c. 3346

d. 106
Feedback

The correct answer is: 106

Question 42
Incorrect
Mark 0 out of 1

Flag question

Question text

Refer the incomplete HTML Code given below


<table border="2" _______=10>
<tr> <th>Employee Name</th>
<th>Department</th> </tr>
<tr> <td>Jack</td>
<td>LKM</td> </tr>
<tr> <td>Ace</td><td>Delivery</td> </tr>
</table>
Identify the appropriate option to be placed in the spaceso that for each cell, there will be a space
between the cell border and its respective content Choose most appropriate option.

Select one:

a. cellpadding

b. cellspacing

c. colspan

d. colspace
Feedback

The correct answer is: cellpadding

Question 43
Correct
Mark 1 out of 1

Flag question

Question text

In HTML, Which of the following is used to merge columns in a table? Choose most appropriate option.

Select one:

a. colspan

b. cspan

c. columns-span

d. columnspan
Feedback

The correct answer is: colspan

Question 44
Correct
Mark 1 out of 1

Flag question

Question text
What would be the Output of the below java script Code?
<html> <body>
<script>
var x = 5; var d = (x != "5");
document.write(d +"--");
d = (x === "5"); document.write(d);
</script> </body>
</html>
Choose most appropriate option.

Select one:

a. true--true

b. false--false

c. false--true

d. true--false
Feedback

The correct answer is: false--false

Question 45
Incorrect
Mark 0 out of 1

Flag question

Question text

What would be the color of the text "Bengaluru" and "India" while executing the below html and css code?
Assume that "Black" is the default color if there is no style applied.
<html>
<head>
<style>
p{ color:red; } .c1{ color:green; }
</style>
</head>
<body>
<p> Bengaluru </p> <p class="c1"> India </p>
</body>
</html>
Choose most appropriate option.

Select one:

a. Bengaluru - Red,India - Green


b. Bengaluru - Red,India - Red

c. Bengaluru - Red,India - Black

d. Bengaluru - Black,India - Black


Feedback

The correct answer is: Bengaluru - Red,India - Green

Question 46
Correct
Mark 1 out of 1

Flag question

Question text

Refer the code below:


<table border="2">
<tr> <th colspan="3"> Employee Details</th></tr>
<tr> <th>Employee Name</th> <th>Department</th> </tr>
<tr> <td>Jack</td> <td>LKM</td> </tr>
<tr> <td>Ace</td><td rowspan="2">Delivery</td> </tr>
<tr> <td>Justin</td> </tr>
</table>
How many cells will be displayed when the page is displayed on the browser? Choose most appropriate
option.

Select one:

a. 10

b. 8

c. 7

d. 9
Feedback

The correct answer is: 8

Question 47
Incorrect
Mark 0 out of 1
Flag question

Question text

Which of the following is not a method of document object? Choose most appropriate option.

Select one:

a. write(String)

b. print(String)

c. getElementById(String)

d. getElementByTagName(String)
Feedback

The correct answer is: print(String)

Question 48
Correct
Mark 1 out of 1

Flag question

Question text

How many cells will be created after executing the below HTML code?

<html>
<body>
<table border="1">
<tr> <td colspan="3"> Jack </td> </tr>
<tr> <td colspan="2"> Tom </td> <td> Mark </td> </tr>
<tr> <td rowspan="2"> John</td> <td> James</td> <td>Mary</td> </tr>
<tr> <td> Helen</td> <td> Sam </td> </tr>
</table>
</body>
</html>

Select one:
a. 7

b. 8

c. 10

d. 9
Feedback

Your answer is correct.


The correct answer is: 8

Question 49
Correct
Mark 1 out of 1

Flag question

Question text

What would be the output of the Javascript code given below?

<html>
<body>
<script>
var num1=100;
function test(){
num2=200;
var num1=300;
num1=num2;
}
test();
document.write(num1 +"-"+num2);
</script>
</body>
</html>

Select one:

a. 200-200

b. 100-200
c. 300-200

d. 300-100
Feedback

Your answer is correct.


The correct answer is: 100-200

Question 50
Correct
Mark 1 out of 1

Flag question

Question text

Consider the HTML code given below.

<html>
<head>
<script>
var key=10;
function add(){
var key=20;
window.key=key+1;
document.write(key);
document.write(" ");
print();
}
function print(){
document.write(key);
}
</script>
</head>
<body>
<form>
<input type="submit" onclick="add()" />
</form>
</body>
</html>

What will be displayed after executing the above code?


Choose the most appropriate option.

Select one:

a. 11 10

b. 11 11

c. 20 21

d. 21 21
Feedback

Your answer is correct.


The correct answer is: 20 21
Spartans Mock 3
Question 1
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

What is the term used to define the values that are common across all instances of a class ?

Select one:

a. Attribute

b. Interface

c. Static

d. Property
Feedback

The correct answer is: Static

Question 2
Correct
Mark 1.00 out of 1.00

Flag question

Question text

What is the diagram that depicts the interaction between objects by arranging the objects in time
sequence ?

Select one:

a. Use Case Diagram

b. Component Diagram

c. Activity Diagram

d. Sequence Diagram
Feedback
The correct answer is: Sequence Diagram

Question 3
Correct
Mark 1.00 out of 1.00

Flag question

Question text

What defines the state of an object ?

Select one:

a. Using the class Id

b. Using the class identity

c. Using the value of the class properties

d. Using the behavior


Feedback

The correct answer is: Using the value of the class properties

Question 4
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

Select the benefits of OOP ?

Select one or more:

a. Ease of design

b. Resuability

c. code deployment

d. Testing
Feedback

The correct answers are: Ease of design, Resuability


Question 5
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Select the true statements about Use Case diagram ?

Select one or more:

a. Captures users of the system

b. Depicts the boundry of the system

c. Captures dynamic aspects of the system

d. Captures attributes and methods


Feedback

The correct answers are: Depicts the boundry of the system, Captures users of the system, Captures
dynamic aspects of the system

Question 6
Correct
Mark 1.00 out of 1.00

Flag question

Question text

How does the different section of an application communicate in an OO approach ?

Select one:

a. Different sections of the application interact through file system

b. In OO approach, the diffferent sections run in isolation so they will NOT interact

c. Different sections of the application interact through database

d. The objects created during runtime by different sections of the application interact through messages
Feedback

The correct answer is: The objects created during runtime by different sections of the application interact
through messages
Question 7
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A program is said to be_______, if it optimizes the amount of memory and processing time.

Select one:

a. robust

b. documented

c. efficient

d. modular
Feedback

The correct answer is: efficient

Question 8
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Enhancements made to the developed software is called as ………………

Select one:

a. Analysis

b. Testing

c. Maintenance

d. Design
Feedback

The correct answer is: Maintenance

Question 9
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Which of the option gives the number of independent paths in the program

Select one:

a. Equivalence Partitioning

b. Error Guessing

c. Mc Cabes number

d. Boundary Value analysis


Feedback

The correct answer is: Mc Cabes number

Question 10
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

Tom and his team uses the SVN(Configuration Management Tool) to do versioning of source code. Tom
has pulled out the code from the SVN server to his local machine, updated his task partially and wanted
to update the work back to the SVN server. What is the actual process Tom has performed with the SVN
server.

Select one:

a. check in/check out

b. fork/join

c. commit/rollback

d. check out/check in
Feedback

The correct answer is: check out/check in

Question 11
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

Identify the McCabe’s number for the below code:


public class Testing{
public static void main(String[] args) {
int var1 = 10;
int var2 = 20;
if ((var1 > 8) && (var2 > 8))
{ System.out.println("Greater than 8");
}
if ((var1 > 10) || (var2 > 10))
{ System.out.println("Greater than 10"); }
}
}

Select one:

a. 3

b. 5

c. 4

d. 6
Feedback

The correct answer is: 5

Question 12
Correct
Mark 1.00 out of 1.00

Flag question

Question text
ERD Example: Consider the given scenario. ZEE public school Library. A Library has many books. Each
Book has many chapters. Identify the cardinality between Chapter and Book

Select one:

a. 0..m

b. m..1

c. m..m

d. 0..0
Feedback

The correct answer is: m..1

Question 13
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Unix Terminals are called Dummy terminals as they do not have _____________ capability.

Select one:

a. Output

b. Processing

c. Input

d. Display
Feedback

The correct answer is: Processing

Question 14
Correct
Mark 1.00 out of 1.00

Flag question

Question text

What does the below Unix command accomplish?


$ vi sample

Select one:

a. open file named sample

b. edit file named sample

c. delete a file named sample

d. open file if it exists else creates a new file


Feedback

The correct answer is: open file if it exists else creates a new file

Question 15
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Which of the following layer acts as an interface between user and kernel ?

Select one:

a. Hardware

b. Kernel

c. System Calls

d. Shell
Feedback

The correct answer is: Shell

Question 16
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

What does the below Unix command accomplish?


$ sed 's/ABC/ZYX/' file.txt

Select one:

a. Only matches and displays the occurrence of the pattern

b. Replaces all occurrences 'ABC' with 'ZYX'

c. Replaces only first occurrence of ‘ABC’ with 'ZYX'

d. Replaces first occurrence in every line ‘ABC’ with 'ZYX'


Feedback

The correct answer is: Replaces first occurrence in every line ‘ABC’ with 'ZYX'

Question 17
Correct
Mark 1.00 out of 1.00

Flag question

Question text

What is the purpose of using -a option with ls command ?

Select one:

a. for showing executables

b. for showing directories

c. for showing hidden files

d. for multi columnar output


Feedback

The correct answer is: for showing hidden files

Question 18
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

which of the following option can be used ,in order to quit vi editor without saving the work done ?
Select one:

a. :q!

b. :q

c. :w

d. :c
Feedback

The correct answer is: :q!

Question 19
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Which is the correct way to define an empty book element

Select one:

a. <book></book>

b. <book>NULL</book>

c. <book>

d. <book>empty</book>
Feedback

The correct answer is: <book></book>

Question 20
Correct
Mark 1.00 out of 1.00

Flag question

Question text

What is the correct way of declaring an XML namespace?

Select one:
a. xmlns-prefix="URI"

b. xmlns:prefix,"URI"

c. xmlns:prefix=URI

d. xmlns:prefix="URI"
Feedback

The correct answer is: xmlns:prefix="URI"

Question 21
Correct
Mark 1.00 out of 1.00

Flag question

Question text

What is the correct XPATH that selects all the state elements that have a "speak" attribute with a value of
"HIN"

Select one:

a. //state[@speak,'HIN']

b. //state[@speak='HIN']

c. //state[speak='HIN']

d. //state[@speak=HIN]
Feedback

The correct answer is: //state[@speak='HIN']

Question 22
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Identify the well-formed XML code

Select one:
a. <bookstore>
<book category="children">
<title>Harry Potter</title>
<author>J K. Rowling</author>
<year>2005</year>
<price>29.99 </book>
</bookstore>

b. <bookstore>
<book category="children">
<title>Harry Potter</title>
<author>J K. Rowling</author>
<year>2005</year>
<price>29.99</price>
</bookstore>

c. <bookstore>
<book category="children">
<title>Harry Potter</title>
<author>J K. Rowling</author>
<year>2005</year>
<price>29.99</price>
</book>
</bookstore>

d. <bookstore>
<book category=children>
<title>Harry Potter</title>
<author>J K. Rowling</author>
<year>2005</year>
<price>29.99</price>
</book>
</bookstore>
Feedback

The correct answer is: <bookstore>


<book category="children">
<title>Harry Potter</title>
<author>J K. Rowling</author>
<year>2005</year>
<price>29.99</price>
</book>
</bookstore>

Question 23
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text
which of the following represents correct order from the most to least restrictive? Choose most
appropriate option.

Select one:

a. private,default,proctected,public

b. protected,private,default,public

c. public,protected,default,private

d. private,protected,default,public
Feedback

The correct answer is: private,default,proctected,public

Question 24
Correct
Mark 1.00 out of 1.00

Flag question

Question text

What will be the output of the following Java code?


public class ApplicationTester
{
public static void main(String[] args)
{
int i=0;
for(i=0; i<10; i++)
{
if(i == 5)
{
continue;
}
i++;
System.out.print(i + " ");
}
}
}
Choose the most appropriate option.

Select one:

a. 1 2 3 4 5 6 7 8 9

b. 1 3 5 7 9

c. 1 2 3 4 6 7 8 9
d. 1 2 3 4 and then program will get into infinite loop
Feedback

The correct answer is: 1 3 5 7 9

Question 25
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Which of the following statement/s is/are TRUE?


(1) Abstract method can have body
(2) Abstract class cannot be instantiated
(3) Abstract class can have constructor
Choose the most appropriate option.

Select one:

a. Both (1) and (3) are TRUE

b. Only (2) is TRUE

c. Both (2) and (3) are TRUE

d. Both (1) and (2) are TRUE


Feedback

The correct answer is: Both (2) and (3) are TRUE

Question 26
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Chaining What is the output for the below code ?


class A
{
public A()
{
System.out.print("A ");
}
public A(int i)
{
System.out.print(i+" ");
}
}
class B extends A
{
public B ()
{
super();
System.out.print("B ");
}

public B (int i)
{
super(i);
System.out.print(i+3+" ");
}
}

public class Test


{
public static void main (String[] args)
{
new B(5);
}
}
Choose most appropriate option.

Select one:

a. 5 8

b. B 8 A 5

c. A B 5

d. A B 8
Feedback

The correct answer is: 5 8

Question 27
Incorrect
Mark 0.00 out of 1.00

Flag question
Question text

What will be the output of the following Java code?


public interface MyInterface
{
int MY_DATA = 100; public void display();
}
public class MyClass implements MyInterface
{
public MyClass()
{
MyInterface.MY_DATA = 200;
//Line-1
}
public void display()
{
System.out.println(MyInterface.MY_DATA);
}
}
public class ApplicationTester
{
public static void main(String[] args)
{
MyInterface ref = new MyClass();
//Line-2 ref.display();
}
}
Choose the most appropriate option.

Select one:

a. 100

b. Compilation error at Line-2: Invalid reference type 'MyInterface '

c. 200

d. Compilation error at Line-1: The final field MyInterface.MY_DATA cannot be assigned


Feedback

The correct answer is: Compilation error at Line-1: The final field MyInterface.MY_DATA cannot be
assigned

Question 28
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Consider the Java code given below. After the execution of the code what will be the content of "array2 "?
public class Tester
{
public static void main(String[] args)
{
int array1[] = {71,12,23,34};
int array2[] = new int[4];
int count = 0;
for (int i = 0; i < array2.length; i++)
{
if(array1[i]%2==0)
{
array2[count]=array1[i];
count++;
}
}
}
}
Choose the most appropriate option.

Select one:

a. 12 34 0 0

b. 12 34

c. 12 0 34 0

d. 0 0 12 34
Feedback

The correct answer is: 12 34 0 0

Question 29
Correct
Mark 1.00 out of 1.00

Flag question

Question text

What is the output of the following code?


class Account
{
int balance;
public void createAccount()
{
balance = 1000;
}
public int getMinimumBalance()
{
return balance;
}
}
class SalaryAccount extends Account
{
private String companyName;
public SalaryAccount(String companyName)
{
this.companyName = companyName;
}
public void createAccount()
{
balance = 500;
}
public void checkCompany()
{
if (companyName.equalsIgnoreCase("Accenture"))
{
balance = 0;
}
}
}
public class MainClass
{
public static void main(String[] args)
{
Account account = new SalaryAccount("Accenture");
account.createAccount();
System.out.println("Balance : " + account.getMinimumBalance());
account.checkCompany();
System.out.println("Balance : " + account.getMinimumBalance());
}
}
Choose the most appropriate option.

Select one:

a. Balance: 1000 Balance: 500

b. Balance: 1000 Balance: 0

c. Compilation Error: The method checkCompany() is undefined for the type Account

d. Balance: 500 Balance: 0


Feedback

The correct answer is: Compilation Error: The method checkCompany() is undefined for the type Account

Question 30
Correct
Mark 1.00 out of 1.00
Flag question

Question text

What will be the output of the following Java code?

public class ApplicationTester {


public static void main(String[] args) {
int [] array1 = {10,20,30,40,50};
int [] array2 = array1;
for(int index1=0,index2=3; index2<array2.length&&index1<array1.length; index1++,++index2)
{
array1[index1]++;
System.out.print(array2[index2]+” ”);
}
}
}

Select one:

a. 41 51

b. Array Index Out Of Bounds Exception

c. 0 0

d. 40 50
Feedback

The correct answer is: 40 50

Question 31
Correct
Mark 1.00 out of 1.00

Flag question

Question text
What will be the output of the following Java code?
public class ApplicationTester
{
public static void main(String[] args)
{
for(int i=0; i<=10; i++)
{
if(i>6)
break;
}
System.out.println(i); //Line-1
}
}
Choose most appropriate option.

Select one:

a. 5

b. 6

c. null

d. Compilation error at Line-1: i cannot be resolved to a variable


Feedback

The correct answer is: Compilation error at Line-1: i cannot be resolved to a variable

Question 32
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The employee table contains EmployeeNumber, EmployeeName, Salary and DeptCode Columns. Which
is the CORRECT SQL query to display DeptCode and average salary of each department? Choose most
appropriate option.

Select one:

a. SELECT DeptCode,avg(salary) FROM Employee;

b. SELECT DeptCode,avg(salary) FROM Employee GROUP BY EmployeeNumber;

c. SELECT DeptCode,avg(salary) FROM Employee GROUP BY DeptCode;

d. SELECT DeptCode,avg(salary) FROM Employee GROUP BY Salary;


Feedback
The correct answer is: SELECT DeptCode,avg(salary) FROM Employee GROUP BY DeptCode;

Question 33
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

Identify the CORRECT SQL statement(s) to remove ONLY the data from "Employee" table?
(i) DROP TABLE Employee;
(ii) DELETE FROM Employee;
(iii) TRUNCATE TABLE Employee;
Choose most appropriate option.

Select one:

a. Both (i) and (iii)

b. Both (i) and (ii)

c. Both (ii) and (iii)

d. (i), (ii) and (iii)


Feedback

The correct answer is: Both (ii) and (iii)

Question 34
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

Consider the table Student(StudentId, StudentName, Email, PercentageOfMarks).


Which is the CORRECT query to display the details in the ascending order (lowest to highest) of
PercentageOfMarks and in the descending order of StudentId in case PercentageOfMarks is the same.
Choose most appropriate option

Select one:
a. SELECT StudentId, StudentName, Email, PercentageOfmarks FROM Student ORDER BY StudentId
DESC, PercentageOfMarks;

b. SELECT StudentId, StudentName, Email, PercentageOfmarks FROM Student ORDER BY


PercentageOfMarks DESC, StudentId;

c. SELECT StudentId, StudentName, Email, PercentageOfmarks FROM Student ORDER BY


PercentageOfMarks, StudentId DESC;

d. SELECT StudentId, StudentName, Email, PercentageOfmarks FROM Student ORDER BY


PercentageOfMarks DESC, StudentId DESC;
Feedback

The correct answer is: SELECT StudentId, StudentName, Email, PercentageOfmarks FROM Student
ORDER BY PercentageOfMarks, StudentId DESC;

Question 35
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

which command help us to get back the permission of accessing the table.

Select one:

a. rollback

b. revoke

c. commit

d. grant
Feedback

The correct answer is: revoke

Question 36
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Consider Project table given below.
PROJECTID EMPLOYEEID
--------------- -------------------
1 10
2 11
1 13
Identify the correct SQL statement to display the projectId which has more than one employee.

Select one:

a. SELECT DISTINCT projectid FROM project WHERE projectid IN( SELECT projectid FROM project
HAVING COUNT(employeeId)>1);

b. SELECT DISTINCT projectid FROM project WHERE projectid IN( SELECT projectid FROM project
WHERE COUNT(employeeId)>1);

c. SELECT DISTINCT projectid FROM project WHERE projectid IN( SELECT projectid FROM project
GROUP BY projectid WHERE COUNT(employeeId)>1);

d. SELECT DISTINCT projectid FROM project WHERE projectid IN( SELECT projectid FROM project
GROUP BY projectid HAVING COUNT(employeeId)>1);
Feedback

Your answer is correct.


The correct answer is: SELECT DISTINCT projectid FROM project WHERE projectid IN( SELECT
projectid FROM project GROUP BY projectid HAVING COUNT(employeeId)>1);

Question 37
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

Consider the tables given below.


Emp(empid, empname,salary,deptid)
Dept(deptid,deptname)
Note: deptid column of table Emp referring to deptid column of table Dept.

Identify the correct SQL statement to retrieve employees who are getting more than 25000 salary and
working in "FINANCE" department.

Choose most appropriate option.

Select one:

a. SELECT * FROM Emp WHERE deptid=(SELECT * FROM Dept WHERE deptname='FINANCE' AND
salary > 25000);
b. SELECT * FROM Emp WHERE deptid=(SELECT deptid FROM Dept WHERE deptname='FINANCE')
AND salary>25000;

c. SELECT * FROM Emp WHERE deptid=(SELECT deptid FROM Dept WHERE deptname='FINANCE'
AND salary>25000);

d. SELECT * FROM Emp WHERE deptid=(SELECT * FROM Dept WHERE deptname='FINANCE') AND
salary>25000;
Feedback

Your answer is incorrect.


The correct answer is: SELECT * FROM Emp WHERE deptid=(SELECT deptid FROM Dept WHERE
deptname='FINANCE') AND salary>25000;

Question 38
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

Which of the following CSS code is the correct one to apply style to tag 'p'? Choose most appropriate
option.

Select one:

a. p { color:red; text-align:center; }

b. p { color=red; text-align=center; }

c. p ( color:red; text-align:center; )

d. p { color:red, text-align:center; }
Feedback

Your answer is incorrect.


The correct answer is: p { color:red; text-align:center; }

Question 39
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text
Assume abc.html is existing and a valid HTML page. Refer the code below:
<form action="abc.html">
First Name: <input type="text"/><br/>
Last Name: <input type="text"/><br/>
Password: <input type="hidden"/><br/>
<input type="submit" value="Submit"/>
<form>
How many HTML controls will be displayed on the browser, when the above page is run on browser?
Choose most appropriate option

Select one:

a. 4

b. 5

c. 7

d. 3
Feedback

The correct answer is: 3

Question 40
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

Assume abc.html is existing and a valid HTML page. Refer the code below:
<form action="abc.html">
First Name: <input type="text"/><br/>
Last Name: <input type="text"/><br/>
Password: <input type="hidden"/><br/>
<input type="submit" value="Submit"/>
<form>
How many HTML controls will be displayed on the browser, when the above page is run on browser?
Choose most appropriate option

Select one:

a. 7

b. 3

c. 5

d. 4
Feedback

The correct answer is: 3

Question 41
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Choose from below the valid syntax to show "Welcome to JS!!" to user in JavaScript using a pop up.
Choose most appropriate option

Select one:

a. alertBox("Welcome to JS!!");

b. alert("Welcome to JS!!");

c. alert(Welcome to JS!!);

d. alertmsg("Welcome to JS!!");
Feedback

The correct answer is: alert("Welcome to JS!!");

Question 42
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

Identify the CORRECT statements with respect to CSS.


a) CSS is used for giving style for HTML content
b) External style sheet can be used only for one HTML page in a website
Choose most appropriate option.

Select one:

a. neither a nor b

b. both a and b
c. only b

d. only a
Feedback

The correct answer is: only a

Question 43
Correct
Mark 1.00 out of 1.00

Flag question

Question text

How many cells will be created after executing the below HTML code?

<html>
<body>
<table border="1">
<tr> <td colspan="3"> Jack </td> </tr>
<tr> <td colspan="2"> Tom </td> <td> Mark </td> </tr>
<tr> <td rowspan="2"> John</td> <td> James</td> <td>Mary</td> </tr>
<tr> <td> Helen</td> <td> Sam </td> </tr>
</table>
</body>
</html>

Select one:

a. 8

b. 9

c. 10

d. 7
Feedback

Your answer is correct.


The correct answer is: 8

Question 44
Correct
Mark 1.00 out of 1.00
Flag question

Question text

Steve is learning to draw a flowchart to calculate the volume of a cuboid. Which of the options given
below would fit into the process section of the flow chart?

Select one:

a. check if l,b,h have positive value

b. display the volume of the cuboid

c. Volume=l*b*h

d. Read the value of l,b,h(l represents the length, b represents the breadth, h represents the height)
Feedback

Your answer is correct.


The correct answer is: Volume=l*b*h

Question 45
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The given snippet describes ________________-


BEGIN
DECLARE marks[10]
DECLARE number
SET number TO 0
FOR index=0 TO 9
INPUT array[index]
END FOR
number= marks[0]
FOR index=0 TO 9
IF marks[index] > number THEN
number =marks[index]
END IF
END FOR
PRINT number
END
Select one:

a. Sample Pseudocode to search an element among 10 numbers.

b. Sample Pseudocode to sort the given array of 10 numbers

c. Sample Pseudocode to find out the minimum number among 10 numbers.

d. Sample Pseudocode to find out the maximum number among 10 numbers.


Feedback

The correct answer is: Sample Pseudocode to find out the maximum number among 10 numbers.

Question 46
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Carefully read the question and answer accordingly. Which data structure is said to be linear data
structure?

Select one:

a. Tree

b. Arrays

c. None of the listed options

d. Graphs
Feedback

The correct answer is: Arrays

Question 47
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Carefully read the question and answer accordingly. Find which list is not related to stacks?

Select one:

a. Last In First Out

b. Push-down

c. First in First Out

d. None of the options.


Feedback

The correct answer is: First in First Out

Question 48
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

Time complexity of an algorithm signifies the total time required by the algorithm to complete its execution
with provided resources. State True or False.

Select one:

True

False
Feedback

The correct answer is 'True'.

Question 49
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

From the given options identify the appropriate algorithm that has the lowest worst-case complexity?

Select one:

a. Selection Sort
b. Quick Sort

c. Merge Sort

d. Bubble Sort
Feedback

The correct answer is: Merge Sort

Question 50
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Which algorithm is the best sorting method in-place with no quadratic worst-case scenarios?

Select one:

a. Selection Sort

b. Heap Sort

c. Bubble Sort

d. Quick Sort
Feedback

The correct answer is: Heap Sort


1. Consider the following Java Code (Assume that Employee is a valid Java class)

With respect to the code, how many object/objects will be available for garbage collection after
Line-1? Choose the most appropriate option

Ans- 2

2. Choose the most appropriate option

Ans – Compile time error

Main.java:21: error: doWork(int) in Main cannot implement doWork(int) in A


void doWork(int s)
^
attempting to assign weaker access privileges; was public
1 error
3. Refer to the below code and predict the output

Ans -

Not equal! 10

4. What is the output expected on the execution of the following code?

Ans – 30

5. Consider the table Employee(empId,jobBand)


What is the correct DML statement to update the job band of all employees to NULL?
ANS –
UPDATE TABLE employee SET jobBand is NULL;

UPDATE employee SET jobBand = NULL;

UPDATE TABLE employee SET jobBand = NULL;

UPDATE employee SET jobBand is NULL;


6. Consider the table Employee(empId,jobBand)
What is the correct SQL statement where all unique job band from employee table?
Ans –

select jobBand DISTINCT from employee;

select DISTINCT jobBand,empid from employee;

select DISTINCT(jobBand) from employee; // gave right answer as well

select DISTINCT jobBand from employee;

7. Consider table Account(accountId,balance) Identify the SQL queries which gives the same result

Ans –

SELECT * FROM Account WHERE balance>1000 and balance<5000;

SELECT * FROM Account WHERE balance>=1000 OR balance<=5000;

SELECT * FROM Account WHERE balance between 1000 and 5000;

SELECT * FROM Account WHERE balance>=1000 AND balance<=5000;

8. Refer the incomplete HTML Code given below

Assume abc.html is existing and a valid HTML page. Identify the appropriate option to be placed at
Line 1 so that values entered in the text boxes are not appended to URL while submitting to
abc.html.

Ans –

method =” GET”

method = “POST”

submit = “GET”

submit =” POST”
9. What would be the output of the following Java Script

Ans –

number object

int object

number undefined

int undefined

10. Which of the following is not a part of SRS document

Ans –

Functional Requirement

Non-Functional Requirements

Implementation Details

Hardware Software specifications

11. Consider the following array (12,3,1,5,8) Tell us the number of steps that are required to sort
the elements int the ascending order using insertion sort

Ans – 3

12. Choose the appropriate option where prototype model is used

Ans –

For projects where requirements are clear

For projects where requirements are unclear

Projects where lot of risk factors needs to be considered

Projects with frequent changes


13. Arrow symbols in the flowchart is used to show the sequence of steps and the relationship
among them. State true or false

Ans-

True

False

14. Which command in UNIX is used for clearing the Screen?

Ans-

clrscr

cls

clear

clearscreen

15. What is the command to concatenate fname and lname with a space in between and display
the output under the heading of “Full Name”?

Employee(eid,fname,lname,salary)

Ans-

Select fname || “ “ || lname as ‘Full Name’ from employee;

Select fname || “ “ || lname ‘Full Name’ from employee;

Select fname & lname as ‘Full Name’ from employee;

Select fname & ‘ ‘ & lname ‘Full Name’ from employee;

16. Frrom the below list which files will be listed using the following command

ls chap(^1-4)

Ans-

Chap4

Chap5

Chap6

Chap7

17. What is an identity of an object?

Ans-
Is the property that uniquely differentiates the object from other objects

Is the id given to the object by the class

Is the state of an object

Is the behavior of the object

18. Consider the following table structure and write a query to display all the employees who have
and don’t have department assigned

Emp(fname,lname,dno)

Dept(deptid,dname)

Ans-

Select fname,deptid from emp e, dept d where e.dno(*)=d.deptid;

Select fname,deptid,dname from emp e left outer join dept d on (e.dno=d.deptid);

Select fname,deptid,dname from emp e, dept d where.dno = d.deptid(*);

Select fname,deptid,dname from emp e full outer join dept d on (e.no=d.deptid);

19. Refer the code and predict the output

Ans-

bABC

ABC

ABCb

B Hreeva A B C
20. given the following code snippet: which of the following are true

Ans – the output will be [7 , D, 7 ]

21. Predict the output

Given two files

Ans – Compile time error

Main.java:16: error: no1 is not public in One; cannot be accessed from outside pac
kage
System.out.print(" "+o.no1);
^
Main.java:17: error: no2 has protected access in One
System.out.print(" "+o.no2);
^
2 errors

22. Identify the correct CSS representation for a paragraph

Ans-

p{padding:25px;}

p{padding=25px;}

p=padding:25px;

p: padding: 25px;

23. Which attribute is used to reference an xml schema in an xml document

Ans-

xsi:schemaLocation

xsi:Location

xsd:schemaLocation

xsi=schemaLocation

24. Two modules with more dependency is known as loosely coupled modules and two modules
with less dependency is known as uncoupled modules state true or false

Ans-

True

False

25. Carefully read the question and answer accordingly. To execute the result of the last executed
procedure, call recursive procedures use stacks. State true or false

Ans-

True

False

26. Path is used to locate file in Unix filesystem. The types of path supported are ____ and ____

Ans-
Absolute

Relative

Reference

Dynamic

27. Predict the output

Step 1: start the program

Step 2: Declare a variable count and set the count as 1

Step 3: Print the count

Step 4: Increment the count by 1

Step 5: Check whether count is greater than or equal to1. If yes go to step 3. If no go to step 6

Step 6: Print the count

Step 7: Stop

Ans-

1 1

1 2

2 1

Loop runs indefinitely

28. Below statement is an example of _____ path in Unix

&cd /home/course/CSE/C++

Ans-

Absolute

Relative

Reference

Dynamic

29. Predict the output of below command

grep “Atul” employee.txt || echo “not found”

Ans-

Searches for Atul and echoes “not found”


Searches for Atul

Searches for Atul and displays

Searched for Atul and echoes “not found” when not found

30. Consider the scenario. For an insurance, customer makes a claim. The claim can be a normal or
a critical claim. The insurance company confirms the claim. What diagram can be used to
understand the state changes of the component triggered by events and dynamic nature?

Ans-

Sate chart diagram

Sequence diagram

Activity diagram

Interaction diagram

31. Predict the output

Cat Meow

Dog BOW WOW

Dog Meow

Cat Bow Wow


32. A team of employees is trying to analyze the root cause of the issues identified for the online
Library Management. From the options identify the process that is carried out.

Ans-

Coding

Testing

Analysis

Debugging

33. Information hiding is achieved through which OOP principle?

Ans-

Abstraction

Encapsulation

Typing

Hierarchy

34. From the following options choose all the possible Exceptions for the above code

Try{

Int check = Integer.parseInt(“Five”);

Ans-(class cast, number format)

ClassCastException

IllegalStateException

NumberFormatException

IllegalArgumentException

ExceptionInInitializeError

35. Unix file system is a collection of files and directories organized in a ______ manner

Ans- hierarchical

36. Predict the output


Ans- true true

37. Predict the output

Ans-

A3B

AB

A followed by an exception

An exception is thrown at runtime


Exception in thread "main" java.lang.ClassCastException: java.lang.String cannot be cast to
java.lang.Integer

38. What is true regarding State Chart Diagram?

Ans-

Depicts different states of an object during lifetime

Flow of activity

Chart diagram of objects

Static view of objects

39. Predict the output

An exception is thrown at runtime

The code compiles and runs with no output

CTE

- Exception in thread "main" java.lang.ClassCastException: Tree cannot be cast to TestMain


40. Predict the output

Ans – 6

41. Predict the output. Which statement can replace to allow the above code to compile and run.

Ans –

List<List<Integer>> db = new ArrayList<List<Integer>>();

List<List<Integer>> db = new List<List<Integer>>();

List<List,Integer> db = new List<List,Integer>();


[0, 0, 0, 0, 0, 0]
[0, 1, 2, 3, 4, 5]
[0, 2, 4, 6, 8, 10]
[0, 3, 6, 9, 12, 15]
[0, 4, 8, 12, 16, 20]
[0, 5, 10, 15, 20, 25]
42. Carefully read the question and answer accordingly. In Linear search algorithm, if an item to be
searched is found in the middle of an array then it is said to be _____

Ans-

Best case

Worst case

Average case

Null case

43. Which of the given phases consume more time during the Software life cycle

Ans-

Analysis

Design

Testing

Maintenance

44. If you are asked to do a modular software design, which combination of coupling and cohesion
should you use for designing the software?

Ans-

High cohesion and high coupling

High cohesion and low coupling

Low cohesion and high coupling

Low cohesion and low coupling

45. What is the output of the following script

<script>var x=16+4+”100”

alert(x)</script>

Ans – 20100

46. Which jquery syntax hides all the paragraph elements

Ans-

$(“p”).hide();

$(p).hide();

$(“p”)-hide();
(“p”).hide();

47. Match the following

DDL, DML, DCL, TCL

GRANT, COMMIT, SELECT, CREATE

Ans-

DDL – CREATE

DML – SELECT

DCL – GRANT

TCL – COMMIT

Note:
DDL (Data Definition Language) – Create, drop, alter, truncate, comment, rename
DQL (Data Query Language) – SELECT
DML (Data Manipulation Language) – Insert, update, delete
DCL (Data Control Language) - Grant, revoke
TCL (transaction Control Language) – Commit, rollback, savepoint, set transaction

48. Which is the root element of every XSD?

Ans-

Schema

Root

Schema xsd

Base

49. The kernel is the core part of UNIX operating system. Choose 3 tasks achieved by Kernel from
the list below

Ans-

Performs disk operations

Manages I/O operations

Performs memory and processes management

Interfaces between user and operating system


50. You must explicitly commit GRANT on tables. State true or false

Ans-

True

False

51. Which of the following algorithm(s) is/are said to be non-adaptive?

Ans-

Selection sort

Merge sort

Bubble sort

Insertion sort

52. Which of the following is more efficient in terms of memory utilization and execution speed?

Ans-

Recursion

Iteration

Sequential

Conditional

53. In HTML, what is the default min and max values for the input type called range?

Ans-

Min=0, max=100

Min=1, max=10

Min=0, max=10

Min=1, max=100

54. Root is a super user in Unix operating system and it is represented using _____

Ans-

>
~

55. Given

Which of the following statement can replace // insert code here, that will compile without any
errors? Choose all that apply

Ans-

static void check(int...checkArgs){}

static void check(int[] checkArgs){}

static void check(int...checkArgs,int y){}

static void check(int checkArgs...){}

static void check(int x,int...checkArgs){}

56. java.util.List allows you to grow or shrink its size and provides indexed access to its elements,
but whose methods are not synchronized. State True or False

Ans-
False
True

False

57. State true or false

White box testers require the working knowledge of the code being tested

Ans-

True

False
58. Carefully read the question and answer accordingly. In an array, if an item to be searched is
found in the last element of the array or not found in the array then it is said to be _____

Ans-

Best case

Worst case

Average case

Null case

59. What does public String pattern() return?

Ans-

Returns the compiled version of boolean after matching the regular expression against the given

Returns the compiled version of regular expression into a Pattern

Returns the pattern’s source regular expression

Returns the compiled version of string into the pattern

60. What is the complexity of the given code

Ans-

O(nlogn)

O(n^2)

O(n^2logn)

O(logn)

61. Choose the options which are true with respect to views in SQL?

Ans-

View is a virtue table that does not physically exist

Views are used for maintaining logical data independence

View do not maintain data integrity


View is database objects that physically exist

62. For developing a water plant application the following statements are captured in the SRS

i) if the water level goes below 20%, then the application should raise an alarm for immediate
action

ii) if the water level goes below 15%, then the application should automatically switch on the
power button to fill in water in the tank

Identify the issue with the requirement specified in the SRS

Ans-

Contradicting requirements

No issues with the requirements

Incomplete requirements

Unreliable requirement

63. Name the Unix command to perform safe shut down a Unix system

Ans-

Poweroff

Shutdown

Reboot

64. Predict the output


Ans-

A few many

A few

Many

Compile time error - error: no suitable method found for find(int)

65. Predict the output

Ans-

66. Predict the output

Ans-

Int 127
67. When constructing looping statements, if the iteration condition Is not terminated, it will
result in infinite loop. State True or false

Ans-

True

False

68. Predict the output

Hi hi followed by exception

Hi hi hi

Hi hi

Hi

Hi followed by exception

69. Select the statements that are true about Persistence

Ans- Only 1 and 2


Persistence is a way through which the life time of object exists even after the program terminates

Java uses serialization for object persistence

Persistence is a way through which the life time of object is terminated as the program terminates

Persistence of object is done by java runtime automatically


70. Predict the output

Ans-

Compile time error

10

18

71. Bonus calculated module was unit tested by the developer. Depending on the salary the bonus
needs to be calculated. Assume if one of the salary-range is between 30000 to 40000 then the
bonus should be 10%. From the given options identify the test cases for Equivalence Partitioning.

Ans-

25000,35000,45000

25000,27000,29000

42000,43000,45000

32000,35000,39000

72. Predict the output


Ans-

Bow Wow

Roar

Bow Wow Roar

Compile time error

73. Choose the statement that true about Class?

Ans-

Class is a dynamic component

Class is described using attributes and methods

Change the class to change the state of an object

Class properties depends on object properties

74. Which xsd correctly defines a restriction on votingage element where the value is between 18
and 130

Ans- Opt A
<xs:element name=”votingage”><xs:simpleType><xs:restriction
base=”xs:integer”><xs:minInclusive value=”18”/><xs:maxInclusive
value=”130”/></xs:restriction></xs:simpleType></xs:element>

75. Given

Public abstract Interface1 {public void method(String s);}

Which of the following is/are correct class implementation(s)

Ans- B E
Public abstract class Class1 implements Interface{

Public abstract void method(String s){}

Public abstract class Class1 implements Interface1{}

Public class Class1 extends Interface1{

Public void method(Integer i) {}

Public class Class1 implements Interface1{

Public void method(Integer i) {}

Public class Classs1 implements Interface1{

Public void method(String i) {}

Public void method(Integer s) {}

76. Predict the output


Ans-

Watermelon Mango Banana Apple -5

77. What is the relationship between these two Building has rooms

Ans-

Composition

Aggregation

Generalization

Hierarchy

78. If an element is to be retrieved from a specific location in an array, the array has to be _____

Ans-

Traversed from the first position until the element is found

Added in ascending order and compared with each element

Traversed from the last position to first until the element is found

Sorted in descending order and compared with each element.

79. Predict the output


Ans-

85 Message 406 80Message

80. In which of the given SDLC models’ rapid changes are easily incorporated

Ans-

V-model

Agile model

Prototyping model

Waterfall model

81. What is the lifeline in a sequence diagram?

Ans-

Object’s life time

Actor’s life time

System’s life time

Modelling life time

82. What are the best ways to ensure that a class implements the required behavior?

Ans- A, D
Use Interface

Method inside interface are public and abstract


Have a strict testing

Use encapsulation

83. Predict the output

How many objects eligible or GC is reached, how many objects are eligible for Garbage Collection?

Ans – 1 (or 2) 1

84. Predict the output


Ans- An exception is thrown at runtime

85. What are the types of Interaction Diagrams?

Ans-

Sequence diagram

Collaboration diagram

Activity diagram

State chart diagram

86. A Team is allocated with a new project. All their work needs to be accessed and updated in the
same repository. Which of the given options would help them achieve this?

Ans-

Software configuration management

Creating a common folder in the server

Creating a common folder local

Using IDE
87. Predict the output?

Ans – 2

88. Choose the correct order in which the Oracle Server evaluate clauses

Ans-

Where, group by, having

Where, having, group by

Having, where, group by

Group by, having, where

89. Carefully read the question and answer accordingly

Analysis of selection algorithm eliminates ___ number of elements each time

Ans-

n elements
n/2 elements

n/4 elements

(n/2) +n elements

90. Predict the output

Ans- Car Ferrari Portofino Portofino

91. Software which controls radiation equipment for patients is best shut down, if it receives bad
input for a radiation dosage. This is a best example for ________

Ans-

Correctness

Robustness

Verification

Validation
92. Predict the output

Ans - *c

93. Predict the output

Ans- Compile time error


94. Predict the output

Ans- 3 1

95. Which concept ensures every change that is made to the artifact can be properly tracked and
changed?

Ans-

Version control

Resource planning

Testing

Review of artifacts

96. Which script code produces the output as Welcome to “Javascript”

Ans-

<script>var x="welcome to \"Javascript\"“; alert(x);</script>

<script>var x="welcome to "Javascript"“; alert(x);</script>

<script>var x="welcome to \"Javascript\"“; x. alert(x);</script>

<script>var x1="welcome to \"Javascript\"“; alert(x);</script>

97. Which is not an attribute of schema element

Ans-

targetnamespace
xmlns

elementFormDefault

version

98. What is the output of the following code?

<script> var str=”A bag of apples is full of apples”; var pos=str.indexOf(‘apples’);alert(pos)</script>

Ans= 9

99. Predict the output of the below SQL query

SELECT DISTINCT CITY FROM CUSTOMER;

Ans-

Displays all cities

Displays unique cities

Displays distinct cities

Query has syntax error

100. What are the best ways to ensure that a class implements the required behavior?

Ans- A and D
User interface

Method inside interface are public and abstract

Have a strict testing

Use encapsulation

101. O(nlogn) is the best-case time complexity of Bubble Sort. State True or False

Ans-

True

False

102. Predict the output of the following command

$ who | tee userlist.txt

Ans-
The command displays the output on the monitor

The command displays the output of who in the monitor and also saves the output in userlist.txt

The command saves the output in userlist.txt

The command displays an error message on the monitor

103. Which of the given options perform requirement specification- based testing

Ans-

White box testing

Black box testing

Integration testing

Glass box testing

104. Consider the following CSS script

Start program

padding: 20px, 30px;

end program

what is the order of padding property that has two values?

Ans-

Top and right, left and bottom

Right and left, top and bottom

Top and bottom, right and left

Right and bottom, top and left

105. What is the command to fetch employee id, employee name and salary with 10% increase
from employee?

Employee(eid,ename,salary)

Ans-

Select eid, ename, (salary+salary*0.1) from employee;

Select eid, ename, (salary+salary*10/100) from employee;

Select eid, ename, salary*10% from employee;

Select eid, ename, salary*10/100 from employee;


106. UNIX is more commonly used operating system in comparison with other OS. Choose two
reason from the below options in support of this statement.

Ans-

It is open source software

It is highly secure

It is user friendly

Has good graphical user interface

107. What attribute is used to indicate that an attribute is required for an element in the XSD

Ans-

use

required

needed

mandatory

108. Two tables joined using SELF JOIN are different tables with the same columns

Ans-

True

False

109. In HTML, what is the default type of an input element?

Ans-

submit

text

hidden

reset

110. What string datatype can be used for string that does not contain line feeds, carriage returns
or tabs

Ans-

xs: string

xs: name
xs: nospace

normalisedString

111. Which element is used to indicate that elements defined in the xsd must appear in the same
order in the xml file

Ans-

<xs: sequence>

<xs: ordered>

<xs: queue>

<xs: same-order>

112. Which is the HTML5 equivalent of <div id=” content”>

Ans-

<section>

<body>

<article>

<header>

113. Which script displays an alert box with the required information when a button with the
name msgbtn is clicked

Ans- A
<script>document.getElementById(“msgbtn”).addEventListener(“click”,function(){alert(“Welcome to
button clicks!”);});</script>

<script>document.getElementById(“msgbtn”).EventListener(“click”,function(){alert(“Welcome to
button clicks!”);});</script>

<script>document.getElementById(“msgbtn”).includeEventListener(“click”,function(){alert(“Welcom
e to button clicks!”);});</script>

<script>document.getElementById(“msgbtn”).addEventListener(“click”,function={alert(“Welcome to
button clicks!”);));</script>

114. Which of the given options define a set of activities that transform the client needs to an
effective software solution

Ans-
Software planning

Software cost estimation

Software development process

Software resource planning

115. order the types of cohesion from the worst cohesion to the best cohesion

a. functional cohesion

b. co-incidental cohesion

c. communicational cohesion

d. temporal cohesion

e. procedural cohesion

f. logical cohesion

g. sequential cohesion

Ans- b-f-d-e-c-g-a

116. After the development of the online website for banking, the testers found that the
application was not user friendly to differently abled people. Identify in which level of testing, the
testers would have identified this issue

Ans-

Unit testing

Integration testing

System testing

Acceptance testing

117. In javascript, which of the following popup boxes has the cancel button? Choose one

Ans-

Alert box and prompt box

Alert box and confirm box

Confirm box and prompt box

Alert box, prompt box and confirm box


118. which of the following is correct if the xsd is <xs: element name=”bgcolor” type=”xs: string”
fixed=”green”/>

Ans-

<bgcolor>green</bgcolor>

<bgcolor>red</bgcolor>

<bgcolor>green<bgcolor>

<bgcolor>GREEN</bgcolor>

119. Choose a query that will display the names of colleges where the available seats are between
50 to 100 hint: inclusive of 50 and 100

Ans-

Select college_name from college where available_seats=50 and available_seats=100;

Select college_name from college where available_seats 50 and available_seats 100;

Select college_name from college where available_seats between 50 and 100;

Select college_name from college where available_seats between 50 to 100;

120. What will be the XSD definition for the following element <age>40</age>

Ans-

<xs:element name=”age” type=”xs:integer”/>

<xs:element name=”age” type=”Integer”/>

<element name=”age” type=”xs:integer”/>

<xs:element name=”age” type=”xs:int”/>

121. Which is the correct implementation for a progress bar in HTML5

Ans- #review

<progress value=”20” max=”100”></progress>

<progress value:20 max:100></progress>

<progress value max=”20”,”100”></progress>

<progress value=”20” and max=”100”></progress>

122. Which command is used to get intermediate result in a pipeline of commands in Unix

Ans-
tee

grep

wc

ls

123. Carefully read the question and answer accordingly. A simple algorithm may have high
complexity, whereas a complex algorithm may have lower complexity in the sense of time needed
for the computations. State true or false

Ans-

True

False

124. Identify which is not an XML Naming Rule

Ans-

The names of elements are case- sensitive

Names of elements must not contain spaces

Element names can start with letters xml

An underscore can be used to start an element name

125. Which is not part of HTML5 API

Ans-

HTML Geolocation

HTML application cache

HTML Drag and Drop

HTML Geography

126. In javascript, which of the following code is valid to get an html element by name?

Ans-

document.getElementsByName

document.getElementByName

document.getElementsByNames

document.getElementByNames
127. Which of the following options in UNIX can be used for printing the calendar for December
2019?

Ans-

$ cal 12 2019

$ cal dec 2019

$ cal December 2019

$ calendar 2019

128. Kernel of UNIX operating system is written using ______

Ans-

C++

VC++

JAVA

129. Predict the output

Ans – Compile time error

130. Which option can be used to perform a forward search of string in the vi editor

Ans-

/string

/find
?find

?string

131. Unix executables are stored in which path?

Ans-

/dev

/bin

/usr

/tmp

132. Which command can be used for navigating 5 pages forward in vi editor

Ans-

5 ctrl + f

5 ctrl +b

5 ctrl + a 20 times

5 ctrl +c 20 times

133. Carefully read the question and answer accordingly. In an array, if an item to be searched is
found in the middle of an array then it is said to be _____

Ans-

Best case

Worst case

Average case

Null case

134. Constraints ensures _______ and _________ of the data in the database

Ans-

Correctness

Reliability

Reuse

Redundancy
135. Predict the output

Ans- Hello John

136. Select the abilities given by Polymorphism to the programming language

Ans-

Static polymorphism is achieved by varying the input parameters

Parent class methods can be overridden by the child class

Static class is given as-a part of relationship

Gives a stronger form of aggregation and composition

137. Sam and Rose are working on the Lone Monitoring project. The head version was checked
out by both Sam and Rose, both of them made their changes in the local machine. Both of them
made the required changes and updated the same to the server. From the given options identify
the correct option

Ans-

Both their changes get committed to the server

First person change gets committed while for the second one the server notices life differences

Both the project gets rolled back

Second project gets overwritten by the first one


138. The following code snippets belong to _________

Ans-

Linear search

Binary search

Merge search

Quick search

139. With respect to the Java code given below identify the number of references and number of
objects

Ans-

4 objects and 3 references

3 objects and 4 references

2 objects and 3 references

3 objects and 3 references


140. What is the output expected for the below code?

Ans- Won’t compile because of Line=6, constructor can’t be static

141. What will be the output of the following Java code?

Ans- “Hello” will be displayed 3 times

142. Consider the following Java code


With respect to Employee class identify where empNo and num are stored int the memeory?

Ans-

empNo and num both are stored in heap

empNo and num both are stored in stack

empNo is stored in heap and num is stored in stack

empNo is stored in stack and num is stored in heap

143. What will be the output of the following code?


Opt B

Ans- default

144. Consider the following Java code

If you want to access empName of Employee class in all the sub classes of Employee class in the
same package as well as sub classes is in some other package; which access specifier will you use?

Ans-

Public

Private

Protected

Default
145. Which of the following are inline HTML elements

<i>, <h6>, <a>

Ans- <i> and <a>

146. Consider the javascript code given below. What would be the print values from line 1 and line
2 on execution?

Ans- 40 40

147. What is the output of the program?

Ans- 15 (20) 15

148. Consider table Event(EventId, dateOfEvent) has following records

Event id DateOfEvent

_______ __________
E1 12-JAN-2018

E2

E3 13-JUN-2018

Identify the appropriate SQL statement to retrieve the eventid for which there is no date available

Ans-

Select eventide from event where dateOfEvent IS NULL;

Select eventide from event where dateOfEvent = NULL;

Select eventide from event where dateOfEvent LIKE “NULL”;

Select eventide from event where dateOfEvent IS “NULL”;

149. Consider table Department(deptId, deptname) Which of the following query is used to
display the department details whose dept_name has second letter as ‘a’ and second last letter as
’e’?

Ans-

Select * from department where deptname LIKE ‘_a%e_’;

Select * from department where deptname LIKE ‘a%e_’;

Select * from department where deptname LIKE ‘%a%e_’;

Select * from department where deptname LIKE ‘a%e%’;

150. Consider table Product(prodId, price) Identify the appropriate SQL statement to display all
the product details whose price range is 2500 and 5000 (exclusive 2500 and 5000) choose two
most appropriate option

Ans-

Select * from product where price BETWEEN 2500 and 5000;

Select * from product where price>2500 and price<5000;

Select * from product where price>=2500 and price<=5000;

Select * from product where price BETWEEN 2501 and 4999;

151. What will be the output of the following Java code?


Ans- GFT will be displayed 4 times

152. Consider the table Item( ItemCode, ItemName, Price, Category). Which is the correct sql
query to display minimum price for categories ‘A’,’C’? Choose most ppropriate option

Ans- review

Select Category, MIN(Price) from Item where Category IN (‘A’,’C’);

Select Category, MIN(Price) from Item group by category where Category IN (‘A’,’C’);

Select MIN(Price) from Item group by Price having Category IN (‘A’,’C’);

Select Category, MIN(Price) from Item where Category IN (‘A’,’C’) Group by Category;

153. What would be the output of the SQL statement given below?

SELECT TRANSLATE(‘aAB-Cb-abc’, ‘abc-‘,’123*’) from DUAL;

Ans- 1AB*C2*123

154. Consider table Account(accId, acctype, balance). Identify the appropriate SQL statement to
display account details in the ascending order of balance and in the descending order of accid if
the balance is same. Choose most appropriate one

Ans-

Select * from account order by balance, accId DESC;

Select * from account order by balance ASC,accId;

Select * from account order by accId DESC, balance ASC;

Select * from Account Order by accId DESC,balance;


155. Consider table Students (sid NUMBER (3), sname VARCHAR2 (10), scontact NUMBER (10)) is
already created in the database. It is required to change the data type of the column “scontact” to
VARCHAR2 (15). Which of the following is Correct for the above requirement?

Note: sid column is primary key

Choose most appropriate option

Ans-

To change the data type of a column, it is important to ensure that the corresponding column is
not having data for any of the record

There are no criteria to be followed. We can change the datatype of the column irrespective of the
data.

Data type can be changed only for primary key column

It is not possible to change the data type of a column

156. Identify the correct statements with respect to constraints

(i) A table can have only one FOREIGN KEY

(ii) A column with UNIQUE constraint cannot have NULL value

Ans-

Only (i)

Only (ii)

Both (i) and (ii)

Neither (i) and (ii)

157.What will be displayed in alert box while executing the below code

Ans- 100100
158. Refer the HTML code given below. How many cells will be displayed when the page is
displayed on the browser?

Ans- 8

159. Assume below code present in the HEAD tag of a HTML page.

<style> #myclass{backgound-color: lightgrey; color:blue;}</style>

Identify the appropriate HTML code to USE the style given Above

Ans-

<h1 id=”myclass”> Welcome to My Homepage</h1>

<h1 style=”myclass”> Welcome to My Homepage</h1>

<h1 class=”myclass”> Welcome to My Homepage</h1>

<h1 id=”.myclass”> Welcome to My Homepage</h1>

160. What would be the color of the text “Bengaluru” and “India” while executing the below html
and css code? Assume that “Black” is the default color if there is no style applied
Ans-Bengaluru – Red, India- Green

161. What would be the output of the java script code given below?

Ans- 12

162. Consider the java code given below. How many times will the Grandfather class constructor
be called?
Ans- (2 times)
Grandfather
Father
Child
Grandfather
Father

163. Which of the following is TRUE about the final keyword?

1. Final variables cannot be modified once initialized

2. Final methods can be overridden

3. Final classes cannot be inherited

Ans-

Only 1

Both 1 and 2

Only 2

Both 1 and 3

164. Which of the following statements is/are FALSE?


a. JVM is platform dependent

b. Byte code is platform dependent

Ans-

Only a is false

Both a and b are false

Only b is false

Both a and b are true

165. What will be the output of the following Java code?

Ans- 0

166. What will be printed in alert box in line 1

Ans- 106

167. What would be the output of the javascript code given below
Ans- number

168. Which of the following are Correct statement

a. onClick() and onFocus() are DOM events

b. In javascript a browser is represented by an implicit object called Document

c. Java script is used server-side validation

Ans-

A and c

Only a

B and c

A and b

169. What would be the output of the java script code given below

Ans- 210

170. What will be the output of the following code?


Ans- hi 10

171. Which code should be inserted at line #4 to get the below output – 2 4 6 8 10

Ans-

for(int i=0; i<=evenNumbers.length;i++)

for(int i=0; i<evenNumbers.length-1;i++)

for(int i=0; i<evenNumbers.length;i++)

for(int i=0; i<evenNumbers.length-2;i++)

172. Consider table Book (booId, bookName, copies) has following records

bookId bookName copied

______ _________ ______

B1 JAVA 0

B2 4

B3 ORACLE 2

Identify the output of the given sql statement

SELECT COUNT (bookName) FROM Book WHERE copies>0;


Ans- 1

173. Consider table Employee (empId, empname, jobband). Choose the correct sql statement to
retrieve all employee ids along with their job band. If job band is not assigned to an employee,
then it should display ‘NA’ as job band (note: Data type of column jobBand is VARCHAR2)

Ans-

SELECT empId, NVL(jobband),’NA’ FROM Employee;

SELECT empId, NVL(jobband,NULL,’NA’) FROM Employee;

SELECT empId, NVL(NULL,’NA’,jobband) FROM Employee;

SELECT empId, NVL(jobband,’NA’) FROM Employee;

174. Refer the following Java code

When the above code is executed how many time/times “Hello” will be printed on the console?

Ans- 1 time

175. Consider table Students(studentId,branchId). Identify the correct sql statement to retrieve
the branches which has more than 3 students.

Ans-

SELECT branched FROM Students WHERE COUNT(*)>3 GROUP BY branched;

SELECT branched FROM Students HAVING COUNT(*)>3;

SELECT branched FROM Students GROUP BY studentid HAVING COUNT(*)>3;

SELECT branchid FROM Students GROUP BY branchid HAVING COUNT(*)>3;


176. With respect to the java code given below identifythe relationship that exists between class
account and SavingsAccount

Ans-

Aggregation

Composition

There is no relationship between class Account and class SavingsAccount

Inheritance

177. Which of the following statement/s is/are TRUE?

1. Abstract method can have body

2. Abstract class cannot be instantiated

3. Abstract class can have constructor

Ans-

Both 1 and 2 are true

Both 2 and 3 are true

Both 1 and 3 are true

Only 2 is true

178. Given the following declaration which expression returns the size of the array, assuming the
array has been initialized?

Int[] array;

Ans-

Array[].length();

Array.length();

Array.length;
Array[].size();

179. What will be the output of the following java code?

Ans- Lower Case Letter

180. Identify how many variables/object will be in stack and heap residency?

Ans-

3 in stack 1 in heap

2 in stack 2 in heap

4 in stack 0 in heap

0 in stack 4 in heap

181. Refer to the below code and predict the output


How many String objects are created in the above code?

Ans-

182. Consider the Employee class given below

If you do not want all the subclasses of Employee class to override the computeSalary() method,
what modification will you do for computeSalary() method?

Ans-

Make computeSalary() method as abstract

Make computeSalary() method as final

Make computeSalary() method as static

183. Choose most appropriate option


Ans- 50 40 50 40

184. Identify the relationship that exists between class Student and class Faculty.

Ans-

Composition

Inheritance

No relationship

Aggregation
185. Which is the correct CSS code to display the text “Accenture” in light grey background?
Choose most appropriate option

Ans-

<h2 style = “background-color : lightgrey”> Accenture </h2>

<h2 background-color : lightgrey> Accenture </h2>

<h2 style = “background-color(lightgrey)”> Accenture </h2>

<h2 style = “background-color = lightgrey”> Accenture </h2>

186. Which of the following are the CSS selectors?

a. Element selector

b. form selector

c. class selector

Ans- A and B
A and b

A and c

B and c

A, b and c

187. Consider the java code given below and determine how many references are used in the java
code. Assume the student is a valid java class

Ans-

2 objects and 4 references

4 objects and 2 references

2 objects and 2 references

3 objects and 4 references


188. Predict the output of the following code

Ans- Welcome hello

189. Predict the output

Ans-

Compilation error: illegal modifier for the constructor in type Employee


190. What would be the output of the below java script code?

Ans- false—false

191. You have three packages p1,p2,p3 what is the expected output of compiling and running file
tester in p3 package?

Ans-

Account CurrentAccount

Compilation error at line6 in package p3 Constructor ‘Account’ is not visible

Compilation error at line3 in package p3 cannot import CurrentAccount class


192. What will be the output of the following java code

Ans-

10000

Null

Compilation error at Line-1 : Implicit super constructor: Employee() is undefined Must explicitly
invoke another constructor

193. Refer to the below code and predict the output


Ans- 2

194. Consider table Item(itemId, category, unitprice). Identify the appropriate SQL statement to
display the category and count of items in each category in the ascending order of item count. It
should display the item details only if the count of item is greater than 1

Ans-

SELECT category, count(itemId) FROM item WHERE Count(itemId)>1 GROUP BY category ORDER BY
COUNT (itemId);

SELECt category, count(itemId) FROM item GROUP BY category HAVING Count(itemId)>1 ORDER
BY COUNT(itemId);

SELECT category,count(itemId) FROM item HAVING Count(itemId)>1 ORDER BY COUNT(itemId);

195. Consider table Item(itemId, category, unitprice). Identify the appropriate SQL statement to
display Item id, and discount in the ascending order of discount

Ans-

Select itemid, discount=unitprice*0.1 from Item order by discount;

Select itemId, unitprice*0.1 as discount from Item order by discount;

Select itemid, discount from item order by discount;

Select itemId, unitprice*0.1 as discount from item order by itemId;


196. You are suppose to create a table “ExamResult” with the following descripton. studentId
NUMBER(4), courseid VARCHAR(10), mark NUMBER(3). There should not be duplicate
combination of studentId, and courseid in any record. Identify the correct DDL statement to create
ExamResult table

Ans-

CREATE TABLE ExamResult( studentId NUMBER(4), courseid VARCHAR2(10), mark NUMBER(3),


CONSTRAINT er_pk PRIMARY KEY(studentId, courseid));

197. Kevin is a java programmer. He writes a Java code and compiles his code. What type of file
Kevin will get as a result of compiling his Java code?

Ans-

Java file

.exe file

.class file

Obj file

198. Ram is a Developer; he receives a defect list from the testing team for the code which he
developed. He fixes the defects and assigns it back to the test manager/tester. What should be the
status of the defect now?

Ans-

Open

Fixed

Closed

New

199. Software Configuration Management, ________ concept is used to control the changes

Ans-

Baseline

Process

Procedure

Audit

200. Consider the given array:


EAFBDC

EAFBDC

AEFBDC

AEBFDC

AEBDFC

A E B D C F…. so on

After all consecutive iterations, the array is sorted

Which sorting technique compares the adjacent data elements and swaps each pair of elements?

Ans-

Quick sort

Bubble sort

Merge sort

Heap sort

201. Difficult Unit test performed on the post office savings schemes module. Assume that the
minimum deposit amount is Rs. 1000 and the maximum deposit amount is Rs. 10000. Based on the
Boundary Value Analysis choose the correct test cases to perform this unit test.

Ans-

999,1000,10000,10001

800,6000,15000

999,1001,5000,9999,10001

1000,5000,10000

202. John is a poker card player in a casino. The way he arranges his cards as he picks them up one
by one is a real time example of which sorting technique?

Ans-

Bubble sort

Merge sort

Insertion sort

Selection sort
203. In many situations, it would be necessary to make a decision before arriving at a conclusion
or to go on to the next step of processing. Which of the following suits the given description?

Ans-

Conditional statement

All of the options

Iterative statement

Sequential statement

204. which of the following program has the lowest run-time complexity?

Ans-

Tower of Hanoi B/ c but mostly c


Sum of n Digits

Find even or odd

Fibonacci series

205. Manual execution of steps in an algorithm is called as ________.

Ans-

Dry run

Flowchart

Quick run

Pseudocode

206. In case of Banking application, customers are the only stakeholders State true or false

Ans-0

207. Dave has to store data in a nonlinear data type to represent hierarchical relationship
between elements. Which data structure should he use for it?

Ans-

Linked List

Stack

Queue

Tree
208. The names in a telephone directory were not in order. It took a long time to look for the
telephone number of a particular person. Which algorithm would be the best to resolve this issue.

Ans-

Binary Search

Linear Search

Deletion Algorithm

Sorting Algorithm

209. Roshan is a beginner in the learning path of Data Structure. Assume a singly linked list of
length n is given. In a worst-case scenario, he wants to find out the maximum number of
computations required to search for a given element. Help Roshan to find out the best option

Ans-

Log 2 n

Log 2n+1

Log 2n-1

210. A Professor class uses the Scheduler class to display the scheduled classes of the professor for
a week. What will be the relationship between the Professor and the Schedule class?

Ans-

Inheritance

Aggregation

Composition

Dependency

211. A system administrator needs to identify different types of files in the UNIX system. Help by
matching the correct symbols used to identify the file type

1. - 2. l 3.b 4.c

With

a. Regular file b. Link file c. Block device file d. Character device file

Ans-

1-A, 2-B, 3-C, 4-D

1-D, 2-A, 3-B, 4-C


1-D, 2-B, 3-C, 4-A

1-D, 2-C, 3-B, 4-A

212. Choose the executable query to display contact_details by concatenating mail_id and the
phone number of employees (multiple answers possible)

Example: table name- employee

Mail-id phone_number

[email protected] 9755367343 B&C


Sample output: [email protected],9755367343

Ans-

SELECT concat(mail_id, phone_number) as contact_details FROM employee;

SELECT mail_id, (‘,’), phone_number as contact_details FROM employee;

SELECT concat(concat(mail_id,’,’),phone_number) as contact_details FROM employee;

SELECT || mail_id || ‘,’ || phone_number as contact_details FROM employee;

213. Zara marketing company wants to keep track of the attendance of its employees in all of their
branches so that the salary calculation can be done from the Central office located at Bangalore.
The head office has delegated the work to the branch offices so that they can keep track of the
attendance in any manner, be it manual or biometric or swipe cards etc.

For the above scenario, identify the correct statements from the given options.

Ans-

Head office is an abstract class

Branch office is an abstract class

Head office is a concrete class

Branch office is a concrete class

Both head office and branch office are abstract classes

214. Which of the following statements are true in regard to the object-oriented programming
technique?

1. object is a blueprint or template for a class

2. class is a blueprint or template for an object

3. object is an instance of a class

4. class is an instance of an object


Ans-

1 2 only

1 4 only

2 3 only

3 4 only

215. Assume a class Student with the attributes id, name, grade and collegeName. The value for
collegeName is “Trindy” which is same for all the objects of the Student class. What type of
variable is collegeName?

Ans-

Static variable

Instance variable possessed by each object

Local variable for the class

Public variable

216. Predict the output

Ans- 10

217. What does an action flow represents in an Activity Diagram?

Ans-
Transition from one action state to another

Passing of data from activity to another

Trigger events

Flow of priority flows

218. Which of these is used to prevent the error ‘ORA-00937’ not a single group group function?

Ans-

Use group by clause

Use where clause

Use order by clause

Use having clause

219. Which key can be used to change the mode from input mode to command mode?

Ans-

Esc

Esc + i

Esc + a

Esc + l

220. Match the following

1. Tables 2. Index 3. Views 4. Synonyms 5. Sequences

a. store all the data in database

b. indicate where data is stored in another table

c. modify the user’s view of data to only certain rows and columns in a table

d. definable label for a table

e. generate unique integers that can be assigned primary keys of tables

Ans-

1-A, 2-B, 3-C, 4-D, 5-E

1-E, 2-A, 3-B, 4-C, 5-D

1-D, 2-E, 3-C, 4-A, 5-B

1-D, 2-C, 3-E, 4-A, 5-B


221. Choose an DDL command which delete all rows from the table and where the deleted data
cannot be rolled back (hint: Table structure should not get deleted)?

Ans-

DROP

TRUNCATE

DELETE

None of the above

222. Match the following data command with the correct output

Consider today’s date is 22nd April 2020

1. date +%b 2. data +%D 3. date +%F 4. date +%H

With

a. Apr b. 04/22/20 c. 20-04-22 d.05

Ans-

1-A, 2-B, 3-C, 4-D

1-D, 2-A, 3-B, 4-C

1-D, 2-B, 3-C, 4-A

1-D, 2-C, 3-B, 4-A

223. predict the output for the given pseudocode snippet

SET count = 1

WHILE count less than or equal to 5

Print “Hello world”

Count = count+1

END WHILE

Ans-

Prints “Hello world” 5 times

Prints “Hello world” 6 times

Loop goes on infinitely

Prints “Hello world” 4 times


224. Predict the output

Ans- 3

225. Match the metacharacters with the respective types

1. ?”[][!] 2. > >> < << 3. ,() & && || 4. $1 to $9

a. Positional parameters b. Filename substitution c. I/O Redirection d. Process Execution

Ans-

1-A, 2-B, 3-C, 4-D

1-D, 2-A, 3-B, 4-C

1-D, 2-B, 3-C, 4-A

1-D, 2-C, 3-B, 4-A

226. the standard output of one program can be redirected as standard input to another program
using _________

Ans-

||

>

<

227. Consider the query

Start program
DELETE FROM departments WHERE department_id=50;

ERROR 1: ORA-02292: integrity constraint (HR.EMP_DEPT_FK) violated – child record found

End program.

What does the error convey?

Ans-

You cannot delete a row, if the row’s primary key column holds a input that is present as a foreign
key in another table

You cannot delete a row when it has column level constraints

You cannot delete a row when it has table level constraints

None of the options

228. Which of the following

a. int number();

b. float average

c. double[] marks;

d. counter int[];

Ans-

229. Consider the following code snippet and predict the output

Ans- Compilation error at Line-1 : The blank final field ‘x’ may not have been initialized

230. What will be the output of the following Java code


Ans- 1003

231. What is the output of the following Java code

Ans- Compilation error

232. Predict the output


Ans- ONE TWO THREE

233. Consider the table Product (pid, pname, pcost) Identify the appropriate SQL statement to
rename the table to ProductsInfo.
Opt D
Ans-

ALTER TABLE Products RENAME TO ProductInfo;

234. Consider the table Account (accId, balance, accountType). The following constraints to be
enforced

1. AccId should be unique and NOT NULL

2. Account type should be ‘C’ or ‘S’. Balance should be greater than 1000 and 3000 for account
type ‘C’ and ‘S’ respectively.

Identify the CORRECT SQL statement to create the Account table with the above mentioned
constraints.

Ans-

CREATE TABLE account (accid NUMBER (2) CONSTRAINT acc_pk PRIMARY KEY, balance NUMBER
(4), accountType CHAR , CONSTRAINT acc_chk CHECK (accountType=’S’ AND balance>3000) OR
(accountType=’C’ AND balance>1000));
235. Which of the following is used to reference data that can act as an abbreviation or can be
found at an external location?

Ans- ENTITY

236. Display the contents present inside <h1> tag in uppercase. Which of the following options will
suit the requirement?

Ans- h1{text-transform: uppercase;}

237. __________ is an unparsed character data that can’t be parsed be the parser.

Ans- CDATA

238. In a CSS script, each property of an element is separated by a ______

Ans – semicolon (;)

239. In CSS script, which of the following style is used to print a table with double border?

Ans- border-style: double;

240. An external Java script file can be included in an HTML code using the ______ attribute in a
script tag

Ans – src

241. Predict the output

Ans- Run time exception


242. Which of the following tag is not supported in HTML5 but used in HTML4?

Ans- <hr> <CENTER>


not hr
243. which OOP principle is the ranking or ordering of abstraction

Ans- hierarchy

244. The object which is used to fetch the input from an element for processing is ______

Ans- document

Form

navigate

245. Predict the output

Ans- [One, 1, null, 3.4, null]

246. in which of the following statements can sub queries used?

Ans –

SELECT statement and UPDATE statement

Alter statement

DELETE statement

All of the above

247. Match the appropriate options to move cursors in the vi editor


1. l 2. k 3. h 4. b

With

a. move cursor down one line

b. move cursor up one line

c. move cursor left one line

d. move cursor to beginning of next word

Ans-

1-A, 2-B. 3-C, 4-D

248. For a logically cohesive module, there are some activities to be experimented. These activities
are preferred from inside the module itself

Is the above given statement true? If not, choose the correct option to make it true.

Ans-

the activities are selected from outside the module

the activities are selected in a random manner

the activities are selected in a sorted manner

the given statement is true

249. Which of the given pseudocodes finds the perimeter (circumference) of the circle radius

Ans-

BEGIN

NUMBER radius, circumference

INPUT radius

Circumference=2*3.14*radius

OUTPUT circumference

END

250. which of the given statements are true with respect to hierarchy principle of OOP

Ans-

Generalization represents “IS A” relationship between classes


251. Predict the output

Ans- Run time exception

252. Predict the output

Ans – 1 3 8

253. Predict the output

Which of the following statement has to be uncommented in order to compile the above code
without any errors?
Ans-

Return new ArrayList<TempEmp<();

254. which of the following is a well formed XML document?

Ans-

Startprogram

<employee>

<empname>ravi</employeename>

<address location=”north”>nehrunagar</laddress>

<phone>23251545</phone>

</employee>

Endprogram

255. Which of the following java script code helps to change the content of the anchor tag?

Startprogram

<script>

function func(){

// insert the appropriate code from the given options


}

</script>

<a href=”#” id=”hid1” onclick=”func()”> click here </a>

End program Opt D

Ans=

Document.getElementById(“hid1”).innerHTML=”clicked”

256. which of the following jQuery script is valid to hide the first occurred paragraph with the class
name as hideMe

Ans – review

$(“p.hideMe:hide(first)”);

257. consider the table Project (ProjectId, ProjectName, ProjectType) is created without any
constraint and has the records as per attachment

ProjectId ProjectName ProjectType

P1 FIN A1

P2 SALE A2

P1 FIN A1

Identify the ALTER statement which executes successfully on project table.

Ans-

ALTER TABLE Project ADD CONSTRAINT proj_pk PRIMARY KEY(ProjectId);

ALTER TABLE Project ADD CONSTRAINT proj_uk UNIQUE(ProjectName);

ALTER TABLE Project ADD CONSTRAINT proj_no NOT NULL(ProjectType);

ALTER TABLE Project ADD CONSTRAINT proj_chk CHECK(ProjectType IN(“A1”,”A2”));

258. Consider table Player(PlayerId, PlayerName, Rating) has records as shown below.

PlayerId PlayerName Rating

P1 Sachin 5

P2 ABD 4.3

P3 Virat 4.6

P4 Watson 4.3

P5 Butler 4.6
Identify the appropriate SQL statement to display the player details whose rating is equal to
Virat’s rating or Watson’s rating (note: Result can have Virat’s and Watson’s record as well)

Ans-

SELECT * FROM Player where Rating IN (SELECT Rating FROM Player WHERE PlayerName = “Virat”
or PlayerName= “Watson”);

259. What access specifier can be used for computeSalary() method in Employee class so that code
in Line-1 will execute without any error?

Ans- Either public or protected or default

260. Consider the tables given below

Customer (customerId, customerName)

Book (bookId, bookName)

Purchase (purchaseId, bookId, customerId)

bookId and customerId in purchase table are foreign keys referring to Book and Customer book
tables respectively. Which is the CORRECT SQL statement to retrieve name and book name for all
books purchased by customers?

Ans-

SELECT c.customerName, b.bookName FROM customer c INNER JOIN purchase p ON


c.customerId=p.customerId INNER JOIN book b ON b.bookId=p.bookId;

261. Which command can be used in vi editor to delete 10 lines?

Ans – 10 dd
262. What operator is used to present the error “ORA-01427: single row sub query returns more
than one row?

Ans – Use the IN operator

263. a company wants to create a Leave Management System software for its employees. Find the
classes for Employee Leave Management software. The company wants to maintain its
employee’s leave information.

Ans- (some chose company also)

Employee

Leave

Company

Project

264. Choose an SQL query to find name of all the employees whose name contain the word
“kumar” example kumaran, arun kumar (kumar will be at any place)

Ans-

SELECT * FROM employees where lower(name) like “%kumar%”;

265. the element to specify a list of predefined options for input controls is

Ans- <datalist>

266. Given the following XML document

<studentname>

<first>raveena</first>

<last>dantan</last>

</studentname>

What is a correct schema structure for it?

Ans-
OptA
Startprogram

<xsd:schema xmlns:xsd=”http://www.w3.org2001/XMLSchema”>

<xsd:element name=”studentname”>

<xsd:complexType>
<xsd:sequence>

<xsd:element ref=”first />

<xsd:element ref=”last />

</xsd:sequence>

</xsd:complexType>

</xsd:element>

</xsd:schema>

Endprogram

267. Predict the output

Ans- IndexOutOfBoundException

268. Predict the output

Ans – CTE
269. Consider the following java code

Opt A

Identify the CORRECT Java code which will help you to create an instance of Software Engineer

Ans- SoftwareEngineer engineer = new SoftwareEngineer(“Dave”,1007);

270. Given two executable queries

a.) select name, address from users where user_id not in(select user_id from bookingdetails where
lower(name)=’city union bank’) order by name;

b.) select name, address from users where user_id in (select user_id from bookingdetails where
lower(name) != “city union bank”) order by name;

will both queries produce the same output?

Ans- True

271. State True or False

A sequence diagram can represent object interactions arranged in a time sequence. It will
represent only a sequence of the flow but aspects like branching, looping cannot be represented in
the sequence diagram

Ans- False

272. Mrs, Nancy has a Pan Card

What is the cardinality relationship between the entities: Person and Pan card

Ans- One to One

273. In the City Library when a member needs to return a book, the librarian will collect the
penalty from the member if the book is returned later than the due date. When this is represented
in a use case diagram, what is the relationship between the use cases “Return Book” and
“Calculate Penalty”?
Ans- extend

Include

Exclude

Generalization

realization

274. which of the following statements are true with respect to “a query with join operation”?

Ans-

You must refer to all the columns from both tables with ….

You must refer to the columns that are common to 2 tab…

You must have the column common to 2 tables in the….

You can sort your result by a column which is not p…..

275. which of these have higher precedence: the AND operator or the NOT operator?

Ans-

AND

NOT

Both have equal precedence

None of the above

276. Which of the following statements is true with respect to given Oracle query

Start program

Create table AQI_DELHI_1 as Select * from AQI_DELHI;

End program

Ans-

Table “AQI_DELHI_1” is created with same structure as that of “AQI_DELHI” table – with
AQI_DELHI table’s data

The query is erogenous

Table “AQI_DELHI_1” is created with same structure as that of “AQI_DELHI” table – without
AQI_DELHI table’s data
277. Which jQuery is syntactically wrong?

Ans-

<script>$(document).ready(function(){$(“#flow”).click(function
$(“#box”).slideDown(“slow”);});});</script>

278. what is the syntax for representing the minimum of an element in XMLSchema?

Ans-

<xsd:element ref=”note” minOccurs=”0” />

<xsd:element ref=”note” mins=”0” />

<xsd:elements ref=”note” minOccur=”0” />

<xsd:elements ref=”note” minOccur=”0” />

279. what is a lifeline in a Sequence Diagram?

Ans-

Objects’s life time

Actor’s life time

System’s life time

Modelling life time

280. what is the use of a DTD in XML development?

Ans-

It is required for validating XML documents

For displaying a particular section of XML code

For avoiding name collisions

For giving more control over structure and content of XML document

281. Consider the given problem statement

You have to input 100 numbers and find the sum of the 100 numbers and display the process of
the sum.

Identify which of the given pseudo code snippets would achieve the desired result.

Ans- (pls understand I’m not gonna type all snippets :D) All of the option
282. Predict the output

Ans- (Map=IDIB1001,map=IDIB1000)
GF Mock 2

Arumalla Test Taken on: January 31, 2019 02:36:16 PM IST


[email protected] Finish State: Normal

Registration Details

Email [email protected] First Name: Arumalla


Address:

Overall Summary

MARKS SCORED


Score Percentile Percentage

Section #1 42 / 50 89 84

Total 42 / 50 89 84

Percentile is among 1473 candidate(s) who've taken this test.

SUMMARY OF ATTEMPTS TIME TAKEN

0 44
hr min
8 Incorrect
(Scored 0/8)
Available time: 1 hr 20 min

TOTAL QUESTIONS

42 Correct
(Scored 42/42)
50

1 / 48
Question-wise Details

Section #1

Question 1: Time: 21 Sec Marks: 1/ 1

Which of the following statement(s) is/are TRUE?

1) JavaScript is case sensitive

2) JavaScript can be placed only in head tag

3) JavaScript can be placed both in head tag and body tag

4) JavaScript is used for client side validations

Options Response Answer

3 and 4 only

1,3 and 4 only

2,3 and 4 only

1,2,3 and 4

Question 2: Time: 17 Sec Marks: 1/ 1

2 / 48
Refer the Incomplete JavaScript code given below:

<script>

var gVar='This is global value';

function aFun(){

var gVar='Local Data1';

//Line1

</script>

<button onclick='aFun()'>Click</button>

Identify the CORRECT option which if placed at Line1 will display the alert message 'This is global value'

Options Response Answer

alert(gVar)

alert(global.gVar)

alert(document.gVar)

alert(window.gVar)

Question 3: Time: 56 Sec Marks: 1/ 1

3 / 48
What will be the output of the following Java code?

public class ApplicationTester {


public static void main(String[] args){
int data1=10, data2=10;

if (data1 > data2){
System.out.println("1");
} else {
System.out.println("2");
}
}
}

Choose the most appropriate option.

Options Response Answer

The code will display both 1 and 2

Compilation error: Invalid use of ‘if’

Question 4: Time: 59 Sec Marks: 0/ 1

4 / 48
What will be the output of the following Java code?

class Person {
public void work() {
System.out.println(”Person Work's”);
}
}

public class Employee extends Person {


public void work() {
System.out.println(”Employee Work's”);
}
public static void main(String[] args) {
Employee employee=new Employee();
Person p=employee;
p.work();
}
}

Choose the most appropriate option.

Options Response Answer

Employee Work's

Person Work's
Employee Work's

Compilation Error : work method in


Employee cannot have same signature
as that of it's parent Person

Person Work's

Question 5: Time: 2 Min 4 Sec Marks: 0/ 1

5 / 48
What will be the output of the following Java code?

public class ApplicationTester {


public static void main(String[] args) {
char letterArray[]={'a','A','h','h','m','m'};
for(int index=0;index<letterArray.length;index++){
if(letterArray[index] == letterArray[index+1]){
break;
}
System.out.print(index + " ");
}
}
}

Choose the most appropriate option.

Options Response Answer

0 1 2

0 1

0 1 2 3

0 1 2 3 4

Question 6: Time: 56 Sec Marks: 0/ 1

6 / 48
What will be the output of the following Java code?

interface A{
void display(); // Line X
}

class B implements A{
void display(){ // Line Y
System.out.println("B");
}
}
public class Demo{
public static void main(String[] args) {
A a=new B(); // Line Z
a.display();
}
}

Choose the most appropriate option.

Options Response Answer

Compilation error at Line Z: Invalid


reference type

Compilation error at Line X: missing


‘abstract’ keyword

Compilation error at Line Y: cannot


reduce the visibility of the method

Question 7: Time: 7 Sec Marks: 1/ 1

An end to end testing of application by client users is known as ----------

Choose the most appropriate option.

7 / 48
Options Response Answer

Acceptance Testing

Unit Testing

Product Testing

Performance Testing

Question 8: Time: 31 Sec Marks: 1/ 1

Consider the Java code given below:

public class Student{


//Attributes of Student class
//getter and setter methods
}
public class ApplicationTester{
public static void main(String[] args){
Student stu1=new Student();
Student stu2=new Student(12345,"Rama");
Student stu3;
stu3=stu1;
}
}

With respect to the above code, how many Student objects and references are created in main method?

Choose the most appropriate option.

Options Response Answer

3 Objects, 3 References

3 Objects , 2 References

2 Objects, 3 References

2 Objects, 2 References

Question 9: Time: 25 Sec Marks: 1/ 1

8 / 48
Which of the following is/are TRUE with respect to method overloading?

a. Method name should be the same


b. Return type of the methods should be the same
c. Number of parameter and sequence of parameter must be different

Choose the most appropriate option.

Options Response Answer

Both (b) and (c ) are TRUE

Only (a) is TRUE

Both (a) and (b) are TRUE

Both (a) and (c ) are TRUE

Question 10: Time: 14 Sec Marks: 1/ 1

What are the benifits of ADM?

(1) Project standardization and customization


(2) Common project management framework

Choose the most appropriate option.

Options Response Answer

Both (1) and (2)

Only (1)

Neither (1) Nor (2)

Only (2)

Question 11: Time: 2 Min 21 Sec Marks: 0/ 1

9 / 48
Assume that table Event is created using the below script.

CREATE TABLE Event(

EventId VARCHAR2(5) CONSTRAINT Event_PK PRIMARY KEY,

EventName VARCHAR2(20) CONSTRAINT Event_NN NOT NULL,

StageNumber NUMBER(2) DEFAULT 1,

NumberOfParticipants NUMBER(2));

Identify the correct insert statements which can be applied on Event table

a) INSERT INTO Event VALUES('E1','Dance',NULL,2);

b) INSERT INTO Event VALUES('E1','Speech',1);

c) INSERT INTO Event(EventId,EventName) VALUES('E3','Drama');

d) INSERT INTO Event(EventId,StageNumber,NumberOfParticipants) VALUES('E4',4,7)

Options Response Answer

a and c

a and d

a and b

b and c

Question 12: Time: 1 Min 53 Sec Marks: 0/ 1

10 / 48
Consider the below tables.

Customer(customerId,customerName) - customerId is primary key

Account(accountId,accountType,balance,customerId) - accountId is primary key and customerId is foreign key

Which is the CORRECT SQL statement to retrieve customerId, customerName, accountId and balance for all customers. It
should also display the details of the customers who are not having any account.

Options Response Answer

SELECT c.customerId,c.customerNam
e,a.accountId,a.balance

FROM account a RIGHT OUTER JOIN


customer c

ON c.customerId=a.customerId;

SELECT c.customerId,c.customerNam
e,a.accountId,a.balance

FROM customer c RIGHT OUTER


JOIN account a

ON c.customerId=a.customerId;

SELECT c.customerId,c.customerNam
e,a.accountId,a.balance

FROM customer c INNER JOIN


account a

ON c.customerId=a.customerId;

SELECT c.customerId,c.customerNam
e,a.accountId,a.balance

FROM account a LEFT OUTER JOIN


customer c

ON c.customerId=a.customerId;

11 / 48
Question 13: Time: 33 Sec Marks: 0/ 1

Consider the following Java code. Identify the relationship between class Employee and class PartTimeEmployee.

public class Employee {


private int empId;
private String empName;

}

public class PartTimeEmployee extends Employee {


private float noOfHours;
}

Choose the most appropriate option.

Options Response Answer

Composition

Aggregation

Realization

Generalization

Question 14: Time: 1 Min 41 Sec Marks: 1/ 1

12 / 48
Consider the following tables:

Account(AccountNumber, AccountOpeningDate, Balance). Here AccountNumber is

the primary key.

Transaction(TransactionId, AccountNumber, DateOfTransaction, Amount, TransactionType);

Here TransactionId is the primary key and AccountNumber is the foreign key

referencing AccountNumber in Account table.

Which is the CORRECT query to display AccountNumber and balance of accounts on which NO transaction was done after '31-
Dec-2015';

Options Response Answer

SELECT AccountNumber,Balance
FROM Account

WHERE AccountNumber NOT IN

(SELECT AccountNumber FROM


Transaction);

SELECT AccountNumber,Balance
FROM Account

WHERE AccountNumber NOT IN

(SELECT AccountNumber FROM


Transaction

WHERE DateOfTransaction = '31-Dec-


2015');

13 / 48
SELECT AccountNumber,Balance
FROM Account

WHERE AccountNumber IN

(SELECT AccountNumber FROM


Transaction

WHERE DateOfTransaction > '31-Dec-


2015');

SELECT AccountNumber,Balance
FROM Account

WHERE AccountNumber NOT IN

(SELECT AccountNumber FROM


Transaction

WHERE DateOfTransaction > '31-Dec-


2015');

Question 15: Time: 1 Min 20 Sec Marks: 1/ 1

14 / 48
What will be the output of the following Java code?

Policy.java

public class Policy {


private void readPolicy(){
System.out.println("Policy - readPolicy()");
}
public void writePolicy(){
System.out.println("Policy - writePolicy()");
}
}

MoneyBackPolicy.java

public class MoneyBackPolicy extends Policy{


public void readPolicy(){
System.out.println("MoneyBackPolicy - readPolicy()");
}
public void writePolicy(){
System.out.println("MoneyBackPolicy - writePolicy()");
}
}

DynamicBindingTester.java

public class DynamicBindingTester {


public static void main(String[] args){
Policy policy = new MoneyBackPolicy();
policy.readPolicy();
}
}

Choose the most appropriate option.

Options Response Answer

MoneyBackPolicy - readPolicy()

Compilation error: The method


readPolicy() from the type Policy is not
visible

There is no error in the code, but the


code will not display any output.

Policy - readPolicy()

15 / 48
Question 16: Time: 31 Sec Marks: 1/ 1

What will be the output of the following Java code?

package x;
public class Student{
void display(){ // Line 1
System.out.println("Hello");
}
}

package y;
import x.Student; // Line 2

public class TestFinalClass {


public static void main(String[] args) {
Student s = new Student();
s.display(); // Line 3
}
}

Choose the most appropriate option.

Options Response Answer

The code will print Hello

Compilation error at Line 2 : Cannot


import class Student from package x

Compilation error at Line 3 : The


method display from type Student is not
visible

Compilation error at Line 1 : No access


specifier defined for method display

Question 17: Time: 12 Sec Marks: 1/ 1

16 / 48
Refer the JavaScript code given below.

<html>

<head>

<script>

function aFun(){

var num1=111;

var num2="111";

alert(num1==num2) //Line1

alert(num1===num2) //Line2

</script>

</head>

<button onclick='aFun()'>Click</button>

</html>

When the above code is executed, what will be the output produced by Line1 and Line2?

17 / 48
Options Response Answer

Output from Line1: true, Output from


Line2: true

Output from Line1: false, Output from


Line2: true

JavaScript will show a compilation error


as "===" is not defined

Output from Line1: true, Output from


Line2: false

Question 18: Time: 2 Min 19 Sec Marks: 1/ 1

18 / 48
Assume that table Customer has some records as shown below.

CUSTOMERID ACCOUNTNUMBER BALANCE

1 100 2000
2 100 500
3 101 2500
4 101 1000

Identify the CORRECT SQL statement to display the output as shown below.

CUSTOMERID ACCOUNTNUMBER BALANCE

4 101 1000
3 101 2500
2 100 500
1 100 1000

19 / 48
Options Response Answer

select * from customer order by


balance;

select * from customer order by


accountnumber, balance ;

select * from customer order by


accountnumber desc,balance desc;

select * from customer order by


accountnumber desc,balance;

Question 19: Time: 31 Sec Marks: 1/ 1

Assume that table Player has the following records.

PlayerId Salary PlayerAverage

P1 25000 75.5
P2 20000 70
P3 22000 70.5

How many row(s) will be deleted after executing the SQL statement given below?

DELETE FROM Player WHERE Salary>20000 OR PlayerAverage<=70;

20 / 48
Options Response Answer

Question 20: Time: 16 Sec Marks: 1/ 1

Assume that table Employee has following records.


EmpId JobBand DeptId

1001 A 10
1002 B 30
1003 A 20
1004 A 10

Which is the CORRECT SQL statement to display the output as show below.

JobBand DeptId

A 10
A 20
B 30

21 / 48
Options Response Answer

SELECT DISTINCT jobBand,DeptId


from Employee;

SELECT DISTINCT
jobBand,DISTINCT DeptId from
Employee;

SELECT DISTINCT jobBand,DeptId


from Employee WHERE jobBand='A'
AND jobBand='B';

SELECT DISTINCT
jobBand,DISTINCT DeptId from
Employee WHERE jobBand='A' AND
jobBand='B';

Question 21: Time: 27 Sec Marks: 1/ 1

Which of the following code inserted in Line #3 prints the below output?
3 6 9 12 15 18

1. public class ForLoopTester {
2. public static void main(String[] args) {
3. // Code to be inserted
4. }
5. }

Choose the most appropriate option.

22 / 48
Options Response Answer

for(int number = 3; number < 20;


number++){
System.out.print(number + " ");
}

for(int number = 0; number < 20;


number+3){
System.out.print(number + " ");
}

for(int number = 3; number < 20;


number+=3){
System.out.print(number + " ");
}

for(int number = 0; number < 20;


number+=3){
System.out.print(number + " ");
}

Question 22: Time: 57 Sec Marks: 1/ 1

What will be the output of the following Java code?

public class StringTester{


public static void main(String[] args) {
String s1=new String("Accenture");
String s2=new String("India Limited");
s1.concat(s2);
System.out.println(s1);
}
}

Choose the most appropriate option.

23 / 48
Options Response Answer

Accenture

Accenture India Limited

India Limited

Accenture India

Question 23: Time: 23 Sec Marks: 1/ 1

Refer the class declarations given below:

class A{ }

class B extends A{ }

class C extends B{ }

class D extends C{ }

Identify the INCORRECT statement.

Choose the most appropriate option.

Options Response Answer

A a = new D();

C c=new B();

B b=new D();

C c=new C();

Question 24: Time: 15 Sec Marks: 1/ 1

24 / 48
Which of the following actions should be performed to ensure cyber safety at a user level?

(i) Automatic downloads from the websites should be enabled


(ii) Automatic security updates should be installed
(iii) Firewall should be turned off if the system has the latest security update

Choose the most appropriate option

Options Response Answer

Both (i) and (iii)

Both (i) and (ii)

Both (ii) and (iii)

Only (ii)

Only (iii)

Question 25: Time: 29 Sec Marks: 1/ 1

Consider the Java code given below.

public class DemoArray {


public static void main(String args[]){
int array[]={2,4,6,8};
int sum=0;
//insert here
System.out.println(sum);
}
}

Which of the following line inserted independently in the above code will result in sum of array elelments?

Choose the most appropriate option.

25 / 48
Options Response Answer

sum=array[0]+array[1]+array[2]+array[3
]+array[4];

sum=array[1]+array[2]+array[3]+array[4
];

for(int i=0;i<array.length;i++) {
sum=sum+array[i]; }

for(int i=1;i<array.length;i++) {
sum=sum+array[i]; }

Question 26: Time: 17 Sec Marks: 1/ 1

Refer the HTMLcode given below.

<html>

<body>

<table border="1">

<tr><th>A</th> <th colspan="2">B</th>

<tr> <th rowspan="3">C</th> <th>D</th> <th>E</th> </tr>

<tr> <th>A</th> <th rowspan="2">B</th></tr>

<tr> <th>D</th>

</table>

</body>

</html>

How many cells will be displayed when the page is displayed on the browser?

26 / 48
Options Response Answer

10

Question 27: Time: 14 Sec Marks: 1/ 1

Performance feedback allows which of the following actions?

(1) To take action to improve your skills and performance so you are effective in your current and future roles
(2) To have your say about how you think your colleagues are performing

Choose the most appropriate option.

Options Response Answer

Only (2)

Only (1)

Both (1) and (2)

Neither (1) Nor (2)

Question 28: Time: 21 Sec Marks: 1/ 1

27 / 48
Which of the following statement(s) are FALSE regarding Java Architecture?

(i) Byte code or .class file is platform independent

(ii) JVM is platform independent

Choose the most appropriate option.

Options Response Answer

Only (i) is FALSE

Both (i) and (ii) are FALSE

Only (ii) is FALSE

Both (i) and (ii) are TRUE

Question 29: Time: 34 Sec Marks: 1/ 1

In HTML, Which is the CORRRECT code to display a hyper link "Click"?

[Note: While clicking on "Click" it should direct to accenture portal]

28 / 48
Options Response Answer

<a ref="https://portal.accenture.com">
Click </a>

<a href="https://portal.accenture.com",
Click </a>

<a href="https://portal.accenture.com">
Click </a>

<a href="Click">
https://portal.accenture.com </a>

Question 30: Time: 1 Min 2 Sec Marks: 1/ 1

Consider the table Project(projectId, projectType,budget).

Which is the CORRECT SQL statement to retrieve the projectType(s) which has more than 10 projects?

Options Response Answer

SELECT projectType FROM project

WHERE COUNT(projectId)>10

GROUP BY projectId;

SELECT projectType FROM project

GROUP BY projectType

HAVING COUNT(projectId)>10;

SELECT projectType FROM project

WHERE COUNT(projectId)>10

GROUP BY projectType;

SELECT projectType FROM project

GROUP BY projectId

HAVING COUNT(projectId)>10;

29 / 48
Question 31: Time: 25 Sec Marks: 1/ 1

Consider table Employee(EmployeeId, EmployeeName,DeptCode) .

Which is the CORRECT SQL query to display the EmployeeId and EmployeeName of employees who are working in DeptCode
10 OR 20?

(i) SELECT EmployeeId,EmployeeName FROM Employee WHERE DeptCode IN (10,20);

(ii) SELECT EmployeeId,EmployeeName FROM Employee WHERE DeptCode = 10 OR DeptCode = 20;

Options Response Answer

Both (i) and (ii)

Neither (i) nor (ii)

Only (i)

Only (ii)

Question 32: Time: 2 Min 23 Sec Marks: 1/ 1

Consider the below tables.

Publisher(PublisherCode, PublisherName, Address, Email). Here PublisherCode is the primary key;

Book (ISBN, Title, Author, Price, PublisherCode). Here ISBN is the Primary Key and PublisherCode is the foreign key
referencing the PublisherCode in Publisher table.

Which is the CORRECT SQL query to display ISBN, Title, Author, PublisherCode and PublisherName for all the books.

30 / 48
Options Response Answer

SELECT Book.ISBN, Book.Title,


Book.Author, Book.PublisherCode,
Publisher.PublisherName

FROM Book INNER JOIN Publisher

ON Book.PublisherCode =
Publisher.PublisherCode;

SELECT
ISBN,Title,Author,PublisherCode,Publis
herName

FROM Book INNER JOIN Publisher

ON PublisherCode = PublisherCode;

SELECT Book.ISBN, Book.Title,


Book.Author, Book.PublisherCode,
Publisher.PublisherName

FROM Book,Publisher;

SELECT Book.ISBN, Book.Title,


Book.Author, Book.PublisherCode,
Publisher.PublisherName

FROM Book SELF JOIN Publisher

ON Book.PublisherCode =
Publisher.PublisherCode;

Question 33: Time: 3 Min 26 Sec Marks: 0/ 1

31 / 48
Refer the code given below:

Employee emp = new Employee();


Employee emp1 = new Employee();
Employee emp2 = emp;
Employee emp3;
emp=null;
emp3=emp;
//Line1

Assume that class Employee is a valid Java class.


How many objects are eligible for garbage collection at Line1?

Choose the most appropriate option.

Options Response Answer

Question 34: Time: 42 Sec Marks: 1/ 1

There is a requirement to create a web page with a text box. The page should be loaded with a value "Hello" in the text box.
Which is the CORRECT html code to meet the above requirement?

32 / 48
Options Response Answer

<html>

<input type="text" id="Hello"/>

</html>

<html>

<input type="text" name="Hello"/>

</html>

<html>

<input type="text" onLoad="Hello"/>

</html>

<html>

<input type="text" value="Hello"/>

</html>

Question 35: Time: 39 Sec Marks: 1/ 1

Assume that Table Customer is created in database using the create statement given below.

CREATE TABLE Customer(


CustomerId NUMBER(5) CONSTRAINT cust_pk PRIMARY KEY,
CustomerName VARCHAR2(20) CONSTRAINT cust_nn NOT NULL);

Choose the appropriate ALTER statement to drop primary key constraint of table Customer.

33 / 48
Options Response Answer

ALTER TABLE Customer DROP


cust_pk;

ALTER TABLE Customer DROP


CONSTRAINT cust_pk;

ALTER TABLE Customer DROP


PRIMARY KEY CONSTRAINT;

ALTER TABLE Customer DROP


PRIMARY KEY CONSTRAINT
cust_pk;

Question 36: Time: 23 Sec Marks: 1/ 1

Which of the following statement/s is/are TRUE with respect to Agile?

(1) Focuses on an iterative, incremental, and flexible approach to software development


(2) Development of software takes place in sequential phases

Choose the most appropriate option

Options Response Answer

Both (1) and (2) are FALSE

Only (1) is TRUE

Only (2) is TRUE

Both (1) and (2) are TRUE

Question 37: Time: 9 Sec Marks: 1/ 1

34 / 48
What will be the output of the following Java code?

1 public abstract class Bank {


2 protected double amount;
3
4 public Bank(){
5 this.amount = 1000.0;
6 }
7 public abstract void createAccount();
8 public double getAmount(){
9 return this.amount;
10 }
11 }
12
13 public class MyBank extends Bank{
14 public MyBank(){
15 this.amount = 2000.0;
16 }
17 public void createAccount(){
18 System.out.println("Account created");
19 }
20 }
21
22 public class ApplicationTester {
23 public static void main(String[] args){
24 Bank b = new MyBank();
25 b.createAccount();
26 System.out.println(b.getAmount());
27 }
28 }
29

35 / 48
Options Response Answer

Account created

1000.0

Compilation error at Line 4: Cannot


have constructor in abstract class
'Bank'

Compilation error at Line 24: Cannot


have a reference of type 'Bank'

Account created

2000.0

Question 38: Time: 30 Sec Marks: 1/ 1

Assume that below code is present in the head tag of a HTML page.
<style>
.myclass{
background-color: lightgrey;
color:blue;
}
</style>

Which is the CORRECT way of using this style?

Options Response Answer

<h1 id="myclass">Welcome to My
Homepage</h1>

<h1 style="myclass">Welcome to My
Homepage</h1>

<h1 class="myclass">Welcome to My
Homepage</h1>

<h1 class=".myclass">Welcome to My
Homepage</h1>

36 / 48
Question 39: Time: 2 Min 48 Sec Marks: 1/ 1

Consider table Project(projectId, projectType, budget).

Which is the CORRECT SQL statement to display projectId, projectType and budget of project which is having minimum budget
in each project type?

37 / 48
Options Response Answer

SELECT p1.projectId,
p1.projectType,p1.budget FROM
project p1

WHERE p1.budget IN(

SELECT MIN(p2.budget) FROM


project p2

WHERE
p1.projectType=p2.projectType);

SELECT p1.projectId,
p1.projectType,p1.budget FROM
project p1

WHERE p1.budget IN(

SELECT MIN(p2.budget) FROM


project p2);

SELECT p1.projectId,
p1.projectType,p1.budget FROM
project p1

WHERE MIN(p1.budget)IN(

SELECT MIN(p2.budget) FROM


project p2

WHERE
p1.projectType=p2.projectType);

SELECT p1.projectId,
p1.projectType,p1.budget FROM
project p1

WHERE p1.budget IN(

SELECT MIN(p2.budget) FROM


project p2

WHERE p1.budget=p2.budget);

38 / 48
Question 40: Time: 2 Min 24 Sec Marks: 0/ 1

What will be the output of the following Java code?

MyInterface1.java

public interface MyInterface1 {


public void method1();
}

MyInterface2.java

public interface MyInterface2 {


void method2();
}

MyClass.java

public class MyClass implements MyInterface1, MyInterface2{


public void method1(){
System.out.print ("1 ");
}
void method2(){
System.out.print ("2");
}
}

InterfaceTester.java

public class InterfaceTester {


public static void main(String[] args){
MyClass reference = new MyClass();
reference.method1();
reference.method2();
}
}

Choose the most appropriate option.

39 / 48
Options Response Answer

Compilation error: MyClass cannot


implement more than one interface

Compilation error: method2 in


MyInterface2 must be defined with
public access specifier

Compilation error: Cannot reduce the


visibility of the inherited method from
MyInterface2

1 2

Question 41: Time: 28 Sec Marks: 1/ 1

What will be the output of the following Java code?

public class ApplicationTester {


public static void main(String[] args) {
switch(10/2){
default: System.out.print (" Action ");
case 2 : System.out.print (" Cut ");
break;
case 10 : System.out.print (" Start ");
}
}
}

Choose the most appropriate option.

Options Response Answer

Action Cut Start

Action Cut

Start

Action

Question 42: Time: 6 Sec Marks: 1/ 1

40 / 48
Which among the following are DevOps Principle?

(i) Automate Everything


(ii) Test early and often
(iii) Strong source control

Choose the most appropriate option.

Options Response Answer

Only (i) and (ii)

Only (i) and (iii)

Ony (ii) and (iii)

All (i), (ii) and (iii)

Question 43: Time: 19 Sec Marks: 1/ 1

Which of the following statment/s is/are TRUE with respect to Community Cloud?

(1) Exclusively owned and operated by a single organization


(2) Available for use by a shared community consisting of several organizations

Choose the most appropriate option.

Options Response Answer

Neither (1) Nor (2)

Only (1)

Both (1) and (2)

Only (2)

Question 44: Time: 24 Sec Marks: 1/ 1

41 / 48
What will be the output of the following Java code?

public class ApplicationTester {


public static void main(String[] args){
int data = 20;
switch(data){
case 20:
System.out.print(" Twenty ");
case 10:
System.out.print(" Ten ");
case 0:
System.out.print(" Zero ");
}
}
}

Choose the most appropriate option.

Options Response Answer

Program will display “Twenty Ten


Zero”

Program will display “Twenty”

Program will display “Twenty Ten”

Program will display “Ten Zero”

Question 45: Time: 43 Sec Marks: 1/ 1

42 / 48
What will be the output of the following Java code?

1 package mypackage1;
2
3 public class Parent {
4 public Parent(){
5 System.out.print(" 1 ");
6 }
7 }
8
9 package mypackage1;
10
11 public class Child extends Parent{
12 protected Child(){
13 System.out.println(" 2 ");
14 }
15 }
16
17 package mypackage2;
18
19 public class ApplicationTester{
20 public static void main(String[] args){
21 mypackage1.Child child = new mypackage1.Child();
22 }
23 }
24

Options Response Answer

1 2

2 1

Compilation error at Line 12: Invalid


access specifier 'protected' for the
constructor 'Child()'

Compilation error at Line 21: The


constructor Child() is not visible

Question 46: Time: 1 Min 50 Sec Marks: 1/ 1

43 / 48
What will be the output of the following Java code?

public class StaticTester{


private static int count;
public static void main(String[] args) {
count++;
new StaticTester().count++;
StaticTester.count--;
StaticTester s = new StaticTester();
s.count = s.count + 5;
StaticTester staticTester = new StaticTester();
System.out.println("Count is " +staticTester.count);
}
}

Choose the most appropriate option.

Options Response Answer

Count is 1

Count is 6

Count is 0

Count is 5

Question 47: Time: 59 Sec Marks: 1/ 1

44 / 48
Assume that table Customer has the following records.

Cid Cname

10 James
11 Jack
12 HARY
13 MARK

Identify the CORRECT SQL statement to display the output as follows.

Cname

James
Jack

Options Response Answer

SELECT cname FROM customer


WHERE cname LIKE'_a%' OR cname
LIKE '%k';

SELECT cname FROM customer


WHERE cname ='_a%' AND cname
='%k';

SELECT cname FROM customer


WHERE cname LIKE '_a%' AND
cname LIKE '%k';

SELECT cname FROM customer


WHERE cname ='_a%' OR cname
='%k';

45 / 48
Question 48: Time: 13 Sec Marks: 1/ 1

Arrange the following stages of Project Lifecycle according to SDLC.

(1) Planning
(2) Initiation
(3) Closing
(4) Execution

Choose the most appropriate option.

Options Response Answer

(1) - (2) - (4) - (3)

(2) - (1) - (4) - (3)

(1) - (2) - (3) - (4)

(2) - (1) - (3) - (4)

Question 49: Time: 2 Min 15 Sec Marks: 1/ 1

46 / 48
What will be the output of the following Java code?

Vehicle.java

public class Vehicle {


private float enginePower;

public Vehicle(float enginePower){
this.enginePower = enginePower;
}
public float getEnginePower(){
return enginePower;
}
}

FourWheeler.java

public class FourWheeler extends Vehicle{


private String type;
public FourWheeler(){
this.type = "LMV";
}
public FourWheeler(String type, float enginePower){
this.type = type;
}
public String getType(){
return type;
}
}

InheritanceTester.java

public class InheritanceTester {


public static void main(String[] args){
FourWheeler vehicle = new FourWheeler("HMV", 3.5F);
System.out.println(vehicle.getType() + " " + vehicle.getEnginePower());
}
}

Choose the most appropriate option.

47 / 48
Options Response Answer

LMV 0.0

Error in the code: Implicit super


constructor Vehicle() is undefined. Must
explicitly invoke another constructor

null 3.5

HMV 3.5

Question 50: Time: 16 Sec Marks: 1/ 1

Assume that my_style.css is an existing and a valid css file. Which is the CORRECT way to refer this external style sheet?

Options Response Answer

<style rel="stylesheet" type="text/css"


href= "my_style.css" />

<stylesheet type="text/css" href=


"my_style.css" />

<link rel="stylesheet" type="text/css"


href= "my_style.css" />

<link> href= "my_style.css" </link>

48 / 48
GF Mock 2

kamal.g.sharma Test Taken on: February 28, 2019 03:05:43 PM IST


[email protected] Finish State: Normal

Registration Details

Email [email protected] First Name: kamal.g.sharma


Address:

Overall Summary

MARKS SCORED


Score Percentile Percentage

Section #1 30 / 50 24 60

Total 30 / 50 24 60

Percentile is among 2152 candidate(s) who've taken this test.

SUMMARY OF ATTEMPTS TIME TAKEN

0 53
hr min
20 Incorrect
(Scored 0/20)
Available time: 1 hr 20 min

30 Correct
(Scored 30/30) TOTAL QUESTIONS

50

1 / 49
Question-wise Details

Section #1

Question 1: Time: 1 Min 33 Sec Marks: 1/ 1

What will be the output of the following Java code?

Policy.java

public class Policy {


private void readPolicy(){
System.out.println("Policy - readPolicy()");
}
public void writePolicy(){
System.out.println("Policy - writePolicy()");
}
}

MoneyBackPolicy.java

public class MoneyBackPolicy extends Policy{


public void readPolicy(){
System.out.println("MoneyBackPolicy - readPolicy()");
}
public void writePolicy(){
System.out.println("MoneyBackPolicy - writePolicy()");
}
}

DynamicBindingTester.java

public class DynamicBindingTester {


public static void main(String[] args){
Policy policy = new MoneyBackPolicy();
policy.readPolicy();
}
}

Choose the most appropriate option.

2 / 49
Options Response Answer

There is no error in the code, but the


code will not display any output.

Compilation error: The method


readPolicy() from the type Policy is not
visible

Policy - readPolicy()

MoneyBackPolicy - readPolicy()

Question 2: Time: 39 Sec Marks: 1/ 1

Consider the Java code given below. When the code is executed, how many times "1" will be printed?

public class Tester{


public static void main(String[] args){
for(int i=0; i < 5; i++){
if(i > 2){
continue;
}
System.out.print(" 1 ");
}
}
}

Choose the most appropriate option.

Options Response Answer

5 times

6 times

3 times

2 times

Question 3: Time: 3 Min 49 Sec Marks: 1/ 1

3 / 49
Refer the code given below:

public class Vehicle {


private int vehicleId;
private String vehicleName;
public Vehicle(int vehicleId, String vehicleName) {
this.vehicleId = vehicleId;
this.vehicleName = vehicleName;
}
// Assume Getters and Setters are coded
}

public class Car extends Vehicle {


private String carModel;
private double average;
//Line1
// Assume getters and Setters are already coded...
}

Choose a valid Constructor implementation to be inserted at Line1 to make the above code compile successfully

Choose the most appropriate option.

4 / 49
Options Response Answer

public Car(int vehicleId, String


vehicleName, String carModel,double
average) {
//Java code to initialize carModel and
average
super(vehicleId, vehicleName);
}

public Car(int vehicleId, String


vehicleName, String carModel,double
average) {
this.carModel = carModel;
this.average = average;
}

public Car(int vehicleId, String


vehicleName, String carModel,double
average) {
super(vehicleId, vehicleName);
//Java code to initialize carModel and
average
}

public void Car(int vehicleId, String


vehicleName, String carModel,double
average) {
super(vehicleId, vehicleName);
//Java code to initialize carModel and
average
}

Question 4: Time: 41 Sec Marks: 1/ 1

5 / 49
What will be the output of the following Java code?

class Employee {
public Employee() {
System.out.println("From Constructor of Employee");
}
}
public class Tester {
public static void main(String[] args) {
Employee[] employee = new Employee[5];
employee[0] = new Employee(); //Line2
}
}

Choose the most appropriate option.

Options Response Answer

Compilation error at Line2: Invalid


assignment operation

Prints the "From Constructor of


Employee" 1 times

Prints the "From Constructor of


Employee" 5 times

Prints the "From Constructor of


Employee" 6 times

Question 5: Time: 1 Min 16 Sec Marks: 1/ 1

6 / 49
Refer the code given below:

class Employee{

public void printDetails(){

Printer printer = new Printer();

printer.print("Test Print");

class Printer{

public void print(String str){

System.out.println("Priting Details: "+str);

Choose from below a valid option that represents the relationship in between the classes Employee and Printer

Choose the most appropriate option.

Options Response Answer

Generalization

Composition

Specialization

Aggregation

7 / 49
Question 6: Time: 14 Sec Marks: 1/ 1

Which of the following statement(s) is/are TRUE?

1) GET method is the default form submission method

2) Check box is a multi select control

Options Response Answer

Both 1 and 2

Neither 1 nor 2

Only 1

Only 2

Question 7: Time: 40 Sec Marks: 0/ 1

Consider the below tables.

Actor(actorId,actorName) - actorId is primary key

Event(eventId,eventName) - eventId is primary key

Registration(registrationId,actorId,eventId) - actorId and eventId are foreign keys

Which is the CORRECT SQL statement to retrieve actorId, actorName and eventId for all actors who has registered for an
event. If any actor is not registered for any event, still the actor details should be displayed.

8 / 49
Options Response Answer

SELECT
a.actorId,a.actorName,r.eventId

FROM Actor a LEFT OUTER JOIN


Registration r

ON a.actorid=r.actorid;

SELECT
a.actorId,a.actorName,r.eventId

FROM Actor a CROSS JOIN


Registration r

ON a.actorid=r.actorid;

SELECT
a.actorId,a.actorName,r.eventId

FROM Actor a RIGHT OUTER JOIN


Registration r

ON a.actorid=r.actorid;

SELECT
a.actorId,a.actorName,r.eventId

FROM Actor a INNER JOIN


Registration r

ON a.actorid=r.actorid;

Question 8: Time: 49 Sec Marks: 0/ 1

Consider the table Student(StudentId, StudentName, Email, PercentageOfMarks).

Which is the CORRECT query to display the details in the decreasing order (highest to lowest) of PercentageOfMarks and in
the alphabetical order (A-Z) of StudentName in case PercentageOfMarks is the same.

9 / 49
Options Response Answer

SELECT StudentId, StudentName,


Email, PercentageOfmarks

FROM Student ORDER BY


StudentName, PercentageOfMarks
DESC;

SELECT StudentId, StudentName,


Email, PercentageOfmarks

FROM Student ORDER BY


PercentageOfMarks DESC,
StudentName;

SELECT StudentId, StudentName,


Email, PercentageOfmarks

FROM Student ORDER BY


PercentageOfMarks, StudentName;

SELECT StudentId, StudentName,


Email, PercentageOfMarks

FROM Student ORDER BY


PercentageOfMarks DESC,
StudentName DESC;

Question 9: Time: 46 Sec Marks: 1/ 1

Which is the correct CSS code to display the text "Accenture" in light grey back ground?

10 / 49
Options Response Answer

<h2 background-
color:lightgrey>Accenture</h2>

<h2 style="background-
color=lightgrey">Accenture</h2>

<h2 style="background-
color:lightgrey">Accenture</h2>

<h2 style="background-
color(lightgrey)">Accenture</h2>

Question 10: Time: 2 Min 35 Sec Marks: 0/ 1

11 / 49
Consider the following CREATE TABLE STATEMENT which successfully creates the table Student. Assume that University
table already exists with University Codes 'VTU', 'STU', and 'CMU'.

CREATE TABLE Student (StudentId Number(5) CONSTRAINT Student_PKey PRIMARY KEY,

Name Varchar2(30) CONSTRAINT Student_Null NOT NULL,

Email Varchar2(30) CONSTRAINT Student_Unique UNIQUE,

UniversityCode Varchar2(10)

CONSTRAINT Student_Fkey REFERENCES University(UniversityCode));

Currently student table contains only one row as shown below.

(1001,'Jack','[email protected]','STU');

Which of the following INSERT statement would successfully insert the row into "Student" table?

Options Response Answer

INSERT INTO Student


VALUES(1005,'Joe','[email protected]','N
IT');

INSERT INTO Student


VALUES(1001,'James','[email protected]
om','CMU');

INSERT INTO Student


VALUES(1003,'Mary','[email protected]'
,'vtu');

INSERT INTO Student


VALUES(1003,'Scott','[email protected]
m','VTU');

12 / 49
Question 11: Time: 34 Sec Marks: 1/ 1

Assume that table Event is having the following records. Identify the correct query to retrieve all event records which has got a
stage number.

EVENTID EVENTNAME STAGENUMBER

E1 Drama
E2 Dance 2
E3 Speech 1

Options Response Answer

SELECT * FROM Event WHERE


StageNumber IS NOT EQUAL TO
NULL;

SELECT * FROM Event WHERE


StageNumber <> NULL

SELECT * FROM Event WHERE


StageNumber IS NOT NULL

SELECT * FROM Event WHERE


StageNumber != NULL

Question 12: Time: 1 Min 9 Sec Marks: 1/ 1

13 / 49
What will be the output of the following Java code?

1 public abstract class Bank {


2 protected double amount;
3
4 public Bank(){
5 this.amount = 1000.0;
6 }
7 public abstract void createAccount();
8 public double getAmount(){
9 return this.amount;
10 }
11 }
12
13 public class MyBank extends Bank{
14 public MyBank(){
15 this.amount = 2000.0;
16 }
17 public void createAccount(){
18 System.out.println("Account created");
19 }
20 }
21
22 public class ApplicationTester {
23 public static void main(String[] args){
24 Bank b = new MyBank();
25 b.createAccount();
26 System.out.println(b.getAmount());
27 }
28 }
29

14 / 49
Options Response Answer

Account created

1000.0

Compilation error at Line 24: Cannot


have a reference of type 'Bank'

Account created

2000.0

Compilation error at Line 4: Cannot


have constructor in abstract class
'Bank'

Question 13: Time: 2 Min 24 Sec Marks: 1/ 1

Consider the table Project(projectId, projectType,budget).

Which is the CORRECT SQL statement to retrieve the count of projects which is of type 'FIN' or' SALE'? It should count for 'FIN'
and 'SALE' separately.

15 / 49
Options Response Answer

SELECT
projectType,COUNT(projectId)

FROM project

WHERE projectType IN('FIN','SALE')

GROUP BY projectType;

SELECT
projectType,COUNT(projectId)

FROM project

WHERE projectType IN('FIN','SALE')

GROUP BY projectId;

SELECT
projectType,COUNT(projectId)

FROM project

WHERE projectType IN('FIN','SALE');

SELECT
projectType,COUNT(projectId)

FROM project

GROUP BY projectId

HAVING projectType IN('FIN','SALE');

Question 14: Time: 1 Min 0 Sec Marks: 0/ 1

16 / 49
What will be the output of the following Java code?

class Person {
public void work() {
System.out.println(”Person Work's”);
}
}

public class Employee extends Person {


public void work() {
System.out.println(”Employee Work's”);
}
public static void main(String[] args) {
Employee employee=new Employee();
Person p=employee;
p.work();
}
}

Choose the most appropriate option.

Options Response Answer

Employee Work's

Person Work's
Employee Work's

Compilation Error : work method in


Employee cannot have same signature
as that of it's parent Person

Person Work's

Question 15: Time: 32 Sec Marks: 1/ 1

Which testing technique tests the functionality of the application without looking at the internal structure of the code?

i. Black Box Testing


ii. Assembly Testing
iii. Product Testing
iv. White Box Testing

Choose the most appropriate option.

17 / 49
Options Response Answer

Product Testing

White Box Testing

Black Box Testing

Assembly Testing

Question 16: Time: 42 Sec Marks: 1/ 1

Which of the following statement(s) are FALSE regarding Java Architecture?

(i) Byte code or .class file is platform independent

(ii) JVM is platform independent

Choose the most appropriate option.

Options Response Answer

Only (ii) is FALSE

Both (i) and (ii) are FALSE

Only (i) is FALSE

Both (i) and (ii) are TRUE

Question 17: Time: 49 Sec Marks: 1/ 1

18 / 49
Assume that table Player has following records.

PlayerId Salary PlayerAverage

P1 25000 75.5
P2 20000 70
P3 22000 70.5

How many row(s) will be deleted after executing the SQL statement given below?

DELETE FROM Player WHERE Salary>=20000 AND PlayerAverage<70;

Options Response Answer

ERROR: No matching record in Player


table.

Question 18: Time: 2 Min 29 Sec Marks: 1/ 1

19 / 49
Consider the below tables are created and has some records.

Account(accountId,balance) - account id is primary key

Transaction(transactionId,accountId,transactionType,amount) - AccountId is foreign key referring to accountId of account table

Assume that Transaction table has records for more than one accountId. Which is the CORRECT SQL statement to retrieve all
accountId(s) for which there is no transactions are recorded?

Options Response Answer

SELECT accountid FROM account

WHERE accountid NOT IN(

SELECT accountid FROM transaction);

SELECT accountid FROM account

WHERE accountid IN(

SELECT accountid FROM transaction);

SELECT accountid FROM account

WHERE accountid NOT IN(

SELECT * FROM transaction);

SELECT accountid FROM account

WHERE accountid !=

(SELECT accountid FROM


transaction);

20 / 49
Question 19: Time: 28 Sec Marks: 1/ 1

Consider the table Employee(empId,empName,jobBand).

Which is the CORRECT SQL statement to retrieve all unique jobBand from Employee table ?

Options Response Answer

SELECT DISTINCT jobBand,empId


from Employee;

SELECT jobBand DISTINCT from


Employee;

SELECT jobBand from Employee


DISTINCT;

SELECT DISTINCT jobBand from


Employee;

Question 20: Time: 1 Min 36 Sec Marks: 0/ 1

21 / 49
What will be the output of the following Java code?

Vehicle.java

public class Vehicle {


private float enginePower;

public Vehicle(float enginePower){
this.enginePower = enginePower;
}
public float getEnginePower(){
return enginePower;
}
}

FourWheeler.java

public class FourWheeler extends Vehicle{


private String type;
public FourWheeler(){
this.type = "LMV";
}
public FourWheeler(String type, float enginePower){
this.type = type;
}
public String getType(){
return type;
}
}

InheritanceTester.java

public class InheritanceTester {


public static void main(String[] args){
FourWheeler vehicle = new FourWheeler("HMV", 3.5F);
System.out.println(vehicle.getType() + " " + vehicle.getEnginePower());
}
}

Choose the most appropriate option.

22 / 49
Options Response Answer

null 3.5

Error in the code: Implicit super


constructor Vehicle() is undefined. Must
explicitly invoke another constructor

LMV 0.0

HMV 3.5

Question 21: Time: 1 Min 11 Sec Marks: 0/ 1

Consider table Account(customerid, accountid, accounttype,balance) has been created with customerid as primary key.
Identify ALTER statement which executes successfully on account table. [Note: Table has no records]

Options Response Answer

ALTER TABLE Account ADD


CONSTRAINT acc_chek
CHECK(accounttype IN('C','S'));

ALTER TABLE Account DROP


Balance;

ALTER TABLE Account ADD


CONSTRAINT PRIMARY
KEY(customerid, accountid);

ALTER TABLE Account ADD


CONSTRAINT acc_null NOT
NULL(accounttype);

Question 22: Time: 1 Min 38 Sec Marks: 0/ 1

23 / 49
Consider the below tables.

Publisher(PublisherCode, PublisherName, Address, Email). Here PublisherCode is the primary key;

Book (ISBN, Title, Author, Price, PublisherCode). Here ISBN is the Primary Key and PublisherCode is the foreign key
referencing the PublisherCode in Publisher table.

Which is the CORRECT SQL query to display ISBN, Title, Author, PublisherCode and PublisherName for all the books.

24 / 49
Options Response Answer

SELECT Book.ISBN, Book.Title,


Book.Author, Book.PublisherCode,
Publisher.PublisherName

FROM Book,Publisher;

SELECT
ISBN,Title,Author,PublisherCode,Publis
herName

FROM Book INNER JOIN Publisher

ON PublisherCode = PublisherCode;

SELECT Book.ISBN, Book.Title,


Book.Author, Book.PublisherCode,
Publisher.PublisherName

FROM Book INNER JOIN Publisher

ON Book.PublisherCode =
Publisher.PublisherCode;

SELECT Book.ISBN, Book.Title,


Book.Author, Book.PublisherCode,
Publisher.PublisherName

FROM Book SELF JOIN Publisher

ON Book.PublisherCode =
Publisher.PublisherCode;

Question 23: Time: 21 Sec Marks: 1/ 1

25 / 49
What will be the output of the following Java code?

public class ApplicationTester {


public static void main(String[] args){
String company = new String("Accenture Solutions Pvt Ltd");
String[] tokens = company.split(" ");
System.out.println(tokens.length);
}
}

Choose the most appropriate option.

Options Response Answer

Question 24: Time: 1 Min 50 Sec Marks: 0/ 1

26 / 49
What will be the output of the following Java code?

1 package mypackage1;
2
3 public class Parent {
4 public Parent(){
5 System.out.print("1 ");
6 }
7 protected void parentMethod(){
8 System.out.println(" 3 ");
9 }
10 }
11
12 package mypackage2;
13 import mypackage1.Parent;
14
15 public class Child extends Parent{
16 public Child(){
17 System.out.println("2");
18 }
19 }
20
21
22 package mypackage2;
23
24 public class ApplicationTester{
25 public static void main(String[] args){
26 Child child = new Child();
27 child.parentMethod();
28 }
29 }
30

Options Response Answer

Compilation error at Line 27: The


method parentMethod() from the type
Parent is not visible

1 2

Compilation error at Line 7:


'parentMethod' cannot be 'protected'

1 2 3

Question 25: Time: 2 Min 5 Sec Marks: 0/ 1

27 / 49
Consider the table Employee (EmployeeId, Name, CareerLevel, Salary).

Which is the CORRECT SQL query to display EmployeeId, Name, CareerLevel and Salary of employees who are getting the
maximum salary in each career level?

Options Response Answer

SELECT EmployeeId, Name,


CareerLevel, Salary

FROM Employee E1 WHERE Salary


IN(

SELECT max(Salary) FROM Employee


E2

WHERE E2.salary = E1.salary);

SELECT EmployeeId, Name,


CareerLevel, Salary

FROM Employee E1 WHERE


max(Salary) IN

(SELECT max(Salary) FROM


Employee E2

WHERE E2.CareerLevel =
E1.CareerLevel);

SELECT EmployeeId, Name,


CareerLevel, Salary

FROM Employee E1 WHERE Salary IN

(SELECT max(Salary) FROM


Employee E2);

28 / 49
SELECT EmployeeId, Name,
CareerLevel, Salary

FROM Employee E1 WHERE Salary IN

(SELECT max(Salary) FROM


Employee E2

WHERE E2.CareerLevel =
E1.CareerLevel);

Question 26: Time: 4 Min 27 Sec Marks: 1/ 1

Identify the CORRECT method which can be added in to class MyClass

public class MyClass {


public int display(int num1,float num2){
return 0;
}
public double display(String name, int salary) {
return 0.0;
}
}

Choose the most appropriate option.

29 / 49
Options Response Answer

public String display(String name, int


salary{
return "success";
}

public float display(int num1,float


num2){
return 0.0f;
}

public void display(int num1,String


num2){ }

public double display(String empName,


int empId){
return 0.0;
}

Question 27: Time: 1 Min 9 Sec Marks: 1/ 1

What will be the output of the following Java code?

public class MyClass{


public MyClass() {
System.out.println("Inside constructor");
}
static {
System.out.println("Inside static block 1");
}
static {
System.out.println("Inside static block 2");
}
public static void main(String[] args) {
System.out.println("Inside main method");
}
}

Choose the most appropriate option.

30 / 49
Options Response Answer

Inside main method


Inside static block 1
Inside static block 2

Inside static block 1


Inside static block 2
Inside main method

Inside main method

Inside main method


Inside constructor
Inside static block 1
Inside static block 2

Question 28: Time: 17 Sec Marks: 1/ 1

Arrange the following stages of Project Lifecycle according to SDLC.

(1) Planning
(2) Initiation
(3) Closing
(4) Execution

Choose the most appropriate option.

Options Response Answer

(1) - (2) - (4) - (3)

(1) - (2) - (3) - (4)

(2) - (1) - (3) - (4)

(2) - (1) - (4) - (3)

Question 29: Time: 24 Sec Marks: 1/ 1

31 / 49
What are the benifits of ADM?

(1) Project standardization and customization


(2) Common project management framework

Choose the most appropriate option.

Options Response Answer

Both (1) and (2)

Neither (1) Nor (2)

Only (1)

Only (2)

Question 30: Time: 1 Min 2 Sec Marks: 0/ 1

What will be the output of the following Java code?

public class ApplicationTester {


public static void main(String[] args){
int[] array = {-23,-1,-15,-11,-8};
int max = 0;
for(int i=0; i < array.length; i++){
if( array[i] > max){
max = array[i];
}
}
System.out.println(max);
}
}

Choose the most appropriate option.

Options Response Answer

-8

-23

-1

32 / 49
Question 31: Time: 43 Sec Marks: 0/ 1

What will be the output of the following Java code?

public class MyClass {


public static void main(String args[]) {
int i=0;
while(i++>0) {
System.out.println("the value of i is "+i);
}
System.out.println("End of Program");
}
}

Choose the most appropriate option.

Options Response Answer

the value of i is 0
End of Program

the value of i is 1
End of Program

The code enters into an infinite loop


which prints the value of i from 1 and
keep on incrementing it by 1

End of Program

Question 32: Time: 52 Sec Marks: 1/ 1

33 / 49
What will be the output of the following Java code?

interface Message {
void writeContent();
}
class Email implements Message {
public void writeContent() {
System.out.println("Email message");
}
}
class SMS implements Message {
public void writeContent() {
System.out.println("SMS message");
}
}
public class ApplicationTester{
public static void main(String[] args) {
Message message = new Email(); //Line-1
message.writeContent();
}
}

Choose the most appropriate option.

Options Response Answer

null

Email message

Compilation error at Line-1: Cannot


have a reference of interface type

SMS message

Question 33: Time: 23 Sec Marks: 0/ 1

34 / 49
Refer the HTML code given below.

<html>

<body>

<table border="1">

<tr><th>A</th> <th colspan="2">B</th>

<tr> <th rowspan="3">C</th> <th>D</th> <th>E</th> </tr>

<tr> <th>A</th> <th>B</th></tr>

<tr> <th>D</th> <th>E</th></tr>

</table>

</body>

</html>

How many cells will be displayed when the page is displayed on the browser?

Options Response Answer

11

10

Question 34: Time: 8 Sec Marks: 1/ 1

35 / 49
Which of the following is/are DevOps Principle?

(1) Continuous improvement


(2) Test early and often

Choose the most appropriate option.

Options Response Answer

Both (1) and (2)

Only (1)

Neither (1) Nor (2)

Only (2)

Question 35: Time: 1 Min 10 Sec Marks: 0/ 1

36 / 49
What will be the output of the following Java code?

1 public interface MyInterface1 {


2 public void method1();
3 }
4
5 public interface MyInterface2 {
6 public void method2();
7 }
8
9 public class MyClass implements MyInterface1, MyInterface2{
10 public void method1(){
11 System.out.println("method1");
12 }
13 public void method2(){
14 System.out.println("method2");
15 }
16 }
17
18 public class ApplicationTester {
19 public static void main(String[] args){
20 MyInterface1 ref = new MyClass();
21 ref.method2();
22 }
23 }
24

Options Response Answer

Compilation error at Line 21: The


method method2() is undefined for the
type MyInterface1

Compilation error at Line 9: MyCLass


cannot implement two interfaces

method2

Compilation error at Line 20: Cannot


have a reference of type 'MyInterface1'

Question 36: Time: 13 Sec Marks: 0/ 1

37 / 49
Which of the following are characteristics of Agile?

a. Deliver working software frequently, from a couple of weeks to a couple of months


b. Working software is the primary measure of progress
c. Comprehensive documentation

Choose the most appropriate option.

Options Response Answer

Both (a) and (c )

Both (a) and (b)

Both (b) and (c )

All (a), (b) and (c )

Question 37: Time: 9 Sec Marks: 1/ 1

In HTML, which is the CORRECT character entity to display ">" symbol?

Options Response Answer

&gt;

gt;

#gt;

&#gt;

Question 38: Time: 26 Sec Marks: 1/ 1

Assume that my_style.css is an existing and a valid css file. Which is the CORRECT way to refer this external style sheet?

38 / 49
Options Response Answer

<link rel="stylesheet" type="text/css"


href= "my_style.css" />

<stylesheet type="text/css" href=


"my_style.css" />

<style rel="stylesheet" type="text/css"


href= "my_style.css" />

<link> href= "my_style.css" </link>

Question 39: Time: 21 Sec Marks: 1/ 1

Which of the following statment/s is/are TRUE with respect to Community Cloud?

(1) Exclusively owned and operated by a single organization


(2) Available for use by a shared community consisting of several organizations

Choose the most appropriate option.

Options Response Answer

Both (1) and (2)

Only (1)

Neither (1) Nor (2)

Only (2)

Question 40: Time: 2 Min 3 Sec Marks: 0/ 1

39 / 49
What will be the output of the following Java code?

public class BreakTester {


public static void main(String[] args){
int i = 1;
for(i = 1; i <= 10; i++){
if(i == 5){
break;
}
}
System.out.println("Value of i outside the loop: " + i);
}
}

Choose the most appropriate option.

Options Response Answer

Value of i outside the loop: 10

Value of i outside the loop: 0

Value of i outside the loop: 5

Value of i outside the loop: 11

Question 41: Time: 59 Sec Marks: 1/ 1

40 / 49
What will be the output of the following Java code?

public class Tester{


public static void main(String[] args){
int num = 12;
switch (num % 2) {
default:
System.out.println("Default");
case 0:
System.out.println("Even");
case 1:
System.out.println("Odd");
break;
}
}
}

Choose the most appropriate option.

Options Response Answer

Compilation error as default cannot be


the first case among all the cases

Default Even Odd

Default

Even Odd

Question 42: Time: 1 Min 44 Sec Marks: 0/ 1

41 / 49
Assume that table Customer has the following records.

Cid Cname

10 James
11 Jack
12 HARY
13 MARK

Identify the CORRECT SQL statement to display the output as follows.

Cname

James
Jack

Options Response Answer

SELECT cname FROM customer


WHERE cname LIKE'_a%' OR cname
LIKE '%k';

SELECT cname FROM customer


WHERE cname ='_a%' OR cname
='%k';

SELECT cname FROM customer


WHERE cname ='_a%' AND cname
='%k';

SELECT cname FROM customer


WHERE cname LIKE '_a%' AND
cname LIKE '%k';

42 / 49
Question 43: Time: 19 Sec Marks: 0/ 1

Performance feedback allows which of the following actions?

(1) To take action to improve your skills and performance so you are effective in your current and future roles
(2) To have your say about how you think your colleagues are performing

Choose the most appropriate option.

Options Response Answer

Only (1)

Both (1) and (2)

Neither (1) Nor (2)

Only (2)

Question 44: Time: 47 Sec Marks: 0/ 1

Refer the code given below:

Employee emp = new Employee();


Employee emp1 = new Employee();
emp = new Employee();
Employee emp2=new Employee();
emp=null;
emp2=emp;
//Line1

Assume class Employee is a valid Java class.

How many objects are eligible for garbage collection at Line1.

Choose the most appropriate option.

43 / 49
Options Response Answer

Question 45: Time: 52 Sec Marks: 0/ 1

Which of the folwwing are CORRECT statement?

a) onClick() and onFocus() are DOM events

b) The DOM method getElementByTagName(“name”) retrieves an array of all elements having the given tag name

c) In Java Script, a browser is represented by an implicit object called Document

Options Response Answer

a and b only

a and c only

b and c only

a, b and c

Question 46: Time: 30 Sec Marks: 1/ 1

44 / 49
Refer the JavaScript code given below.

<html>

<head>

<script>

function aFun(){

var num1=111;

var num2="111";

alert(num1==num2) //Line1

alert(num1===num2) //Line2

</script>

</head>

<button onclick='aFun()'>Click</button>

</html>

When the above code is executed, what will be the output produced by Line1 and Line2?

45 / 49
Options Response Answer

Output from Line1: true, Output from


Line2: true

Output from Line1: false, Output from


Line2: true

JavaScript will show a compilation error


as "===" is not defined

Output from Line1: true, Output from


Line2: false

Question 47: Time: 27 Sec Marks: 1/ 1

Which of the following actions should be performed to ensure cyber safety at a user level?

(i) Automatic downloads from the websites should be enabled


(ii) Automatic security updates should be installed
(iii) Firewall should be turned off if the system has the latest security update

Choose the most appropriate option

Options Response Answer

Both (i) and (iii)

Both (ii) and (iii)

Both (i) and (ii)

Only (iii)

Only (ii)

Question 48: Time: 29 Sec Marks: 0/ 1

46 / 49
Refer the below variable declarations done in JavaScript.

1) x=10;

2) int x=10;

3) var x="10";

4) Integer x=10;

Which of the variable declarations are CORRECT?

Options Response Answer

1 and 2 only

1,2 and 3 only

1 and 3 only

2 and 4 only

Question 49: Time: 38 Sec Marks: 1/ 1

47 / 49
What will be the output of the following Java code?

1 package mypackage1;
2
3 public class Parent {
4 protected Parent(){
5 System.out.print("1 ");
6 }
7 }
8
9 package mypackage2;
10 import mypackage1.Parent;
11
12 public class Child extends Parent{
13 protected Child(){
14 System.out.println("2");
15 }
16 }
17
18 package mypackage2;
19
20 public class ApplicationTester {
21 public static void main(String[] args){
22 Child child = new Child();
23 }
24 }
25

Options Response Answer

Compilation error at Line 13: 'Child'


constructor cannot be 'protected'

Compilation error at Line 4: 'Parent'


constructor cannot be 'protected'

1 2

Question 50: Time: 1 Min 30 Sec Marks: 1/ 1

48 / 49
Consider the Java code given below.

public class Rectangle {


private int length;
private int width;
public static void main(String[] args) {
Rectangle rectangle1 = new Rectangle();
rectangle1.length=10;
rectangle1.width=5;
Rectangle rectangle2 = rectangle1;
System.out.println("Length : "+rectangle2.length);
System.out.println("Width : "+rectangle2.width);
}
}

With respect to the above code, identify where the instnace variables 'length' and 'width' will be stored in the memory? And
where 'rectangle1' will be stored in the memory?

Choose the most appropriate option.

Options Response Answer

length', 'width' and 'rectangle1' will be


stored in heap

length' and 'width' will be stored in


stack, 'rectangle1' will be stored in
heap

length', 'width' and 'rectangle1' will be


stored in stack

length' and 'width' will be stored in


heap, 'rectangle1' will be stored in
stack

49 / 49
Shout4Education
Question-wise Details

Section #1

Question 1: Time: 51 Sec Marks: 0/ 1

Consider the table Employee(empId,empName,jobBand). Which is the CORRECT SQL statement to retrieve all UNIQUE
jobBand from Employee table ? Choose most appropriate option.

Options Response Answer

SELECT jobBand DISTINCT from


Employee;

n
SELECT DISTINCT jobBand,empId

tio
from Employee;

ca
SELECT DISTINCT(jobBand) from
Employee; du
SELECT DISTINCT jobBand from
Employee;
4E

Question 2:
ut

Time: 33 Sec Marks: 1/ 1


o

Consider table Department(deptId,deptName). Which of the following query is used to display the department details whose
Sh

deptname has second letter as 'a' and second last letter as 'e'? Choose most appropriate option.

Options Response Answer

SELECT * FROM department WHERE


deptname LIKE '_a%e_';

SELECT * FROM department WHERE


deptname LIKE 'a%e_';

SELECT * FROM department WHERE


deptname LIKE '%a%e_';

SELECT * FROM department WHERE


deptname LIKE 'a%e%';

Shout4Education
2 / 18
Shout4Education
Question 3: Time: 48 Sec Marks: 0/ 1

Consider the table Products(pid,pname,pcost). Identify the appropriate SQL statement to rename the table to ProductsInfo .
Choose most appropriate option.

Options Response Answer

ALTER TABLE Products RENAME


ProductsInfo;

ALTER TABLE Products UPDATE TO


ProductsInfo;

ALTER TABLE RENAME Products TO


ProductsInfo;

n
ALTER TABLE Products RENAME TO

tio
ProductsInfo;

ca
Question 4:
du Time: 47 Sec Marks: 0/ 1
4E

Consider the table Employee(empid,jobBand).


ut

Which is the CORRECT DML statement to update the job band of all employees to NULL? Choose most appropriate option.
o

Options Response Answer


Sh

UPDATE TABLE employee SET


jobBand is NULL;

UPDATE employee SET jobBand =


NULL;

UPDATE TABLE employee SET


jobBand = NULL;

UPDATE employee SET jobBand is


NULL;

Question 5: Time: 34 Sec Marks: 0/ 1

Shout4Education
3 / 18
Shout4Education
Identify the CORRECT statements with respect to constraints.

(i) A table can have only one FOREIGN KEY

(ii) A column with UNIQUE constraint cannot have NULL value

choose most appropriate option.

Options Response Answer

only (i)

only (ii)

n
tio
both (i) and (ii)

neither (i) nor (ii)

ca
du
Question 6: Time: 35 Sec Marks: 1/ 1
4E

Identify the CORRECT statement(s)


ut


o
Sh

(a) A column with UNIQUE constraint can have NULL values

(b) FOREIGN KEY column can have NULL values

(c) A TABLE can have more than one PRIMARY KEY column

(d) FOREIGN KEY column can refer to PRIMARY KEY column of same table only

Choose most appropriate option.


Shout4Education
4 / 18
Shout4Education
Options Response Answer

a and b

a and d

b and c

a, b and d

Question 7: Time: 26 Sec Marks: 1/ 1

Consider the table Project(ProjectId, ProjectName, ProjectType) is created without any constraint and has the records as per

n
the attachment.

tio
ca
du
4E
o ut


Sh

Identify the ALTER statement which executes successfully on project table. Choose most appropriate option.

Shout4Education
5 / 18
Shout4Education
Options Response Answer

ALTER TABLE Project ADD


CONSTRAINT proj_pk PRIMARY
KEY(ProjectId);

ALTER TABLE Project ADD


CONSTRAINT proj_uq
UNIQUE(ProjectName);

ALTER TABLE Project ADD


CONSTRAINT proj_nn NOT
NULL(ProjectType);

ALTER TABLE Project ADD


CONSTRAINT proj_chk

n
CHECK(ProjectType IN('A1','A2'));

tio
ca
Question 8: du Time: 1 Min 28 Sec Marks: 0/ 1

Consider table Students(studentId, branchid). Identify the CORRECT SQL statement to retrieve the branches which has more
than 3 students. Choose most appropriate option.
4E

Options Response Answer


ut

SELECT branchid FROM Students


WHERE COUNT(*) > 3 GROUP BY
o

branchid;
Sh

SELECT branchid FROM Students


HAVING COUNT(*) > 3;

SELECT branchid FROM Students


GROUP BY studentId HAVING
COUNT(*) > 3;

SELECT branchid FROM Students


GROUP BY branchid HAVING
COUNT(*) > 3;

Question 9: Time: 3 Min 0 Sec Marks: 0/ 1

Shout4Education
6 / 18
Shout4Education
Consider the table Account (accid, balance, accountType). The following constraints to be enforced.

1. Accid should be unique and Not Null

2. Account type should be 'C' or 'S'. Balance should be greater than 1000 and 3000 for account type 'C' and 'S' respectively

Identify the CORRECT SQL statement to create the Account table with the above mentioned constraints. Choose most
appropriate option.

n
tio
ca
du
4E
o ut
Sh

Shout4Education
7 / 18
Shout4Education
Options Response Answer

CREATE TABLE account( accid


NUMBER(2) CONSTRAINT acc_pk
PRIMARY KEY, balance NUMBER(4),
accountType CHAR, CONSTRAINT
acc_chk CHECK (accountType='S'
AND balance>3000) AND
(accountType='C' AND balance
>1000)) );

CREATE TABLE account( accid


NUMBER(2) CONSTRAINT acc_pk1
PRIMARY KEY, balance NUMBER(4)
CONSTRAINT acc_chk

n
CHECK(balance>1000 OR balance
>3000), accountType CHAR

tio
CONSTRAINT acc_chk CHECK
(accountType='S' OR accounTtype='C')

ca
);

CREATE TABLE account( accid


du
NUMBER(2) CONSTRAINT acc_pk
PRIMARY KEY, balance NUMBER(4),
accountType CHAR, CONSTRAINT
4E

acc_chk1 CHECK (accountType='S'


AND balance>3000), CONSTRAINT
ut

acc_chk2 CHECK (accountType='C'


AND balance >1000) );
o

CREATE TABLE account( accid


Sh

NUMBER(2) CONSTRAINT acc_pk


PRIMARY KEY, balance NUMBER(4),
accountType CHAR, CONSTRAINT
acc_chk CHECK ( (accountType='S'
AND balance>3000) OR
(accountType='C' AND balance
>1000)) );

Question 10: Time: 1 Min 23 Sec Marks: 1/ 1

Shout4Education
8 / 18
Shout4Education
You are suppose to create a table "ExamResult" with the following description. studentId NUMBER(4), courseId
VARCHAR2(10), mark NUMBER(3) There should not be duplicate combination of studentId and courseId in any record. Identify
the correct DDL statement to create ExamResult table. Choose the most apprpriate option.

Options Response Answer

CREATE TABLE ExamResult(


studentId NUMBER(4), courseId
VARCHAR2(10), mark NUMBER(3),
CONSTRAINT er_pk PRIMARY
KEY(studentId, courseId));

CREATE TABLE ExamResult(


studentId NUMBER(4) CONSTRAINT
stud_pk PRIMARY KEY, courseId
VARCHAR2(10) CONSTRAINT cid_pk

n
PRIMARY KEY, mark NUMBER(3));

tio
CREATE TABLE ExamResult(
(studentId NUMBER(4), courseId

ca
VARCHAR2(10) ) CONSTRAINT er_pk
PRIMARY KEY), mark NUMBER(3));
du
CREATE TABLE ExamResult(
studentId NUMBER(4), courseId
4E

VARCHAR2(10), mark NUMBER(3),


CONSTRAINT er_pk COMPOSITE
PRIMARY KEY(studentId, courseId));
o ut
Sh

Question 11: Time: 1 Min 29 Sec Marks: 0/ 1

Consider table player(playerid, playername, runs_scored, playergroup). Identify the CORRECT SQL statement to retrieve the
details of players who have scored runs which is greater than the average of runs scored by all players in his player group.
Choose most appropriate option.

Shout4Education
9 / 18
Shout4Education
Options Response Answer

SELECT p1.playerid, p1.playername,


p1.runs_scored FROM player p1
WHERE AVG(p1.runs_scored)>(
SELECT AVG(p2.runs_scored) FROM
player p2 WHERE
p1.playergroup=p2.playergroup);

SELECT playerid, playername,


runs_scored FROM player WHERE
runs_scored>( SELECT
AVG(runs_scored) FROM player);

SELECT p1.playerid, p1.playername,


p1.runs_scored FROM player p1

n
WHERE p1.runs_scored>( SELECT

tio
p2.runs_scored FROM player p2
GROUP BY p2.playergroup HAVING

ca
p2.runs_scored>AVG(p2.runs_scored))
; du
SELECT p1.playerid, p1.playername,
p1.runs_scored FROM player p1
WHERE p1.runs_scored>( SELECT
4E

AVG(p2.runs_scored) FROM player p2


WHERE
p1.playergroup=p2.playergroup);
o ut
Sh

Question 12: Time: 44 Sec Marks: 0/ 1

Shout4Education
10 / 18
Shout4Education
Consider the Tables given below:

Product(productId,productName)

ProductOrder(orderId,productId,quantity)

productId column of ProductOrder is a Foreign key reffering to Product Table. Identify the appropriate SQL statement which will
fetch the ProductId,ProductName,OrderId for all the Product ordered and display 'Yet to be Ordered' if a product has not been
ordered till now.

Choose most appropriate option.

n
tio
Options Response Answer

SELECT

ca
p1.productId,p1.productName,NVL(p2.
orderId,'Yet to be Ordered') FROM
Product p1 INNER JOIN ProductOrder
du
p2 ON p1.productId=p2.productId;

SELECT
4E

p1.productId,p1.productName,NVL(p2.
orderId,'Yet to be Ordered') FROM
ut

Product p1 LEFT OUTER JOIN


ProductOrder p2 ON
o

p1.productId=p2.productId;
Sh

SELECT
p1.productId,p1.productName,NVL(p2.
orderId,'Yet to be Ordered') FROM
Product p1 RIGHT OUTER JOIN
ProductOrder p2 ON
p1.productId=p2.productId;

SELECT
p1.productId,p1.productName,NVL('Yet
to be Ordered',p2.orderId) FROM
Product p1 LEFT OUTER JOIN
ProductOrder p2 ON
p1.productId=p2.productId;

Shout4Education
11 / 18
Shout4Education
Question 13: Time: 18 Sec Marks: 1/ 1

1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script>
5 var x = (3 + 3) + 4 + "6";
6 alert(x); //line 1
7 </script>
8 </body>
9 </html>
10

n
tio
What will be printed in alert box in line 1? Choose most appropriate option.

ca
Options Response du Answer

3346

646
4E

106
ut

16
o
Sh

Question 14: Time: 10 Sec Marks: 1/ 1

What would be the ouput of the javascript code given below?

1 <html>
2 <head>
3 <script>
4 var data=10;
5 document.write(typeof(data));
6 </script>
7 </head>
8 </html>
9

Shout4Education
12 / 18
Shout4Education
Options Response Answer

int

number

integer

numberType

Question 15: Time: 12 Sec Marks: 1/ 1

Which of the following is the correct html form element to create the checkbox in a web page? Choose most appropriate option.

n
Options Response Answer

tio
<checkbox>

ca
<input=checkbox> du
<input type="checkbox">

<input checkbox>
4E
ut

Question 16: Time: 31 Sec Marks: 1/ 1


o

Which is the correct CSS code to display the text "Accenture" in light grey back ground? Choose most appropriate option.
Sh

Options Response Answer

<h2 style = "background-color :


lightgrey">Accenture</h2>

<h2 background-color :
lightgrey>Accenture</h2>

<h2 style = "background-


color(lightgrey)">Accenture</h2>

<h2 style = "background-color =


lightgrey">Accenture</h2>

Shout4Education
13 / 18
Shout4Education
Question 17: Time: 2 Min 4 Sec Marks: 0/ 1

What would be the output of the java script code given below?

1 <html>
2 <head>
3 <script>
4 var data1=100;
5 function test()
6 {
7 var data1=200;
8 window.data1=data1+10;
9 }
10 test();
11 document.write(data1);
12 </script>

n
13 </head>
14 <body>

tio
15 </body>
16 </html>
17

ca
du

4E

Choose most appropriate option.


ut

Options Response Answer


o

100
Sh

200

210

110

Question 18: Time: 19 Sec Marks: 1/ 1

Shout4Education
14 / 18
Shout4Education
Which of the following are CSS selectors?

(i) Element Selector

(ii) Class Selector

(iii) Style Selector

Options Response Answer

(i) and (ii) only

(ii) and (iii) only

n
tio
(i) and (iii) only

(i), (ii) and (iii)

ca
du
Question 19: Time: 19 Sec Marks: 1/ 1
4E
o ut
Sh

Shout4Education
15 / 18
Shout4Education
Refer the HTML code given below.

1 <html>
2 <body>
3 <table border="1">
4 <tr>
5 <th>A</th>
6 <th colspan="2">B</th>
7 </tr>
8 <tr>
9 <th rowspan="3">C</th>
10 <th>D</th>
11 <th>E</th>
12 </tr>
13 <tr>
14 <th>A</th>
15 <th>B</th>
16 </tr>

n
17 <tr>
18 <th>D</th>

tio
19 <th>E</th>
20 </tr>
21 </table>
22 </body>

ca
23 </html>
24 du

4E
ut

How many cells will be displayed when the page is displayed on the browser? Choose most appropriate option.
o

Options Response Answer


Sh

11

10

Question 20: Time: 33 Sec Marks: 1/ 1

Shout4Education
16 / 18
Shout4Education
Refer the HTMLcode given below.

1 <html> <body>
2 <table border="1">
3 <tr><th>A</th>
4 <th colspan="2">B</th>
5 </tr>
6 <tr> <th rowspan="3">C</th>
7 <th>D</th>
8 <th>E</th>
9 </tr>
10 <tr>
11 <th>A</th>
12 <th rowspan="2">B</th>
13 </tr>
14 <tr>

n
15 <th>D</th>
16 </tr>

tio
17 </table>
18 </body>
19 </html>
20

ca
du

4E


ut

How many cells will be displayed when the page is displayed on the browser? Choose most appropriate option.
o
Sh

Options Response Answer

10

Shout4Education
17 / 18
Shout4Education

n
tio
ca
du
4E
ut
o
Sh

Shout4Education
18 / 18
Shout4Education
Question-wise Details

Section #1

Question 1: Time: 29 Sec Marks: 0/ 1

Consider the table Employee(empid,jobBand).

Which is the CORRECT DML statement to update the job band of all employees to NULL? Choose most appropriate option.

Options Response Answer

n
UPDATE TABLE employee SET

tio
jobBand is NULL;

UPDATE employee SET jobBand =

ca
NULL;

UPDATE TABLE employee SET


du
jobBand = NULL;

UPDATE employee SET jobBand is


4E

NULL;
o ut

Question 2: Time: 29 Sec Marks: 1/ 1


Sh

Consider the table Employee(empId,empName,jobBand). Which is the CORRECT SQL statement to retrieve all UNIQUE
jobBand from Employee table ? Choose most appropriate option.

Options Response Answer

SELECT jobBand DISTINCT from


Employee;

SELECT DISTINCT jobBand,empId


from Employee;

SELECT DISTINCT(jobBand) from


Employee;

SELECT DISTINCT jobBand from


Employee;

Shout4Education
2 / 19
Shout4Education

Question 3: Time: 25 Sec Marks: 1/ 1

Consider the table Products(pid,pname,pcost). Identify the appropriate SQL statement to rename the table to ProductsInfo .
Choose most appropriate option.

Options Response Answer

ALTER TABLE Products RENAME


ProductsInfo;

ALTER TABLE Products UPDATE TO


ProductsInfo;

n
ALTER TABLE RENAME Products TO
ProductsInfo;

tio
ALTER TABLE Products RENAME TO

ca
ProductsInfo;
du
Question 4: Time: 30 Sec Marks: 1/ 1
4E

Consider table Department(deptId,deptName). Which of the following query is used to display the department details whose
deptname has second letter as 'a' and second last letter as 'e'? Choose most appropriate option.
ut

Options Response Answer


o
Sh

SELECT * FROM department WHERE


deptname LIKE '_a%e_';

SELECT * FROM department WHERE


deptname LIKE 'a%e_';

SELECT * FROM department WHERE


deptname LIKE '%a%e_';

SELECT * FROM department WHERE


deptname LIKE 'a%e%';

Question 5: Time: 55 Sec Marks: 1/ 1

Shout4Education
3 / 19
Shout4Education
Consider table Account(accId, acctype, balance). Identify the appropriate SQL statement to display account details in the
ascending order of balance and in the descending order of accId if the balance is same. choose most appropriate option.

Options Response Answer

SELECT * FROM Account ORDER BY


balance, accId DESC;

SELECT * FROM Account ORDER BY


balance ASC, accId;

SELECT * FROM Account ORDER BY


accId DESC, balance ASC;

SELECT * FROM Account ORDER BY


accId DESC, balance;

n
tio
Question 6: Time: 45 Sec Marks: 1/ 1

ca
Consider table Employee(empid, empname, jobband). Choose the CORRECT SQL statement to retrieve all employee ids along
du
with their job band. If job band is not assigned to an employee, then it should display 'NA' as job band(Note: Data type of
column jobBand is VARCHAR2). Choose most appropriate option.
4E

Options Response Answer

SELECT empid, NVL(jobband),'NA'


ut

FROM Employee;
o

SELECT empid,
Sh

NVL(jobband,NULL,'NA') FROM
Employee;

SELECT empid,
NVL(NULL,'NA',jobband)FROM
Employee;

SELECT empid, NVL(jobband,'NA')


FROM Employee;

Question 7: Time: 1 Min 34 Sec Marks: 1/ 1

Shout4Education
4 / 19
Shout4Education
Consider table Students(sid NUMBER(3), sname VARCHAR2(10), scontact NUMBER(10) ) is already created in the database.
It is required to change the data type of the column "scontact" to VARCHAR2(15). Which of the following is Correct for the
above requirement?

Note: sid column is primary key.

Choose most appropriate option.

Options Response Answer

To change the data type of a column, it


is important to ensure that the
corresponding column is not having

n
data for any of the record

tio
There are no criteria to be followed. We
can change the datatype of the column

ca
irrespective of the data

Data type can be changed only for


du
primary key column

It is not possible to change the data


4E

type of a column
ut

Question 8: Time: 1 Min 20 Sec Marks: 1/ 1


o
Sh

Shout4Education
5 / 19
Shout4Education
Consider table Player(playerId NUMBER(4), playerType NUMBER(1)) has following records.

PlayerId PlayerType

----------- ------------------

555 1

666

n
777 2

tio
888 1

ca
du
Identify the appropriate SQL statement to display player details. If there is no value for player type, then it should display "No
Type".
4E


ut

Choose most appropriate option.


o
Sh

Options Response Answer

SELECT playerId,
NVL(TO_CHAR(playerType), 'No
Type') FROM Player;

SELECT playerId, NVL(playerType, 'No


Type') FROM Player;

SELECT playerId, NVL(playerType) AS


"No Type" FROM Player;

SELECT playerId,
NVL(TO_CHAR(playerType) AS "No
Type" FROM Player;

Shout4Education
6 / 19
Shout4Education
Question 9: Time: 3 Min 3 Sec Marks: 1/ 1

Consider the table Account (accid, balance, accountType). The following constraints to be enforced.

1. Accid should be unique and Not Null

2. Account type should be 'C' or 'S'. Balance should be greater than 1000 and 3000 for account type 'C' and 'S' respectively

Identify the CORRECT SQL statement to create the Account table with the above mentioned constraints. Choose most
appropriate option.

n
tio
ca
du
4E
o ut
Sh

Shout4Education
7 / 19
Shout4Education
Options Response Answer

CREATE TABLE account( accid


NUMBER(2) CONSTRAINT acc_pk
PRIMARY KEY, balance NUMBER(4),
accountType CHAR, CONSTRAINT
acc_chk CHECK (accountType='S'
AND balance>3000) AND
(accountType='C' AND balance
>1000)) );

CREATE TABLE account( accid


NUMBER(2) CONSTRAINT acc_pk1
PRIMARY KEY, balance NUMBER(4)
CONSTRAINT acc_chk

n
CHECK(balance>1000 OR balance
>3000), accountType CHAR

tio
CONSTRAINT acc_chk CHECK
(accountType='S' OR accounTtype='C')

ca
);

CREATE TABLE account( accid


du
NUMBER(2) CONSTRAINT acc_pk
PRIMARY KEY, balance NUMBER(4),
accountType CHAR, CONSTRAINT
4E

acc_chk1 CHECK (accountType='S'


AND balance>3000), CONSTRAINT
ut

acc_chk2 CHECK (accountType='C'


AND balance >1000) );
o

CREATE TABLE account( accid


Sh

NUMBER(2) CONSTRAINT acc_pk


PRIMARY KEY, balance NUMBER(4),
accountType CHAR, CONSTRAINT
acc_chk CHECK ( (accountType='S'
AND balance>3000) OR
(accountType='C' AND balance
>1000)) );

Question 10: Time: 2 Min 22 Sec Marks: 1/ 1

Shout4Education
8 / 19
Shout4Education
Consider the below tables.

Customer(customerId,customerName) - customerId is primary key Account(accountId,accountType,balance,customerId) -


accountId is primary key and customerId is foreign key.

Which is the CORRECT SQL statement to retrieve customerId, customerName, accountId and balance for all customers. It
should also display the details of the customers who are not having any account.

Choose most appropriate option.

n
tio
Options Response Answer

SELECT

ca
c.customerId,c.customerName,a.accou
ntId,a.balance FROM customer c
RIGHT OUTER JOIN account a ON
du
c.customerId=a.customerId;

SELECT
4E

c.customerId,c.customerName,a.accou
ntId,a.balance FROM account a LEFT
ut

OUTER JOIN customer c ON


c.customerId=a.customerId;
o

SELECT
Sh

c.customerId,c.customerName,a.accou
ntId,a.balance FROM customer c
INNER JOIN account a ON
c.customerId=a.customerId;

SELECT
c.customerId,c.customerName,a.accou
ntId,a.balance FROM account a RIGHT
OUTER JOIN customer c ON
c.customerId=a.customerId;

Question 11: Time: 1 Min 22 Sec Marks: 1/ 1

Shout4Education
9 / 19
Shout4Education
Consider table player(playerid, playername, runs_scored, playergroup). Identify the CORRECT SQL statement to retrieve the
details of players who have scored runs which is greater than the average of runs scored by all players in his player group.
Choose most appropriate option.

Options Response Answer

SELECT p1.playerid, p1.playername,


p1.runs_scored FROM player p1
WHERE AVG(p1.runs_scored)>(
SELECT AVG(p2.runs_scored) FROM
player p2 WHERE
p1.playergroup=p2.playergroup);

SELECT playerid, playername,


runs_scored FROM player WHERE
runs_scored>( SELECT

n
AVG(runs_scored) FROM player);

tio
SELECT p1.playerid, p1.playername,
p1.runs_scored FROM player p1

ca
WHERE p1.runs_scored>( SELECT
p2.runs_scored FROM player p2
du
GROUP BY p2.playergroup HAVING
p2.runs_scored>AVG(p2.runs_scored))
;
4E

SELECT p1.playerid, p1.playername,


p1.runs_scored FROM player p1
ut

WHERE p1.runs_scored>( SELECT


AVG(p2.runs_scored) FROM player p2
o

WHERE
Sh

p1.playergroup=p2.playergroup);

Question 12: Time: 1 Min 40 Sec Marks: 1/ 1

Consider table Employee(EmpId, EmpName,salary,deptNo). Which is the CORRECT SQL statement to list employees whose
salary is more than their department's average salary? The result should be in ascending order of department number. Choose
most appropriate option.

Shout4Education
10 / 19
Shout4Education
Options Response Answer

SELECT e1.empId, e1.empName,


e1.salary,e1.deptNo FROM employee
e1 WHERE e1.salary > (SELECT
avg(e2.salary) FROM employee e2)
ORDER BY e1.deptNo;

SELECT e1.empId, e1.empName,


e1.salary,e1.deptNo FROM employee
e1 ORDER BY e1.deptNo WHERE
e1.salary > (SELECT avg(e2.salary)
FROM employee e2 WHERE
e2.deptNo = e1.deptNo);

SELECT e1.empId, e1.empName,

n
e1.salary,e1.deptNo FROM employee

tio
e1 WHERE avg(e1.salary) > (SELECT
e2.salary FROM employee e2 WHERE

ca
e2.deptNo = e1.deptNo) ORDER BY
e1.deptNo; du
SELECT e1.empId, e1.empName,
e1.salary,e1.deptNo FROM employee
e1 WHERE e1.salary > (SELECT
4E

avg(e2.salary) FROM employee e2


WHERE e2.deptNo = e1.deptNo)
ORDER BY e1.deptNo;
o ut
Sh

Question 13: Time: 24 Sec Marks: 1/ 1

What would be the ouput of the javascript code given below?

1 <html>
2 <head>
3 <script>
4 var data=10;
5 document.write(typeof(data));
6 </script>
7 </head>
8 </html>
9

Shout4Education
11 / 19
Shout4Education
Options Response Answer

int

number

integer

numberType

Question 14: Time: 8 Sec Marks: 1/ 1

Which of the following are the CSS selectors?

n
tio
a) Element Selector

ca
b) Form Selector
du
c) Class Selector
4E

Choose most appropriate option.


ut

Options Response Answer


o

a and b
Sh

a and c

b and c

a, b and c

Question 15: Time: 11 Sec Marks: 1/ 1

Shout4Education
12 / 19
Shout4Education
Which of the following is/are the inline html elements?

(i) <i>

(ii) <h6>

(iii) <a>

n
Choose most appropriate option.

tio
Options Response Answer

ca
(i) and (iii)

(ii) and (iii)


du
only (i)
4E

(i), (ii) and (iii)


ut

Question 16: Time: 54 Sec Marks: 1/ 1


o
Sh

Shout4Education
13 / 19
Shout4Education
Refer the incomplete HTML Code given below

1 <html>
2 <body>
3 <form action="abc.html" _____> <!--Line1-->
4 First Name: <input type="text" name="f1"/>
5 <br/>
6 Last Name: <input type="text" name="l1"/>
7 <br/>
8 Password: <input type="password" name="p1"/>
9 <br/>
10 <input type="submit" value="Submit"/> </form>
11 </body>
12 </html>
13

n
tio

ca
Assume abc.html is existing and a valid HTML page. Identify the appropriate option to be placed at Line1 so that values entered
in the text boxes are not appended to URL while submitting to abc.html . Choose most appropriate option.
du
Options Response Answer
4E

method="GET"
ut

method="POST"

submit="GET"
o
Sh

submit="POST"

Question 17: Time: 12 Sec Marks: 1/ 1

Shout4Education
14 / 19
Shout4Education
What would be the Output of the below java script Code?

1 <html>
2 <body>
3 <script>
4 var x = 5;
5 var d = (x != "5");
6 document.write(d +"--");
7 d = (x === "5");
8 document.write(d);
9 </script>
10 </body>
11 </html>
12

tio
ca
Choose most appropriate option.
du
Options Response Answer

false--false
4E

false--true
ut

true--false

true--true
o
Sh

Question 18: Time: 47 Sec Marks: 1/ 1

Shout4Education
15 / 19
Shout4Education
What would be the output of the java script code given below?

1 <html>
2 <head>
3 <script>
4 function print()
5 {
6 var value1=1;
7 var value2="2";
8 var value3=2;
9 if(value2===value3)
10 {
11 alert(value1+value3);
12 }
13 else
14 {
15 alert(value1+value2);
16 }

n
17 }
18 print();

tio
19 </script>
20 </head>
21 </html>
22

ca
du

4E

Choose most appropriate option.


ut

Options Response Answer


o
Sh

12

122

32

Question 19: Time: 7 Sec Marks: 1/ 1

Shout4Education
16 / 19
Shout4Education
Condsider the javascript code given below. What would be the print values from line 1 and line 2 on execution?

1 <html>
2 <body>
3 <p id="id1"></p><!-- line 1-->
4 <p id="id2"></p><!-- line 2-->
5 <script>
6 var y=10;
7 myFunction();
8 document.getElementById("id1").innerHTML = y;
9 document.getElementById("id2").innerHTML = window.y;
10 function myFunction()
11 {
12 y=20;
13 y=y+window.y
14 }
15 </script>
16 </body>

n
17 </html>
18

tio
ca
du
Choose most appropriate option.
4E

Options Response Answer


ut

10 30
o

10 40
Sh

10 10

40 40

Question 20: Time: 32 Sec Marks: 1/ 1

Shout4Education
17 / 19
Shout4Education
Refer the HTML code given below.

1 <html>
2 <body>
3 <table border="1">
4 <tr>
5 <th>A</th>
6 <th colspan="2">B</th>
7 </tr>
8 <tr>
9 <th rowspan="3">C</th>
10 <th>D</th>
11 <th>E</th>
12 </tr>
13 <tr>
14 <th>A</th>
15 <th>B</th>
16 </tr>

n
17 <tr>
18 <th>D</th>

tio
19 <th>E</th>
20 </tr>
21 </table>
22 </body>

ca
23 </html>
24 du

4E
ut

How many cells will be displayed when the page is displayed on the browser? Choose most appropriate option.
o

Options Response Answer


Sh

11

10

Shout4Education
18 / 19
Shout4Education

n
tio
ca
du
4E
ut
o
Sh

Shout4Education
19 / 19
Shout4Education
Question-wise Details

Section #1

Question 1: Time: 11 Sec Marks: 1/ 1

Consider the Java code given below and determine how many objects and how many references are used in the Java code.
Assume that Student is a valid Java class.

1 public class StudentTester{


2 public static void main(String[] args)

n
3 {
4 Student s1=new Student();

tio
5 Student s2=new Student();
6 Student s3=s1;
7 Student s4=s1;

ca
8 }
9 }
10
du
Choose the most appropriate option.
4E

Options Response Answer

2 Objects and 4 references


ut

4 Objects and 2 references


o
Sh

2 Objects and 2 references

3 Objects and 4 references

Question 2: Time: 14 Sec Marks: 1/ 1

Shout4Education
2 / 23
Shout4Education
Which of the following statements are valid array declaration?

(A) int number();

(B) float average[];

(C) double[] marks;

n
(D) counter int[];

tio
Choose most appropriate option.

ca
Options Response Answer
du
(A)
4E
ut

(A) &
o

(C)
Sh

(D)

(B) &
(C)

Question 3: Time: 28 Sec Marks: 1/ 1

Shout4Education
3 / 23
Shout4Education
What will be the output of the following Java code?

public class ApplicationTester

public static void main(String[] args)

n
{

tio
int[] array = new int[10];

ca
System.out.println(array.length);
du
4E

array[0] = 11;
ut

array[1] = 22;
o
Sh

array[2] = 33;

System.out.println(array.length);

Choose the most appropriate option.

Shout4Education
4 / 23
Shout4Education
Options Response Answer

Program will display 0 and 3

Program will display 10 and 10

Program will display 10 and 3

Program will display null and 3

Question 4: Time: 18 Sec Marks: 1/ 1

n
tio
ca
du
4E
o ut
Sh

Shout4Education
5 / 23
Shout4Education
Consider the Java code given below and determine how many objects and how many references are used in the Java code.
Assume that Student is a valid Java class.

public class StudentTester

public static void main(String[] args)

n
tio
{

ca
Student s1 = new Student();
du
Student s2 = new Student();
4E

Student s3 = s1;
ut

Student s4 = s1;
o
Sh

Choose the most appropriate option.

Shout4Education
6 / 23
Shout4Education
Options Response Answer

2 Objects and 2 references

4 Objects and 2 references

2 Objects and 4 references

3 Objects and 4 references

Question 5: Time: 19 Sec Marks: 1/ 1

Which of the following statement/s is/are TRUE?

n
tio
(1) Java supports multilevel inheritance

ca
(2) Super keyword is used to invoke methods from the parent class
du
Choose the most appropriate option.
4E

Options Response Answer


ut

Only (1) is TRUE


o

Only (2) is TRUE


Sh

Both (1) and (2) are TRUE

Neither (1) Nor (2) are TRUE

Question 6: Time: 24 Sec Marks: 1/ 1

Shout4Education
7 / 23
Shout4Education
What will be the output of the following Java code?

1 public class ApplicationTester


2 {
3 public static void main(String[] args)
4 {
5 char ch='4';
6 switch(ch)
7 {
8 case'2': System.out.println("Hello");
9 break;
10 default: System.out.println("Hello");
11 case'1': System.out.println("Hello");
12 case'3': System.out.println("Hello");
13 break;
14 }
15 }
16 }

n
17

tio
Choose the most appropriate option.

ca
Options Response Answer
du
"Hello" will be displayed once

"Hello" will be displayed 3 times


4E

Compilation error: Invalid use of 'switch'


statement
ut

"Hello" will be displayed 2 times


o
Sh

Question 7: Time: 34 Sec Marks: 1/ 1

Which of the following is a VALID declaration of an abstract method? Choose the most appropriate option.

Options Response Answer

public void drive();

public abstract void drive();

public abstract void drive() {}

public abstract drive(){}

Shout4Education
8 / 23
Shout4Education

Question 8: Time: 1 Min 21 Sec Marks: 1/ 1

Consider the following code snippet and predict the output:

1 public interface I
2 {
3 int x; //Line-1
4 public void display();
5 }
6 public class C implements I //Line-2
7 {
8 public void display()
9 {
10 System.out.println("Hello");
11 }
12 }
13 public class TestInterface{
14 public static void main(String[] args)
15 {

n
16 I i=new C();//Line-3
17 i.display();

tio
18 }
19 }
20

ca
du
Choose the most appropriate option.
4E

Options Response Answer

Compilation error at Line-1 : The blank


ut

final field 'x' may not have been


initialized
o

Compilation error at Line-2 : class C


Sh

cannot implement interface I

Compilation error at Line-3 : Cannot


have a reference of interface type I

It will print : Hello

Question 9: Time: 56 Sec Marks: 1/ 1

Shout4Education
9 / 23
Shout4Education
What will be the output of the following Java code?

1 public abstract class Employee


2 {
3 public abstract Employee()
4 {
5 System.out.print(" 1 ");
6 }
7 }
8 public class ProjectManager extends Employee
9 {
10 public ProjectManager()
11 {
12 System.out.print(" 2 ");
13 }
14 }
15 public class ApplicationTester
16 {

n
17 public static void main(String[] args)
18 {

tio
19 Employee emp=new ProjectManager();
20 }
21 }
22

ca
du
Choose the most appropriate option.

Options Response Answer


4E

2
ut

Compilation Error: Illegal modifier for


the constructor in type Employee
o

1
Sh

1 2

Question 10: Time: 1 Min 7 Sec Marks: 0/ 1

Shout4Education
10 / 23
Shout4Education
Consider the following Java code:

1 public class Employee


2 {
3 int empNo;
4 public void setEmpNo(int num)
5 {
6 this.empNo=num;
7 }
8 public int getEmpNo()
9 {
10 return this.empNo;
11 }
12 }
13

n
With respect to Employee class identify where empNo and num are stored in the memory? Choose the most appropriate option.

tio
Options Response Answer

ca
empNo' and 'num' both are stored in
heap
du
empNo' and 'num' both are stored in
stack
4E

'empNo' is stored in heap and 'num' is


stored in stack
ut

empNo' is stored in stack and 'num' is


stored in heap
o
Sh

Question 11: Time: 1 Min 9 Sec Marks: 0/ 1

Shout4Education
11 / 23
Shout4Education
Refer to the below code and predict the output.

1 public class Test


2 {
3 public static void main(String[] args)
4 {
5 String x=new String("xyz");
6 String y="abc";
7 x=x+y;
8 }
9 }
10

How many String objects are created in the above code? Choose the most appropriate option

Options Response Answer

n
2

tio
3

ca
1 du
4
4E

Question 12: Time: 2 Min 13 Sec Marks: 1/ 1


ut

What is the output expected for the below code ?


o
Sh

1 public class ConstructorTest


2 {
3 private ConstructorTest(int w)
4 {
5 System.out.println(w);
6 }
7 public static ConstructorTest(){ //Line-6
8 System.out.println(10);
9 }
10 public static void main(String args[])
11 {
12 ConstructorTest obj=new ConstructorTest(50);
13 }
14 }
15

Choose most appropriate option.

Shout4Education
12 / 23
Shout4Education
Options Response Answer

10

10 50

50

Won't compile because of Line-6,


constructor can't be static

Question 13: Time: 1 Min 46 Sec Marks: 1/ 1

n
You have three packages, p1,p2 and p3, What is the expected output of compiling and running file Tester in p3 package?

tio
ca
1 package p1;
2 public class Account
3 {
du
4 protected Account(){ //line3
5 System.out.println("Account");
6 }
7 }
4E

8 package p2;
9 import p1.Account;
10 public class CurrentAccount extends Account
11 {
ut

12 public CurrentAccount()
13 {
14 System.out.println("CurrentAccount");
o

15 }
16 }
Sh

17 package p3;
18 import p1.Account;
19 import p2.CurrentAccount;//line3
20 public class Tester
21 {
22 public static void main(String[] args)
23 {
24 Account c=new Account();//line6
25 CurrentAccount ca=new CurrentAccount();
26 }
27 }
28

Choose most appropriate option.

Shout4Education
13 / 23
Shout4Education
Options Response Answer

Account CurrentAccount

Compilation error at line3 in package


p1: Invalid access specifier ‘protected’
for ‘Account’

Compilation error at line3 in package


p3: Cannot import ‘CurrentAccount’
class

Compilation error at line6 in package


p3: Constructor ‘Account’ is not visible

n
tio
Question 14: Time: 30 Sec Marks: 1/ 1

ca
Consider the following Java code:
du
1 public class Student
4E

2 {
3 private String name;
4 private int rollNumber;
5 //getterandsettermethods
ut

6 }
7 public class Faculty
8 {
o

9 private String name;


10 private Student student;
Sh

11 public void setStudent(Student student)


12 {
13 this.student=student;
14 }
15 }
16

Identify the relationship that exists between class Student and class Faculty. Choose the most appropriate option.

Shout4Education
14 / 23
Shout4Education
Options Response Answer

Composition

Inheritance

There is no relationship between the


given two classes

Aggregation

Question 15: Time: 1 Min 8 Sec Marks: 1/ 1

n
Consider the following Java code:

tio
ca
1 public class ApplicationTester
2 {
du
3 public static void main(String[] args)
4 {
5 int i=1;
4E

6 while(i<=5)
7 {
8 if(i==2)
9 {
10 i++;
ut

11 continue;
12 }
13 if(i==3)
o

14 {
Sh

15 break;
16 }
17 i++;
18 System.out.println("Hello");
19 }
20 }
21 }
22

When the above code is executed, how many time/times "Hello" will be printed on the console? Choose the most appropriate
option.

Shout4Education
15 / 23
Shout4Education
Options Response Answer

1 time

2 times

3 times

5 times

Question 16: Time: 34 Sec Marks: 1/ 1

Refer to the below code and predict the output

n
1 interface A

tio
2 {
3 public void method1();
4 }
5 class Demo implements A

ca
6 {
7 public void method1()
8 {
9 System.out.println("1");
du
10 }
11 }
12 class ParentTest extends Demo
13 {
4E

14 public void method1()


15 {
16 System.out.println("2");
17 }
ut

18 }
19 public class Test extends ParentTest
20 {
o

21 public static void main(String[] args)


22 {
Sh

23 A a=new ParentTest();
24 a.method1();
25 }
26 }
27

Choose the most appropriate Option:

Shout4Education
16 / 23
Shout4Education
Options Response Answer

1,2

2,1

Question 17: Time: 43 Sec Marks: 1/ 1

Consider the Java code given below and predict what will be the output?

n
1 package x;

tio
2 public class Student
3 {
4 void display(){ //Line-1
5 System.out.println("Hello");

ca
6 }
7 }
8 package y;
9 import x.Student;//Line-2
du
10 public class TestFinalClass
11 {
12 public static void main(String[] args)
13 {
4E

14 Student s=new Student();


15 s.display();//Line-3
16 }
17 }
ut

18
o
Sh

Choose the most appropriate option.

Options Response Answer

Compilation error at Line-3 : The


method display from type Student is not
visible

Compilation error at Line-2 : Cannot


import class Student from package x

It will print Hello

Compilation error at Line-1 : No access


specifier defined for method display

Shout4Education
17 / 23
Shout4Education

Question 18: Time: 1 Min 2 Sec Marks: 1/ 1

Consider the following Java code (Assume that Employee is a valid Java class):

1 public class ApplicationTester{


2 public static void main(String[] args)
3 {
4 Employee emp1=newEmployee();
5 Employee emp2=newEmployee();
6 Employee emp3=newEmployee();
7 Employee emp4=emp1;
8 emp1=emp3;
9 emp4=null;

n
10 emp2=emp4;//Line-1
11 //some valid Java code

tio
12 }
13 }
14

ca
With respect to the above code, how many object/objects will be eligible for garbage collection after Line-1? Choose the most
du
appropriate option.

Options Response Answer


4E

1
ut

2
o

3
Sh

Question 19: Time: 38 Sec Marks: 1/ 1

Shout4Education
18 / 23
Shout4Education
Refer to the below code and predict the output.

1 public class Test


2 {
3 public static void main(String[] args)
4 {
5 int i=10;
6 boolean b=false;
7 if((b==true) && ((i+=10)==20))
8 {
9 System.out.println("We are equal "+i);
10 }
11 else
12 {
13 System.out.println("Not equal! "+i);
14 }
15 }
16 }
17

n
tio
Choose the most appropriate option

ca
Options Response Answer

Not equal! 10
du
We are equal! 10
4E

Not equal! 20

We are equal! 20
o ut
Sh

Question 20: Time: 35 Sec Marks: 1/ 1

What is output obtained on executing the following Java code?

Shout4Education
19 / 23
Shout4Education
1 package pack1;
2 public class A
3 {
4 private int i;
5 private int j;
6 protected A()
7 {
8 i=10;
9 j=20;
10 }
11 public int getI()
12 {
13 return i;
14 }
15 public void setI(int i)
16 {
17 this.i=i;
18 }
19 public int getJ()
20 {
21 return j;
22 }

n
23 public void setJ(int j)
24 {

tio
25 this.j=j;
26 }
27 public void disp()
28 {

ca
29 System.out.println(i+" "+j);
30 }
31 }
32 package pack2;
du
33 import pack1.A;
34 public class B extends A
35 {
4E

36 public B()
37 {
38 //line1
39 }
40 void display()
ut

41 {
42
o

43 }
44 }
Sh

45 package pack2;
46 import pack1.A;
47 public class MyMain
48 {
49 public static void main(String[] args)
50 {
51 A obj1=new B();
52 obj1.setI(30);
53 obj1.setJ(40);
54 A obj2=obj1;
55 obj2.setI(50);
56 obj1.disp();
57 obj2.disp();
58 }
59 }
60

Choose most appropriate option.

Shout4Education
20 / 23
Shout4Education
Options Response Answer

30 40 50 40

50 40 50 40

Compilation error in line 1: Implicit


super constructor A() is not visible.
Must explicitly invoke another
constructor

30 40 50 20

Question 21: Time: 17 Sec Marks: 1/ 1

n
tio
What will be the output of the following Java code?

ca
du
1 public class ApplicationTester
2 {
4E

3 public static void main(String[] args)


4 {
5 for(int i=1;i<=3;i++)
6 {
7 if(i==2)
ut

8 {
9 continue;
10 }
o

11 for(int j=1;j<=3;j++)
Sh

12 {
13 if(j==2)
14 {
15 continue;
16 }
17 System.out.println("GFT");
18 }
19 }
20 }
21 }
22

Choose the most appropriate option.

Shout4Education
21 / 23
Shout4Education
Options Response Answer

"GFT" will be displayed 9 times

"GFT" will be displayed 8 times

"GFT" will be displayed 6 times

"GFT" will be displayed 4 times

Question 22: Time: 37 Sec Marks: 0/ 1

Consider the following Java code:

n
tio
1 package myPackage;

ca
2 public class Employee
3 {
4 private int empNo;
5 private double salary;
du
6 //getter and setter methods
7 void computeSalary()
8 {
4E

9 //logic to compute salary


10 }
11 }
12
13 package myPackage;
ut

14 public class PackageTester


15 {
16 public static void main(String[] args)
o

17 {
Sh

18 Employee emp=new Employee();


19 //valid Java code
20 emp.computeSalary();//Line-1
21 }
22 }
23

What access specifier can be used for computeSalary() method in Employee class, so that code in Line-1 will execute without
any error? Choose the most appropriate option.

Shout4Education
22 / 23
Shout4Education
Options Response Answer

Only public

Only private

Either public or protected or default

Only default

n
tio
ca
du
4E
o ut
Sh

Shout4Education
23 / 23
 sai Sampath Ghantasala .

 Dashboard / Nobels Mock 3 - Quiz / Quiz / Quiz

Started on Friday, 19 June 2020, 5:07 PM


State Finished
Completed on Friday, 19 June 2020, 6:04 PM
Time taken 57 mins 5 secs
Grade 43.00 out of 50.00 (86%)

Question What is the approach of OO ?


1
Select one:
Correct

Mark 1.00 out of a. bundle data only for security


1.00
b. bundle data and method 

c. bundle method seperated from data

d. bundle data seperated from method

The correct answer is: bundle data and method

Question What is the term used to define the values that are common across all instances of a class ?
2
Select one:
Correct

Mark 1.00 out of a. Static 


1.00
b. Property

c. Interface

d. Attribute

The correct answer is: Static

Question Select the benefits of OOP ?


3
Select one or more:
Correct

Mark 1.00 out of a. Resuability 


1.00
b. Testing

c. code deployment

d. Ease of design 

The correct answers are: Ease of design, Resuability

Question Which of the below terms represents the levels of hierarchy ?


4
Select one or more:
Correct

Mark 1.00 out of a. Multi-Level


1.00
b. Generalization 

c. Aggregation 

d. Compound

The correct answers are: Generalization, Aggregation


 sai Sampath Ghantasala .

Question Select the true statements about Use Case diagram ?


5
Not answered
Select one or more:

Marked out of a. Depicts the boundry of the system


1.00
b. Captures users of the system

c. Captures attributes and methods

d. Captures dynamic aspects of the system

The correct answers are: Depicts the boundry of the system, Captures users of the system, Captures dynamic aspects of the
system

Question Select the principle that best describes the given scenario. An air-condition can be operated using the button or remote
6 control.

Incorrect
Select one:
Mark 0.00 out of
1.00 a. Encapsulation

b. Polymorphism

c. Hierarchy

d. Abstraction 

The correct answer is: Encapsulation

Question _________ is not the exact code for solving the problem but it would give us an idea of how the problem is going to be solved.
7
Correct

Mark 1.00 out of Select one:


1.00
a. object code

b. Pseudocode 

c. Structure code

d. Programming code

Your answer is correct.

The correct answer is: Pseudocode

Question State true or false.


8  Configuration management is important only during the coding phase
Correct

Mark 1.00 out of Select one:


1.00
True

False 

The correct answer is 'False'.

Question Enhancements made to the developed software is called as ………………


9
Select one:
Correct

Mark 1.00 out of a. Design


1.00
b. Testing
c. Analysis
 sai Sampath Ghantasala .
d. Maintenance 

The correct answer is: Maintenance

Question State true or false. Black box testers can proceed with generating the test cases immediately after the SRS is freezed in the
10 analysis phase

Correct
Select one:
Mark 1.00 out of
1.00 True 

False

The correct answer is 'True'.

Question ERD Example: Consider the given scenario. ZEE public school Library. A Library has many books. Each Book has many
11 chapters. Identify the cardinality between Chapter and Book

Incorrect
Select one:
Mark 0.00 out of
1.00 a. m..1

b. 0..0

c. m..m 

d. 0..m

The correct answer is: m..1

Question A Software needs to be developed for a Sterlin Hospital to monitor the radiations given for cancer patients. Even a very minute
12 deviation would result in the risk of the life of the patient. Which would be the appropriate life cycle model used to implement
the given scenario
Correct

Mark 1.00 out of


1.00
Select one:
a. Agile

b. Prototyping

c. Water fall

d. Spiral 

The correct answer is: Spiral

Question Which of the following is not a feature of UNIX?


13
Select one:
Correct

Mark 1.00 out of a. Multiuser


1.00
b. Portability

c. Multitasking

d. User friendly 

The correct answer is: User friendly

Question Unix Terminals are called Dummy terminals as they do not have _____________ capability.
14
Select one:
Select one:
Correct

Mark 1.00 out of a. Output  sai Sampath Ghantasala .


1.00
b. Input

c. Processing 

d. Display

The correct answer is: Processing

Question Consider the sample.txt file and predict the output 


15 Unix is an operating system. 
Correct
Unix is open source.
Mark 1.00 out of
1.00  Linux is also a powerful OS. 
What is the output of grep -c "Unix" sample.txt command?

Select one:
a. 0

b. 3

c. 2 

d. 4

The correct answer is: 2

Question What does the below Unix command accomplish? 


16 $ sed 's/ABC/ZYX/' file.txt
Correct

Mark 1.00 out of Select one:


1.00
a. Only matches and displays the occurrence of the pattern

b. Replaces only first occurrence of ‘ABC’ with 'ZYX'

c. Replaces all occurrences 'ABC' with 'ZYX'

d. Replaces first occurrence in every line ‘ABC’ with 'ZYX' 

The correct answer is: Replaces first occurrence in every line ‘ABC’ with 'ZYX'

Question Which of the following should be used to print lines containing ‘manager’ in emp.lst?
17
Select one:
Correct

Mark 1.00 out of a. awk ‘manager { print }’ emp.lst


1.00
b. awk ‘/manager { print }’ emp.lst

c. awk ‘/manager/ { print }’ emp.lst 

d. awk ‘/manager/ { print } emp.lst

The correct answer is: awk ‘/manager/ { print }’ emp.lst

Question which of the following option can be used ,in order to quit vi editor without saving the work done ?
18
Select one:
Correct

Mark 1.00 out of a. :q! 


1.00
b. :w

c. :q

d
d. :c
 sai Sampath Ghantasala .

The correct answer is: :q!

Question What does DTD stand for?


19
Select one:
Correct

Mark 1.00 out of a. Direct Type Definition


1.00
b. Dynamic Type Definition

c. Document Type Definition 

d. Dynamic Transfer Definition

The correct answer is: Document Type Definition

Question Which of the following fragments of XML are well-formed


20
Select one:
Correct

Mark 1.00 out of a. <?xml?>


1.00
b. <?xml encoding="Master"?>

c. <?xml encoding="JIS" version="File1"?>

d. <?xml version="1.0"?> 

The correct answer is: <?xml version="1.0"?>

Question Which of the following xml prolog is according to syntax of XML


21
Correct

Mark 1.00 out of Select one:


1.00
a. <?xml version="1.0" encoding="UTF-18"?>

b. <?xml version="1.0" encoding="UTF-8"?> 

c. <?xml version="1.0" version="UTF-8"?>

d. <?xml version="1.0" encoding="UTF-8">

The correct answer is: <?xml version="1.0" encoding="UTF-8"?>

Question Identify the well-formed XML code


22
Select one:
Correct

Mark 1.00 out of a. <bookstore>


1.00      <book category="children">
     <title>Harry Potter</title>
     <author>J K. Rowling</author>
     <year>2005</year>
     <price>29.99 </book>
 </bookstore>

b. <bookstore>
     <book category="children">
     <title>Harry Potter</title>
     <author>J K. Rowling</author>
     <year>2005</year>
     <price>29.99</price>
    </book>
 </bookstore> 
c. <bookstore>
 sai Sampath Ghantasala .
     <book category=children>
     <title>Harry Potter</title>
    <author>J K. Rowling</author>
    <year>2005</year>
    <price>29.99</price>
   </book>
 </bookstore>

d. <bookstore>
   <book category="children">
    <title>Harry Potter</title>
    <author>J K. Rowling</author>
    <year>2005</year>
   <price>29.99</price>
 </bookstore>

The correct answer is: <bookstore>


     <book category="children">
     <title>Harry Potter</title>
     <author>J K. Rowling</author>
     <year>2005</year>
     <price>29.99</price>
    </book>
 </bookstore>

Question Consider the Java code given below. How many times ";Hello "; will be printed when the code is executed?
23 public class ApplicationTester
Correct {
public static void main(String[] args)
Mark 1.00 out of
{
1.00
int i = 0;
do
{
System.out.println("Hello");
i++;
} while(i <= 1);
}
}

Choose the most appropriate option.

Select one:
a. Nothing will be printed

b. 2 times 

c. 3 times

d. 1 time

The correct answer is: 2 times

Question which of the following represents correct order from the most to least restrictive? Choose most appropriate option.
24
Select one:
Correct

Mark 1.00 out of a. private,default,proctected,public 


1.00
b. private,protected,default,public

c. protected,private,default,public

d. public,protected,default,private

The correct answer is: private,default,proctected,public

Question Consider the Java code given below How many times "Accenture" will be printed when the code is executed?
Quest o Consider the Java code given below. How many times Accenture will be printed when the code is executed?
25 public class Tester  sai Sampath Ghantasala .
Correct {
public static void main(String[] args)
Mark 1.00 out of
{
1.00
for(int i=0; i <5; i++)
{
System.out.println("Accenture");
i++;
}
}

Choose the most appropriate option.

Select one:
a. 2 times

b. 3 times 

c. 1 time

d. 4 times

The correct answer is: 3 times

Question What will be the output of the following Java code?


26 public class Vehicle
Correct {
protected String enginePower;
Mark 1.00 out of
public Vehicle()
1.00
{
this.enginePower = "100CC";
}
public String getEnginePower()
{
return this.enginePower;
}
}
public class PassengerVehicle extends Vehicle
{
private int capacity;
public PassengerVehicle()
{
this.capacity = 50;
this.enginePower = "150CC";
}
public int getCapacity()
{
return this.capacity;
}
}
public class ApplicationTester
{
public static void main(String[] args)
{
Vehicle vehicle = new PassengerVehicle();
System.out.println(vehicle.getEnginePower());
}
}

Choose the most appropriate option.

Select one:

a. 100CC

b. null

c. 100CC150CC

d. 150CC 

The correct answer is: 150CC

Question What will be the output of the following Java code?


27
27 public class MyClass
Correct {  sai Sampath Ghantasala .
private static int count;
Mark 1.00 out of
static
1.00
{
MyClass.count = 100;
//Line-1
int count = 100;
//Line-2
}
public MyClass()
{
count++ ;
}
public static int getCount()
{
return count;
}
}
public class StaticTester
{
public static void main(String[] args)
{
MyClass ref1 = new MyClass();
MyClass ref2 = new MyClass();
System.out.println(ref1.getCount());
}
}

Choose the most appropriate option.

Select one:
a. 2

b. 102 

c. Compilation error at Line-2: Duplicate variable 'count'

d. Compilation error at Line-1: Invalid variable reference 'MyClass.count'

The correct answer is: 102

Question Which of the following statement/statements is/are FALSE?


28 (i) 'package ' statement can appear any where in the Java code
Correct (ii) In a Java code, one can write only one 'import ' statement
Mark 1.00 out of Choose the most appropriate option.
1.00

Select one:
a. Both (i) and (ii) are TRUE

b. Only (i) is FALSE

c. Both (i) and (ii) are FALSE 

d. Only (ii) is FALSE

The correct answer is: Both (i) and (ii) are FALSE

Question What will be the output of the following Java code?


29
Correct public class ApplicationTester
{
Mark 1.00 out of
public static void main(String[] args)
1.00
{
int[] array = {-9,-11-8,-100,-78};
int minimum = 0;
for(int index=0; index < array.length; index++)
{
if(minimum < array[index])
{ minimum = array[index];
}
}
System out println(minimum);
System.out.println(minimum);
}
 sai Sampath Ghantasala .
}

Choose the most appropriate option.

Select one:
a. -100

b. null

c. 0 

d. -8

The correct answer is: 0

Question What will be the output of the following Java code?


30
Correct
public class ApplicationTester {
Mark 1.00 out of
1.00            public static void main(String[] args) {
                 int [] array1 = {10,20,30,40,50};

                 int [] array2 = array1;


                 for(int index1=0,index2=3; index2<array2.length&&index1<array1.length; index1++,++index2)
                   {

                                array1[index1]++;
                                System.out.print(array2[index2]+” ”);
                   }

         }
}

Select one:
a. 41 51

b. Array Index Out Of Bounds Exception

c. 0 0

d. 40 50 

The correct answer is: 40 50

Question What will be the output of the following Java code?


31 public class ApplicationTester
Correct {
public static void main(String[] args)
Mark 1.00 out of
{
1.00
for(int i=0; i<=10; i++)
{
if(i>6)
break;
}
System.out.println(i); //Line-1
}
}

Choose most appropriate option.

Select one:
a. null

b. 5

c. Compilation error at Line-1: i cannot be resolved to a variable 

d. 6
 sai Sampath Ghantasala .
The correct answer is: Compilation error at Line-1: i cannot be resolved to a variable

Question The employee tables contains EmployeeId,EmployeeName and DeptCode Columns. Which is the CORRECT SQL query to
32 display the EmployeeId and EmployeeName of employees who are working in DeptCode 10 OR 20?
Correct (i) SELECT EmployeeId,EmployeeName FROM Employee WHERE DeptCode IN (10,20);
Mark 1.00 out of (ii) SELECT EmployeeId,EmployeeName FROM Employee WHERE DeptCode = 10 OR DeptCode = 20;
1.00 Choose most appropriate option.

Select one:
a. Only (i)

b. Neither (i) nor (ii)

c. Both (i) and (ii) 

d. Only (ii)

The correct answer is: Both (i) and (ii)

Question Consider the following tables: 


33                       Vendor (VendorId, VendorName, PhoneNumber). 
Correct
                                 Here VendorId is the primary key. 
Mark 1.00 out of
1.00                       Item (ItemCode, UnitPrice, QuantityOnHand, VendorId) 
                                Here ItemCode is the primary key and VendorId is the foreign key referencing the VendorId in                           
                Vendor Table. 
Which is the CORRECT SQL query to display ItemCode, UnitPrice, VendorName for all Items. It should also display the details
of the Item which is not having any vendor?
 Choose most appropriate option

Select one:
a. SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName FROM Item, Vendor WHERE Item.VendorId =
Vendor.VendorId;

b. SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName FROM Item LEFT OUTER JOIN Vendor ON Item.VendorId =


Vendor.VendorId; 

c. SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName FROM Item INNER JOIN Vendor ON Item.VendorId =


Vendor.VendorId;

d. SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName FROM Item INNER JOIN Vendor ON Item.VendorId =


Vendor.VendorId AND Item.VendorId IS NULL;

The correct answer is: SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName FROM Item LEFT OUTER JOIN Vendor ON
Item.VendorId = Vendor.VendorId;

Question Identify the CORRECT SQL statement(s) to remove ONLY the data from "Employee" table?
34 (i) DROP TABLE Employee;
Correct (ii) DELETE FROM Employee;
Mark 1.00 out of (iii) TRUNCATE TABLE Employee;
1.00 Choose most appropriate option.

Select one:
a. (i), (ii) and (iii)

b. Both (i) and (ii)

c. Both (ii) and (iii) 

d. Both (i) and (iii)


The correct answer is: Both (ii) and (iii)  sai Sampath Ghantasala .

Question The following statement is True/False?


35 Is it mandatory for foreign key column to have the same data type of primary key in case of writing the querry of join to fetch
Correct data from multiple tables. 
Mark 1.00 out of
1.00 Select one:
a. False

b. True 

The correct answer is: True

Question Consider the following tables:


36 Vendor (VendorId, VendorName, PhoneNumber). Here VendorId is the primary key.
Item (ItemCode, UnitPrice, QuantityOnHand, VendorId) Here ItemCode is the primary key and VendorId is the foreign key
Correct
referencing the VendorId in Vendor Table.
Mark 1.00 out of
1.00
 
Which is the CORRECT SQL query to display ItemCode, UnitPrice, VendorName for all Items. It should also display the details
of the Item which is not having any vendor?
Choose most appropriate option

Select one:
a. SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName FROM Item INNER JOIN Vendor ON Item.VendorId =
Vendor.VendorId;

b. SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName FROM Item INNER JOIN Vendor ON Item.VendorId =


Vendor.VendorId AND Item.VendorId IS NULL;

c. SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName FROM Item, Vendor WHERE Item.VendorId =


Vendor.VendorId;

d. SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName FROM Item LEFT OUTER JOIN Vendor ON Item.VendorId =


Vendor.VendorId; 

Your answer is correct.

The correct answer is: SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName FROM Item LEFT OUTER JOIN Vendor ON
Item.VendorId = Vendor.VendorId;

Question Identify the CORRECT SQL statement to create a Account table with composite primary key (AccountNumber, CustomerId).
37 Choose most appropriate option

Incorrect
Select one:
Mark 0.00 out of
1.00 a. CREATE TABLE Account (AccountNumber Number(5), CustomerId Number(10), OpeningDate Date, Balance
Number(10,2), CONSTRAINT Acc_Pkey COMPOSITE PRIMARY KEY (AccountNumber,CustomerId)); 

b. CREATE TABLE Account (AccountNumber Number(5) CONSTRAINT Acc_Pkey1 PRIMARY KEY, CustomerId Number(10)
CONSTRAINT Acc_Pkey2 PRIMARY KEY, OpeningDate Date, Balance Number(10,2));

c. CREATE TABLE Account (AccountNumber Number(5), CustomerId Number(10) CONSTRAINT Acc_Pkey2 PRIMARY KEY
(AccountNumber,CustomerId), OpeningDate Date, Balance Number(10,2));

d. CREATE TABLE Account (AccountNumber Number(5), CustomerId Number(10), OpeningDate Date, Balance
Number(10,2), CONSTRAINT Acc_Pkey PRIMARY KEY (AccountNumber,CustomerId));

Your answer is incorrect.


The correct answer is: CREATE TABLE Account (AccountNumber Number(5), CustomerId Number(10), OpeningDate Date,
Balance Number(10,2), CONSTRAINT Acc_Pkey PRIMARY KEY (AccountNumber,CustomerId));

Question Assume abc.html is existing and a valid HTML page. Refer the code below:
38 <form action="abc.html">
C t First Name: <input type="text"/><br/>
Correct First Name: <input type text /><br/>
Last Name: <input type="text"/><br/>
Mark 1.00 out of
Password: <input type="hidden"/><br/>
 sai Sampath Ghantasala .
1.00
<input type="submit" value="Submit"/>
<form>

How many HTML controls will be displayed on the browser, when the above page is run on browser? Choose most appropriate
option

Select one:
a. 3 

b. 4

c. 5

d. 7

The correct answer is: 3

Question Which of the following CSS code is the correct one to apply style to tag 'p'? Choose most appropriate option.
39
Select one:
Incorrect

Mark 0.00 out of a. p ( color:red; text-align:center; )


1.00
b. p { color:red, text-align:center; }

c. p { color=red; text-align=center; } 

d. p { color:red; text-align:center; }

Your answer is incorrect.


The correct answer is: p { color:red; text-align:center; }

Question In HTML, Which of the following is used to merge columns in a table? Choose most appropriate option.
40
Select one:
Correct

Mark 1.00 out of a. columnspan


1.00
b. cspan

c. colspan 

d. columns-span

The correct answer is: colspan

Question Identify the CORRECT HTML code to define the state of the hyperlink. The requirement is to display the hyperlink "Click" in RED
41 color if user has already visited "https://portal.accenture.com". Choose most appropriate option.

Correct
Select one:
Mark 1.00 out of
1.00 a. <html>
 <body>
 <a href="https://portal.accenture.com/" link="red"> Click </a>
 </body>
 </html>

b. <html>
 <body vlink="red" >
<a href="https://portal.accenture.com/">Click </a>
 </body>
 </html> 

c. <html>
<body link="red" >
<a href="https://portal.accenture.com/"> Click </a>
</body>
</html>
d. <html>  sai Sampath Ghantasala .
 <body>
 <a href="https://portal.accenture.com/" vlink="red"> Click </a>
 </body>
 </html>

The correct answer is: <html>


 <body vlink="red" >
<a href="https://portal.accenture.com/">Click </a>
 </body>
 </html>

Question Which method is used to remove focus from the specified object? Choose most appropriate option.
42
Select one:
Correct

Mark 1.00 out of a. onclick()


1.00
b. onfocus()

c. onblur() 

d. onsubmit()

The correct answer is: onblur()

Question Consider the HTML code given below.


43
Correct
<html>
Mark 1.00 out of
1.00   <head>

    <script>
      var key=10;

      function add(){

        var key=20; 
        window.key=key+1; 

        document.write(key);

        document.write(" "); 
        print();

   }

      function print(){ 

        document.write(key);
   }

    </script>

  </head>
  <body>

    <form>

      <input type="s

Select one:
a. 21 21

b. 20 21 

c. 11 11

d. 11 10

Your answer is correct.

The correct answer is: 20 21


 sai Sampath Ghantasala .
Question SPOT THE ERROR:
44 Observe the below algorithm to find the average of three numbers. 
Correct
Step1: Start
Mark 1.00 out of
1.00 Step2: Get num1, num2, num3

Step3: Add num1, num2, num3 and store it in Sum

Step4: Average=sum%3
Step5: Display Sum and Average

Step6: Stop

Identify the incorrect step(if any)

Select one:

a. No error

b.  Step 4 

c.  Step 5

d. Step 2

Your answer is correct.

The correct answer is:  Step 4

Question Order the range of coupling from high to low


45 a. control coupling
Correct
b. stamp coupling
Mark 1.00 out of
1.00 c. content coupling

d. uncoupled
e. common coupling

f. data coupling

Select one:
a.
c , e , a, b, f, d 

b.
d, c , e , a, b, f

c.
c  , a, b, f, e, d

d.
c , e , a, f , b, d

Your answer is correct.


The correct answer is:
c , e , a, b, f, d

Question Carefully read the question and answer accordingly. What operation is processed for each element in the list
46
Select one:
Correct

Mark 1.00 out of a. Merging


1.00
b. Inserting

c. Traversal 

d. Sorting
The correct answer is: Traversal  sai Sampath Ghantasala .

Question Carefully read the question and answer accordingly. Which data structure is said to be linear data structure?
47
Select one:
Correct

Mark 1.00 out of a. Graphs


1.00
b. None of the listed options

c. Tree

d. Arrays 

The correct answer is: Arrays

Question Time complexity of an algorithm signifies the total time required by the algorithm to complete its execution with provided
48 resources. State True or False.

Correct
Select one:
Mark 1.00 out of
1.00 True 

False

The correct answer is 'True'.

Question What is the time complexity of find_count()?


49 int find_count(int i)
Not answered
{
Marked out of
1.00
int c=0;

for(int m=0;m<I;m++)

       for(int n=m;n>0;n--)
             c=c+1;

return c;

Select one:
a. theta(nlognlogn)

b. theta(n)

c. theta(n2)

d. theta(n*logn)

The correct answer is: theta(n2)

Question What is the time complexity of these functions? 


50  int fact(int i)
Not answered
 { 
Marked out of
1.00
if(i<=1)
return i; 

 return 2*fact(i-1);

 }
 int fact2(int i) 

 if(i<=1) 
return i; 
 return fact2(i-1) + fact2(i-1);  sai Sampath Ghantasala .
 }

Select one:
a. O(2^n) for both fact() and fact2()

b. O(n) for fact() and O(2^n) for fact2()

c. O(n) for both fact() and fact2()

d. O(2^n) for fact() and O(n) for fact2()

The correct answer is: O(n) for fact() and O(2^n) for fact2()
 sai Sampath Ghantasala .

 Dashboard / Nobles Mock 2 - Quiz / Quiz / Quiz

Started on Friday, 12 June 2020, 5:40 PM


State Finished
Completed on Friday, 12 June 2020, 6:35 PM
Time taken 54 mins 32 secs
Grade 41 out of 50 (81%)

Question Consider the table Student(StudentId, StudentName, Email, PercentageOfMarks). Which is the CORRECT query to display the
1 details in the ascending order (lowest to highest) of PercentageOfMarks and in the descending order of StudentId in case
PercentageOfMarks is the same. Choose most appropriate option
Correct

Mark 1 out of 1
Select one:
a. SELECT StudentId, StudentName, Email, PercentageOfmarks FROM Student ORDER BY PercentageOfMarks DESC,
StudentId DESC;

b. SELECT StudentId, StudentName, Email, PercentageOfmarks FROM Student ORDER BY PercentageOfMarks DESC,
StudentId;

c. SELECT StudentId, StudentName, Email, PercentageOfmarks FROM Student ORDER BY PercentageOfMarks, StudentId
DESC; 

d. SELECT StudentId, StudentName, Email, PercentageOfmarks FROM Student ORDER BY StudentId DESC,
PercentageOfMarks;

The correct answer is: SELECT StudentId, StudentName, Email, PercentageOfmarks FROM Student ORDER BY
PercentageOfMarks, StudentId DESC;

Question Which is the CORRECT SQL statement to add the new column "DateOfJoining" to an existing table "Employee"? Choose most
2 appropriate option.

Correct
Select one:
Mark 1 out of 1
a. CREATE TABLE Employee ADD DateOfJoining DATE;

b. ALTER TABLE Employee MODIFY DateOfJoining DATE;

c. ALTER TABLE Employee UPDATE DateOfJoining DATE;

d. ALTER TABLE Employee ADD DateOfJoining DATE; 

The correct answer is: ALTER TABLE Employee ADD DateOfJoining DATE;

Question Which of the following statement(s) is/are TRUE?


3 (i) In a non-correlated(independent) subquery, the subquery is always executed only once.
Incorrect (ii) In a non-correlated(independent) subquery, the inner query (sub query) references the column from the outer query (main
Mark 0 out of 1 query).
Choose most appropriate option

Select one:
a. Neither (i) nor (ii)

b. Only (ii)

c. Both (i) and (ii) 

d. Only (i)

The correct answer is: Only (i)


Question Which is the CORRECT SQL Query to display names of employees which has only 3 letters that saiwith
starts Sampath
'A' andGhantasala .
ends with 'e'?
4 Choose most appropriate option.

Incorrect
Select one:
Mark 0 out of 1
a. SELECT EmployeeName FROM Employee WHERE EmployeeName LIKE 'A%e'; 

b. SELECT EmployeeName FROM Employee WHERE EmployeeName LIKE '__e';

c. SELECT EmployeeName FROM Employee WHERE EmployeeName = 'A_e';

d. SELECT EmployeeName FROM Employee WHERE EmployeeName LIKE 'A_e';

The correct answer is: SELECT EmployeeName FROM Employee WHERE EmployeeName LIKE 'A_e';

Question Which of the following is CORRECT about DELETE command?


5 a) It can delete single or multiple columns from a table
Correct b) It can delete single or multiple records from a table
Mark 1 out of 1 c) Records deleted can be roll backed.
Choose most appropriate option.

Select one:
a. b and c 

b. a and c

c. a and b

d. a only

The correct answer is: b and c

Question What is the SQL query for finding the total number of rows in a given table 'emp'? Choose most appropriate option.
6
Select one:
Correct

Mark 1 out of 1 a. SELECT SUM(*) FROM EMP;

b. SELECT COUNT FROM EMP;

c. SELECT SUM FROM EMP;

d. SELECT COUNT(*) FROM EMP; 

The correct answer is: SELECT COUNT(*) FROM EMP;

Question Which of the following SQL commands is used to remove table "EMPLOYEE" present in the database? Choose most
7 appropriate option.

Correct
Select one:
Mark 1 out of 1
a. TRUNCATE TABLE EMPLOYEE;

b. DROP TABLE EMPLOYEE; 

c. REMOVE TABLE EMPLOYEE;

d. DELETE TABLE EMPLOYEE;

The correct answer is: DROP TABLE EMPLOYEE;

Question Consider table Item(itemId, category, unitprice). Identify the appropriate SQL statement to display item id and discount in the
8 ascending order of discount. [Note: Discount should be 10% of unitprice] Choose most appropriate option.

Correct
Select one:
Mark 1 out of 1
Mark 1 out of 1
a. select itemId, unitprice*0.1 as discount from Item order by itemId;
 sai Sampath Ghantasala .
b. select itemId, unitprice*0.1 as discount from Item order by discount; 

c. select itemId, discount from Item order by discount;

d. select itemId, discount=unitprice*0.1 from Item order by discount;

The correct answer is: select itemId, unitprice*0.1 as discount from Item order by discount;

Question Which of the following about DELETE command in SQL is FALSE? Choose most appropriate option.
9
Select one:
Correct

Mark 1 out of 1 a. Used for deleting a single column value in a record 

b. Is a DML statement and has to be manually committed

c. Throws constraint violation error when deleting a parent record, for which child records exists

d. Used for deleting multiple records in a table

The correct answer is: Used for deleting a single column value in a record

Question Consider the table Employee(empid, empname, designation). Identify the appropriate SQL statement to retrieve all employees
10 whose designation is either 'S or 'A'. Choose most appropriate option.

Correct
Select one:
Mark 1 out of 1
a. SELECT * FROM Employee WHERE designation IN('S' OR 'A');

b. SELECT * FROM Employee WHERE designation =('S' , 'A');

c. SELECT * FROM Employee WHERE designation =('S' OR 'A');

d. SELECT * FROM Employee WHERE designation IN('S' , 'A'); 

The correct answer is: SELECT * FROM Employee WHERE designation IN('S' , 'A');

Question Assume that table Project is created using the DDL statement given below and has no records. 
11                    CREATE TABLE Project( projectId VARCHAR2(4) CONSTRAINT proj_pk PRIMARY KEY, projectName
Partially correct VARCHAR2(10) DEFAULT 'NA' CONSTRAINT proj_nn NOT NULL); 
Mark 1 out of 1
Identify the INSERT statements which would successfully insert record into Project table. Choose two most
appropriate options.

Select one or more:


a. INSERT INTO project(projectName,projectId) VALUES('NA','P4' ); 

b. INSERT INTO project VALUES('P1');

c. INSERT INTO project(projectId) VALUES('P2');

d. INSERT INTO project(projectId,projectName) VALUES('P3', Null);

The correct answers are: INSERT INTO project(projectName,projectId) VALUES('NA','P4' );, INSERT INTO project(projectId)
VALUES('P2');

Question Given a table Projects, which of the following SQL queries will display records that contains Sub-String "SAP" any where in the
12 ProjectName ? Choose most appropriate option.
Correct
Select one:
Mark 1 out of 1
a. SELECT * FROM Projects WHERE ProjectName LIKE "%SAP%"; 

b. SELECT * FROM Projects WHERE ProjectName = '%SAP%';

c. SELECT * FROM Projects WHERE ProjectName LIKE '%SAP';


c. S C O ojects oject a e %S ;

d. SELECT * FROM Projects WHERE ProjectName LIKE 'SAP%';  sai Sampath Ghantasala .

The correct answer is: SELECT * FROM Projects WHERE ProjectName LIKE "%SAP%";

Question Identify the CORRECT SQL statement to create a Account table with composite primary key (AccountNumber, CustomerId).
13 Choose most appropriate option
Incorrect
Select one:
Mark 0 out of 1
a. CREATE TABLE Account (AccountNumber Number(5), CustomerId Number(10), OpeningDate Date, Balance
Number(10,2), CONSTRAINT Acc_Pkey COMPOSITE PRIMARY KEY (AccountNumber,CustomerId)); 

b. CREATE TABLE Account (AccountNumber Number(5) CONSTRAINT Acc_Pkey1 PRIMARY KEY, CustomerId Number(10)
CONSTRAINT Acc_Pkey2 PRIMARY KEY, OpeningDate Date, Balance Number(10,2));

c. CREATE TABLE Account (AccountNumber Number(5), CustomerId Number(10), OpeningDate Date, Balance
Number(10,2), CONSTRAINT Acc_Pkey PRIMARY KEY (AccountNumber,CustomerId));

d. CREATE TABLE Account (AccountNumber Number(5), CustomerId Number(10) CONSTRAINT Acc_Pkey2 PRIMARY KEY
(AccountNumber,CustomerId), OpeningDate Date, Balance Number(10,2));

Your answer is incorrect.


The correct answer is: CREATE TABLE Account (AccountNumber Number(5), CustomerId Number(10), OpeningDate Date,
Balance Number(10,2), CONSTRAINT Acc_Pkey PRIMARY KEY (AccountNumber,CustomerId));

Question Consider the tables given below.


14 Customer(customerId,customerName)
Book(bookId, bookName)
Correct
Purchase(purchaseId, bookId, customerId)
Mark 1 out of 1
 
bookId and customerId in purchase table are foreign keys referring to Book and Customer tables respectively.
 
Which is the CORRECT SQL statement to retrieve customer name and book name for all books purchased by customers.

Select one:

a. SELECT c.customerName,b.bookName
FROM customer c INNER JOIN purchase p
ON c.customerId=p.customerId
SELF JOIN book b
ON b.bookid=p.bookid;

b. SELECT c.customerName,b.bookName
FROM customer c INNER JOIN purchase p
INNER JOIN book b
ON b.bookid=p.bookid AND c.customerId=p.customerId;

c. SELECT c.customerName,b.bookName
FROM customer c INNER JOIN purchase p
ON c.customerId=p.customerId
INNER JOIN book b
ON b.bookid=p.bookid; 

d. SELECT c.customerName,b.bookName
FROM customer c INNER JOIN purchase p
ON c.customerId=p.customerId;

Your answer is correct.

The correct answer is: SELECT c.customerName,b.bookName


FROM customer c INNER JOIN purchase p
ON c.customerId=p.customerId
INNER JOIN book b
ON b.bookid=p.bookid;

Question Consider a table with the name Project is created using the SQL statement given below
15
15
CREATE TABLE Project(  sai Sampath Ghantasala .
Correct
projectid VARCHAR2(10) CONSTRAINT pkey PRIMARY KEY,
Mark 1 out of 1
projectname VARCHAR2(10) CONSTRAINT pnull NOT NULL,
employeecount NUMBER(2) DEFAULT 0);

Which of the following statements insert record successfully to the Project table [Choose 2]

Select one or more:


a. INSERT INTO project(projectid,projectname) VALUES('P2','Finance'); 

b. INSERT INTO project VALUES('P1','Finance';)

c. INSERT INTO project(projectid,employeecount) VALUES('P3',10);

d. INSERT INTO project VALUES('P1','Finance',20); 

Your answer is correct.

The correct answers are: INSERT INTO project VALUES('P1','Finance',20);, INSERT INTO project(projectid,projectname)
VALUES('P2','Finance');

Question What will be the output of the following Java code?


16 public class ApplicationTester
Correct {
public static void main(String[] args)
Mark 1 out of 1
{
int i;
for(i = 1; i <=3; i++);
{
System.out.println(i);
}
System.out.println(i);
}
}

Choose the most appropriate option.

Select one:
a. 3 will be displayed twice on the console

b. 4 will be displayed twice on the console 

c. 1 to 3 will be displayed on the console

d. 1 to 4 will be displayed on the console

The correct answer is: 4 will be displayed twice on the console

Question Identify the relationship between the class Patient and class Doctor which are given below.
17 public class Patient
Not answered {
private String name;
Marked out of 1
//getter and setter methods
}
public class Doctor
{
private String name;
private String specialization;
//getter and setter methods
public void treatPatient(Patient patient)
{
//valid Java code
}
}

Choose the most appropriate option.

Select one:
a. Composition

b. Aggregation

D d
c. Dependency
 sai Sampath Ghantasala .
d. No relationship exists between Doctor class and Patient class

The correct answer is: Dependency

Question Consider the Java code given below. How many times ";Hello "; will be printed when the code is executed?
18 public class ApplicationTester
Correct {
public static void main(String[] args)
Mark 1 out of 1
{
int i = 0;
do
{
System.out.println("Hello");
i++;
} while(i <= 1);
}
}

Choose the most appropriate option.

Select one:
a. 1 time

b. 3 times

c. 2 times 

d. Nothing will be printed

The correct answer is: 2 times

Question If Employee class is created inside com.test package, what could be the first line in class? Choose most appropriate option.
19
Select one:
Incorrect

Mark 0 out of 1 a. package com.test

b. package com.test.Employee 

c. packages com.test

d. class Employee{}

The correct answer is: package com.test

Question Consider the Java code given below. How many times "1" will be printed when the code is executed?
20 public class ApplicationTester
Correct {
public static void main(String[] args)
Mark 1 out of 1
{
int i = -1;
while( ++i <= 1)
{
System.out.println("1");
i++;
}
}
}

Choose the most appropriate option.

Select one:
a. 1 time 

b. 2 times

c. Nothing will be printed.

d. 3 times
 sai Sampath Ghantasala .

The correct answer is: 1 time

Question Which of the following statement/s is/are TRUE?


21 (1) Abstract method can have body
Incorrect (2) Abstract class cannot be instantiated
Mark 0 out of 1 (3) Abstract class can have constructor
Choose the most appropriate option.

Select one:
a. Both (2) and (3) are TRUE

b. Both (1) and (2) are TRUE

c. Only (2) is TRUE 

d. Both (1) and (3) are TRUE

The correct answer is: Both (2) and (3) are TRUE

Question What will be the output of the following Java code?


22 public class StringTester
Correct {
public static void main(String[] args)
Mark 1 out of 1
{
String player1 = new String ("virat kohli");
String player2 = new String("GAYLE");
player1.toUpperCase();
String newPlayer=player1.substring(6);
newPlayer = newPlayer + player2.toLowerCase();
System.out.println(newPlayer);
}
}

Choose the most appropriate option.

Select one:
a. kohligayle 

b. kohliGAYLE

c. KOHLIgayle

d. KOHLI gayle

The correct answer is: kohligayle

Question What will be the output of the following Java code?


23 public class BaseClass
Correct {
public static void method()
Mark 1 out of 1
{
System.out.println("1");
}
}
public class DerivedClass extends BaseClass
{
public static void method()
{
System.out.println("2");
}
}
public class ApplicationTester
{
public static void main(String[] args)
{
BaseClass ref = new DerivedClass();
ref method();
ref.method();
//Line-1
 sai Sampath Ghantasala .
}
}

Choose the most appropriate option.

Select one:
a. Compilation error at Line-1: Ambiguous method call 'ref.method()'

b. 2

c. Program will display both 1 and 2

d. 1 

The correct answer is: 1

Question What will be the output of the following Java code?


24 public class ApplicationTester
Correct {
public static void main(String[] args)
Mark 1 out of 1
{
int[] array = {11,22,33,44,55,11};
int searchNumber = 11, position=999;
for(int index=0; index < array.length; index++)
{
if(searchNumber == array[index])
{
position = index;
}
} System.out.println(position);
}
}

Choose the most appropriate option.

Select one:
a. 5 

b. 0

c. 6

d. 1

The correct answer is: 5

Question Which of the following statement(s) is/are FALSE?


25 (i) 'package ' statement can appear any where in the Java code
Correct (ii) In a Java code, only one 'import ' statement can be written
Mark 1 out of 1 Choose the most appropriate option.

Select one:
a. Both (i) and (ii) are FALSE 

b. Only (ii) is FALSE

c. Only (i) is FALSE

d. Both (i) and (ii) are TRUE

The correct answer is: Both (i) and (ii) are FALSE

Question Chaining What is the output for the below code ?


26 class A
Correct {
public A()
M k1 t f1
Mark 1 out of 1
{
System.out.print("A ");  sai Sampath Ghantasala .
}
public A(int i)
{
System.out.print(i+" ");
}
}
class B extends A
{
public B ()
{
super();
System.out.print("B ");
}

public B (int i)
{
super(i);
System.out.print(i+3+" ");
}
}

public class Test


{
public static void main (String[] args)
{
new B(5);
}
}

Choose most appropriate option.

Select one:
a. A B 5

b. A B 8

c. 5 8 

d. B 8 A 5

The correct answer is: 5 8

Question Accenture developed a Java based Application (Vendor Management System) for New Codington city. The product was
27 delivered to New Codington after successful testing on Windows platform. New Codington wants to run the application on
their desktop which has Linux platform. What are the MINIMUM resources needed to successfully run the application? Choose
Incorrect
the most appropriate option.
Mark 0 out of 1

Select one:
a. JDK on Windows

b. JVM on Linux

c. JVM on Windows

d. JDK on Linux 

The correct answer is: JVM on Linux

Question What will be the output of the following Java code?


28 public class MyClass
Correct {
private static int data;
Mark 1 out of 1
static
{
MyClass.data = 999;
}
public static int getData()
{
return data;
}
public static void setData(int data)
{
MyClass.data = data;
}  sai Sampath Ghantasala .
}
public class ApplicationTester
{
public static void main(String[] args)
{
MyClass ref1 = new MyClass();
MyClass ref2 = new MyClass();
System.out.print(ref1.getData());
ref2.setData(111);
System.out.println(" " + ref1.getData());
}
}

Choose the most appropriate option.

Select one:
a. 999 111 

b. 0 111

c. 111 111

d. 999 999

The correct answer is: 999 111

Question What will be the output of the following Java code?


29
Correct public class MyClass
{
Mark 1 out of 1
public static void main (String[] args)
{
int value1=33;
int value2=--value1;
int value3=value1++;
System.out.println(value1+" "+value2+" "+value3);
}
}

Choose the most appropriate option.

Select one:
a. 32 33 32

b. 32 32 33

c. 33 32 32 

d. 32 32 32

The correct answer is: 33 32 32

Question Analyse the following pseudo code and identify the CORRECT output. 
30 Note: Assume that the input given for Basic is 12000 and Allowances is 3000 
Correct
1. input Basic, Allowances 
Mark 1 out of 1
2. Gross_Salary= Basic + Allowances 
3. if (Gross_Salary > 10000) then 
4. Tax = 0.1 * Gross_Salary 

5. Net_Salary = Gross_Salary - Tax 


6. else 
7. Net_Salary = Gross_Salary 

8. end-if 
9. display Net_Salary 
Choose the most appropriate option.

Select one:
a. 14985
 sai Sampath Ghantasala .
b. 14000

c. 15000

d. 13500 

The correct answer is: 13500

Question Consider the Java code given below. After the execution of the code what will be the content of "array2 "?
31 public class Tester
Correct {
public static void main(String[] args)
Mark 1 out of 1
{
int array1[] = {71,12,23,34};
int array2[] = new int[4];
int count = 0;
for (int i = 0; i < array2.length; i++)
{
if(array1[i]%2==0)
{
array2[count]=array1[i];
count++;
}
}
}
}

Choose the most appropriate option.

Select one:
a. 0 0 12 34

b. 12 34

c. 12 34 0 0 

d. 12 0 34 0

The correct answer is: 12 34 0 0

Question Predict the line of code


32 Abstract class Base1
Correct {
protected void getDetails()
Mark 1 out of 1
{
System.out.println("Base method");
}
public Abstract void demomethod();
}
Abstract class Base2 extends Base1
{
public Abstract void samplemethod();
}
class Derived extends Base2
{
//Line1
}

Select one:
a. Error: abstract class can't extends other abstract class

b. none of the option

c. only "samplemethod" need to overried in Dervied class

d. Derived class need to override both "samplemethod" and "demomethod" 

The correct answer is: Derived class need to override both "samplemethod" and "demomethod"
 sai Sampath Ghantasala .

Question What will be the output of the following Java code?


33 public class ApplicationTester
Correct {
public static void main(String[] args)
Mark 1 out of 1
{
for(int i=0; i<=10; i++)
{
if(i>6)
break;
}
System.out.println(i); //Line-1
}
}

Choose most appropriate option.

Select one:
a. 5

b. Compilation error at Line-1: i cannot be resolved to a variable 

c. 6

d. null

The correct answer is: Compilation error at Line-1: i cannot be resolved to a variable

Question Given the below code. What is output ?


34 class Currency
Correct {
private String country = "Canada";
Mark 1 out of 1
public String getC()
{
return country;
}
}
class JapeneseYen extends Currency
{
public String getC()
{
return super.country; //Line 12
}
}
public class AustralianDollar extends Currency
{
public String getC(int x)
{
return super.getC();
}
public static void main(String[] args)
{
System.out.print(new JapeneseYen().getC() + " " + new AustralianDollar().getC());
}
}

Choose most appropriate option.

Select one:
a. Canada null

b. null Canada

c. null null

d. Compilation fails due to an error on line 12 ";country is not visible ";. 

e. Canada Canada

The correct answer is: Compilation fails due to an error on line 12 ";country is not visible ";.

Question What will be the output of the following Java code?


35
35 public class Account
 sai Sampath Ghantasala .
Correct {
public void deposite(int amount)
Mark 1 out of 1
{
System.out.println("Account deposited with: " + amount);
}
public void transaction()
{
this.deposite(100);
}
}
public class SavingsAccount extends Account
{
public void deposite(int amount)
{
System.out.println("Savings Account deposited with: " + amount);
}
}
public class ApplicationTester
{
public static void main(String[] args)
{
Account account = new SavingsAccount();
account.transaction();
}
}

Choose the most appropriate option.

Select one:
a. Savings Account deposited with: 100 

b. Account deposited with: 100

c. Savings Account deposited with: 0

d. Account deposited with: 0

The correct answer is: Savings Account deposited with: 100

Question What will be the output of the following Java code?


36 class Test extends Throwable { }
Correct class Base extends Test {}
public class Main {
Mark 1 out of 1
public static void main(String args[]) {
try {
throw new Base();
}
catch(Test t) {
System.out.println("Test Exception");
}
finally {
System.out.println("Finally block ");
}
}
}

Select one:
a. Compilation error: Test Class cant extends Throwable

b. print - "Test Exception" "Finally block " 

c. Compilation error : Base class can't extends Test

d. print-"Test Exception"

The correct answer is: print - "Test Exception" "Finally block "

Question which of the following code creates a list box from which user can select more than one option?
37
Select one:
Incorrect
l l iV l b /
Mark 0 out of 1 a. <select type=multiValue><br />
 <option> P </option><br />  sai Sampath Ghantasala .
 <option> G </option><br />
 <option> S </option><br />
</select> 

b. <select type=multiple><br />


 <option> P </option><br />
 <option> G </option><br />
 <option> S </option><br />
</select>

c. <select name='type' multiple><br />


 <option> P </option><br />
 <option> G </option><br />
 <option> S </option><br />
</select>

d. <select name='type' multiValue><br />


 <option> P </option><br />
 <option> G </option><br />
 <option> S </option><br />
</select>

Your answer is incorrect.

The correct answer is: <select name='type' multiple><br />


 <option> P </option><br />
 <option> G </option><br />
 <option> S </option><br />
</select>

Question 'link', 'vlink' and 'alink' are attributes of which HTML tag?
38
Incorrect
Choose the most appropriate option.
Mark 0 out of 1

Select one:
a. <img>

b. <a> 

c. <head>

d. <body>

Your answer is incorrect.

The correct answer is: <body>

Question Which of the following attribute is used by a HTML tag to apply inline style? Choose most appropriate option.
39
Select one:
Correct

Mark 1 out of 1 a. class

b. style 

c. id

d. styleclass

Your answer is correct.


The correct answer is: style

Question Refer to the below code:


40 <script>
Correct function helloMessage(){
var jsName = //Line1 alert('Hello '+jsName+' !')
Mark 1 out of 1
Mark 1 out of 1
}
</script>  sai Sampath Ghantasala .
<form>
Enter First Name : <input type="text" name="firstName" id="first"><br>
<input type="button" value="Click Here!" onclick="helloMessage()">
</form>

Which is the CORRECT code to be inserted at "Line1" to make the JavaScript run properly? Choose most appropriate option

Select one:
a. document.getElementByName('first').value;

b. document.getElement('first').value;

c. document.getElementById.first.value;

d. document.getElementById('first').value; 

The correct answer is: document.getElementById('first').value;

Question Which attribute of the form specifies the name of the web page on the server which will process the form after submission?
41 Choose most appropriate option.

Correct
Select one:
Mark 1 out of 1
a. action 

b. name

c. url

d. method

The correct answer is: action

Question Identify the CORRECT statements with respect to CSS.


42 a) CSS is used for giving style for HTML content
Correct b) External style sheet can be used only for one HTML page in a website
Mark 1 out of 1 Choose most appropriate option.

Select one:
a. only b

b. neither a nor b

c. both a and b

d. only a 

The correct answer is: only a

Question Which of the following statements is TRUE for CSS?


43 A. An external style sheet is ideal when the style is applied to many pages
Correct B. An inline style created for a html tag can be reused for other tags in same page.
Mark 1 out of 1 Choose most appropriate option.

Select one:
a. Only B

b. Only A 

c. Both A and B

d. Neither A nor B

Th t i O l A
The correct answer is: Only A
 sai Sampath Ghantasala .

Question Refer the incomplete HTML Code given below


44 <table border="2" _______=10>
Correct <tr> <th>Employee Name</th>
<th>Department</th> </tr>
Mark 1 out of 1
<tr> <td>Jack</td>
<td>LKM</td> </tr>
<tr> <td>Ace</td><td>Delivery</td> </tr>
</table>

Identify the appropriate option to be placed in the spaceso that for each cell, there will be a space between the cell border and
its respective content Choose most appropriate option.

Select one:
a. cellpadding 

b. colspan

c. colspace

d. cellspacing

The correct answer is: cellpadding

Question Refer the incomplete HTML code given below.


45 <input type="text" name="firstname" ___Blank1___ = "5" />
Correct
It is required to restrict the maximum number of characters being entered in the above text box to 5. From the given option,
Mark 1 out of 1
identify the CORRECT option which can replace "___Blank1___" to meet the above requirement. Choose most appropriate
option.

Select one:
a. maxlength 

b. maxsize

c. size

d. length

The correct answer is: maxlength

Question What would be the output of the following Java Script?


46 <html>
Correct <body>
<script>
Mark 1 out of 1
var key1=1; document.write(typeof(key1) + " ");
var key2=null; document.write(typeof(key2));
</script>
</body>
</html>

Choose most appropriate option.

Select one:
a. number object 

b. number undefined

c. int undefined

d. int object

The correct answer is: number object

Question
Question <!DOCTYPE html>
47 <html>  sai Sampath Ghantasala .
Correct
<body>
<script>
Mark 1 out of 1
var x = (3 + 3) + 4 + "6"; alert(x);//line 1
</script>
</body>
</html>

What will be printed in alert box in line 1? Choose most appropriate option.

Select one:
a. 3346

b. 646

c. 106 

d. 16

The correct answer is: 106

Question Consider the HTML code given below.


48
Correct
<html>
Mark 1 out of 1
  <head>

    <script>
      var key=10;

      function add(){

        var key=20;


        window.key=key+1;

        document.write(key);

        document.write(" ");


        print();

      }

      function print(){

        document.write(key);
      }

    </script>

  </head>
  <body>

    <form>

      <input type="submit" onclick="add()" />


    </form>

  </body>

</html>
 

What will be displayed after executing the above code?

Choose the most appropriate option.

Select one:
a. 11 10

b. 11 11

c. 21 21

d. 20 21 

Your answer is correct.

The correct answer is: 20 21


 sai Sampath Ghantasala .
Question What would be the output of the Javascript code given below?
49
Correct
<html>
Mark 1 out of 1
<body>

<script>

 var num1=100;

 function test(){
    num2=200;

    var num1=300;

    num1=num2;
 }

 test();

 document.write(num1 +"-"+num2);
 </script>

</body>

</html>

Select one:

a. 300-100

b. 200-200

c. 100-200 

d. 300-200

Your answer is correct.

The correct answer is: 100-200

Question How many cells will be created after executing the below HTML code?
50
Correct
<html>
Mark 1 out of 1
<body>

<table border="1">
<tr> <td colspan="3"> Jack </td> </tr>

<tr> <td colspan="2"> Tom </td> <td> Mark </td> </tr>

<tr> <td rowspan="2"> John</td> <td> James</td> <td>Mary</td> </tr>

<tr> <td> Helen</td> <td> Sam </td>  </tr>


</table>

</body>

</html>

Select one:
a. 10

b. 9

c. 8 

d. 7

Your answer is correct.


The correct answer is: 8
 sai Sampath Ghantasala .

 Dashboard / Nobles Mock 1 - Quiz / Quiz / Quiz

Started on Friday, 5 June 2020, 6:00 PM


State Finished
Completed on Friday, 5 June 2020, 7:08 PM
Time taken 1 hour 7 mins
Grade 39 out of 50 (78%)

Question The employee table contains EmployeeNumber, EmployeeName, Salary and DeptCode Columns. Which is the CORRECT SQL
1 query to display DeptCode and average salary of each department? Choose most appropriate option.

Correct
Select one:
Mark 1 out of 1
a. SELECT DeptCode,avg(salary) FROM Employee GROUP BY EmployeeNumber;

b. SELECT DeptCode,avg(salary) FROM Employee GROUP BY Salary;

c. SELECT DeptCode,avg(salary) FROM Employee GROUP BY DeptCode; 

d. SELECT DeptCode,avg(salary) FROM Employee;

The correct answer is: SELECT DeptCode,avg(salary) FROM Employee GROUP BY DeptCode;

Question Identify the CORRECT SQL statement(s) to remove ONLY the data from "Employee" table?
2 (i) DROP TABLE Employee;
Correct (ii) DELETE FROM Employee;
Mark 1 out of 1 (iii) TRUNCATE TABLE Employee;
Choose most appropriate option.

Select one:
a. (i), (ii) and (iii)

b. Both (ii) and (iii) 

c. Both (i) and (ii)

d. Both (i) and (iii)

The correct answer is: Both (ii) and (iii)

Question Which is the CORRECT SQL statement to add the new column "DateOfJoining" to an existing table "Employee"? Choose most
3 appropriate option.

Correct
Select one:
Mark 1 out of 1
a. ALTER TABLE Employee MODIFY DateOfJoining DATE;

b. ALTER TABLE Employee UPDATE DateOfJoining DATE;

c. ALTER TABLE Employee ADD DateOfJoining DATE; 

d. CREATE TABLE Employee ADD DateOfJoining DATE;

The correct answer is: ALTER TABLE Employee ADD DateOfJoining DATE;

Question Which of the following statement(s) is/are TRUE?


4 (i) In a non-correlated(independent) subquery, the subquery is always executed only once.
Incorrect (ii) In a non-correlated(independent) subquery, the inner query (sub query) references the column from the outer query (main
Mark 0 out of 1 query).
Choose most appropriate option
 sai Sampath Ghantasala .
Select one:
a. Only (i)

b. Only (ii)

c. Both (i) and (ii) 

d. Neither (i) nor (ii)

The correct answer is: Only (i)

Question Identify the CORRECT SQL statement to create a table with composite primary key. Choose most appropriate option.
5
Select one:
Correct

Mark 1 out of 1 a. CREATE TABLE Account (AccountNumber Number(5) CONSTRAINT Acc_Pkey1 PRIMARY KEY, CustomerId Number(10)
CONSTRAINT Acc_Pkey2 PRIMARY KEY, OpeningDate Date, Balance Number(10,2));

b. CREATE TABLE Account (AccountNumber Number(5), CustomerId Number(10) CONSTRAINT Acc_Pkey2 PRIMARY KEY
(AccountNumber,CustomerId), OpeningDate Date, Balance Number(10,2));

c. CREATE TABLE Account (AccountNumber Number(5), CustomerId Number(10), OpeningDate Date, Balance
Number(10,2), CONSTRAINT Acc_Pkey PRIMARY KEY (AccountNumber,CustomerId)); 

d. CREATE TABLE Account (AccountNumber Number(5), CustomerId Number(10), OpeningDate Date, Balance
Number(10,2), CONSTRAINT Acc_Pkey COMPOSITE PRIMARY KEY (AccountNumber,CustomerId));

The correct answer is: CREATE TABLE Account (AccountNumber Number(5), CustomerId Number(10), OpeningDate Date,
Balance Number(10,2), CONSTRAINT Acc_Pkey PRIMARY KEY (AccountNumber,CustomerId));

Question Which of the following SQL commands is used to remove table "EMPLOYEE" present in the database? Choose most
6 appropriate option.

Correct
Select one:
Mark 1 out of 1
a. DELETE TABLE EMPLOYEE;

b. DROP TABLE EMPLOYEE; 

c. REMOVE TABLE EMPLOYEE;

d. TRUNCATE TABLE EMPLOYEE;

The correct answer is: DROP TABLE EMPLOYEE;

Question which command help us to get back the permission of accessing the table.
7
Select one:
Incorrect

Mark 0 out of 1 a. revoke

b. rollback

c. grant 

d. commit

The correct answer is: revoke

Question State True/False?


8 The names of the foreign key field and the referenced field(in parent table) may be same or different, but must have the same
Correct
data type.
Mark 1 out of 1

Select one:
a. True 
 sai Sampath Ghantasala .
b. False

The correct answer is: True

Question Given a table Projects, which of the following SQL queries will display records that contains Sub-String "SAP" any where in the
9 ProjectName ? Choose most appropriate option.

Correct
Select one:
Mark 1 out of 1
a. SELECT * FROM Projects WHERE ProjectName LIKE '%SAP';

b. SELECT * FROM Projects WHERE ProjectName LIKE 'SAP%';

c. SELECT * FROM Projects WHERE ProjectName = '%SAP%';

d. SELECT * FROM Projects WHERE ProjectName LIKE "%SAP%"; 

The correct answer is: SELECT * FROM Projects WHERE ProjectName LIKE "%SAP%";

Question Consider the table Products(pid,pname,pcost). Identify the appropriate SQL statement to rename the table to ProductsInfo .
10 Choose most appropriate option.

Incorrect
Select one:
Mark 0 out of 1
a. ALTER TABLE Products UPDATE TO ProductsInfo;

b. ALTER TABLE Products RENAME ProductsInfo; 

c. ALTER TABLE RENAME Products TO ProductsInfo;

d. ALTER TABLE Products RENAME TO ProductsInfo;

The correct answer is: ALTER TABLE Products RENAME TO ProductsInfo;

Question Consider the table Projects, has following records. 


11 ProjectId       Start_date 
Correct
--------------- ---------------- 
Mark 1 out of 1
100                 12-Jan-2017 

Which of the following SQL statement retrieve the output as follows? 


Start_date 

-----------------
 JAN, 12-2017
 Choose most appropriate option.

Select one:
a. SELECT TO_CHAR(Start_date,'MON, DD-YYYY') FROM Projects; 

b. SELECT TO_DATE(Start_date,'MON, DD-YYYY') FROM Projects;

c. SELECT TO_CHAR(Start_date,'MMM, DD-YYYY') FROM Projects;

d. SELECT TO_DATE(Start_date,'MMM, DD-YYYY') FROM Projects;

The correct answer is: SELECT TO_CHAR(Start_date,'MON, DD-YYYY') FROM Projects;

Question Consider the table Employee(empid, empname, designation). Identify the appropriate SQL statement to retrieve all employees
12 whose designation is either 'S or 'A'. Choose most appropriate option.

Correct
Select one:
Mark 1 out of 1
a. SELECT * FROM Employee WHERE designation =('S' , 'A');
b. SELECT * FROM Employee WHERE designation IN('S' , 'A'); 
 sai Sampath Ghantasala .
c. SELECT * FROM Employee WHERE designation IN('S' OR 'A');

d. SELECT * FROM Employee WHERE designation =('S' OR 'A');

The correct answer is: SELECT * FROM Employee WHERE designation IN('S' , 'A');

Question Consider the following tables:


13 Vendor (VendorId, VendorName, PhoneNumber). Here VendorId is the primary key.
Item (ItemCode, UnitPrice, QuantityOnHand, VendorId) Here ItemCode is the primary key and VendorId is the foreign key
Correct
referencing the VendorId in Vendor Table.
Mark 1 out of 1
 
Which is the CORRECT SQL query to display ItemCode, UnitPrice, VendorName for all Items. It should also display the details
of the Item which is not having any vendor?
Choose most appropriate option

Select one:
a. SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName FROM Item INNER JOIN Vendor ON Item.VendorId =
Vendor.VendorId;

b. SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName FROM Item LEFT OUTER JOIN Vendor ON Item.VendorId =


Vendor.VendorId; 

c. SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName FROM Item, Vendor WHERE Item.VendorId =


Vendor.VendorId;

d. SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName FROM Item INNER JOIN Vendor ON Item.VendorId =


Vendor.VendorId AND Item.VendorId IS NULL;

Your answer is correct.


The correct answer is: SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName FROM Item LEFT OUTER JOIN Vendor ON
Item.VendorId = Vendor.VendorId;

Question Consider the below tables.


14 Event(eventId,eventName) – eventId is primary key
Employee(empId, empName, eventId) – empId is primary key and eventId is foreign key referring to Event table.
Incorrect
Identify the correct SQL statement to retrieve empid, empname and eventName for all employees. If employee has not
Mark 0 out of 1
registered for an event then it should display ‘Not Registered’.

Select one:
a. SELECT e1.empId, e1.empName, NVL(e2.eventName,'Not Registered') FROM event e2 INNER JOIN employee e1 ON
e2.eventId=e1.eventId; 

b. SELECT e1.empId, e1.empName, NVL(e2.eventName,'Not Registered') FROM employee e1 LEFT OUTER JOIN event e2
ON e1.eventId=e2.eventId;

c. SELECT e1.empId, e1.empName, NVL(e2.eventName,'Not Registered') FROM employee e1 RIGHT OUTER JOIN event e2
ON e1.eventId=e2.eventId;

d. SELECT e1.empId, e1.empName, NVL(e2.eventName,'Not Registered') FROM event e2 LEFT OUTER JOIN employee e1
ON e2.eventId=e1.eventId;

Your answer is incorrect.


The correct answer is: SELECT e1.empId, e1.empName, NVL(e2.eventName,'Not Registered') FROM employee e1 LEFT OUTER
JOIN event e2 ON e1.eventId=e2.eventId;

Question Consider Project table given below.


15 PROJECTID   EMPLOYEEID
Incorrect
---------------   -------------------
Mark 0 out of 1
         1                   10
         2                   11

         1                   13

Id tif th t SQL t t t t di l th j tId hi h h th l


Identify the correct SQL statement to display the projectId which has more than one employee.
 sai Sampath Ghantasala .
Select one:
a. SELECT DISTINCT projectid FROM project WHERE projectid IN( SELECT projectid FROM project WHERE
COUNT(employeeId)>1); 

b. SELECT DISTINCT projectid FROM project WHERE projectid IN( SELECT projectid FROM project GROUP BY projectid
WHERE COUNT(employeeId)>1);

c. SELECT DISTINCT projectid FROM project WHERE projectid IN( SELECT projectid FROM project HAVING
COUNT(employeeId)>1);

d. SELECT DISTINCT projectid FROM project WHERE projectid IN( SELECT projectid FROM project GROUP BY projectid
HAVING COUNT(employeeId)>1);

Your answer is incorrect.

The correct answer is: SELECT DISTINCT projectid FROM project WHERE projectid IN( SELECT projectid FROM project GROUP
BY projectid HAVING COUNT(employeeId)>1);

Question What will be the output of the following Java code?


16 public class ApplicationTester
Correct {
public static void main(String[] args)
Mark 1 out of 1
{
int i=10;
while(++i<15)
{
System.out.print(i + " ");
}
}
}

Choose the most appropriate option.

Select one:

a. 10 11 12 13 14

b. 15

c. 11 12 13 14 

d. 14

The correct answer is: 11 12 13 14

Question Which of the following statement/s is/are TRUE?


17 (1) Abstract method can have body
Correct (2) Abstract class cannot be instantiated
Mark 1 out of 1 (3) Abstract class can have constructor
Choose the most appropriate option.

Select one:
a. Both (1) and (3) are TRUE

b. Both (1) and (2) are TRUE

c. Both (2) and (3) are TRUE 

d. Only (2) is TRUE

The correct answer is: Both (2) and (3) are TRUE

Question What will be the output of the following Java code?


18 public class Employee
Correct {
private static int count; static
Mark 1 out of 1
Mark 1 out of 1
{
Employee.count = 101;  sai Sampath Ghantasala .
}
public Employee()
{
Employee.count = 201;
}
public static int getCount()
{
return Employee.count;
}
}
public class ApplicationTester
{
public static void main(String[] args)
{
Employee emp = new Employee();
System.out.println(emp.getCount());
}
}

Choose the most appropriate option.

Select one:
a. 201 

b. 0

c. null

d. 101

The correct answer is: 201

Question What will be the output of the following Java code?


19 class StringSample
Correct {
public StringSample(String string)
Mark 1 out of 1
{
System.out.println("The string is " + string);
}
}
public class ConstructorTester1
{
public static void main(String[] args)
{
StringSample stringSample = new StringSample();
StringSample stringSample1 = new StringSample("Test String");
}
}

Choose the most appropriate option.

Select one:
a. The string is Test String

b. Compilation Error: The constructor StringSample() is undefined 

c. The string is null The string is Test String

d. The string is null

The correct answer is: Compilation Error: The constructor StringSample() is undefined

Question Consider the Java code given below. How many times "1" will be printed when the code is executed?
20 public class ApplicationTester
Correct {
public static void main(String[] args)
Mark 1 out of 1
{
int i = -1;
while( ++i <= 1)
{
System.out.println("1");
i++;
}  sai Sampath Ghantasala .
}
}

Choose the most appropriate option.

Select one:
a. Nothing will be printed.

b. 2 times

c. 3 times

d. 1 time 

The correct answer is: 1 time

Question What will be the output of the following Java code?


21 public class ApplicationTester
Correct {
public static void main(String[] args)
Mark 1 out of 1
{
int i=0;
for(i=0; i<10; i++)
{
if(i == 5)
{
continue;
}
i++;
System.out.print(i + " ");
}
}
}

Choose the most appropriate option.

Select one:
a. 1 3 5 7 9 

b. 1 2 3 4 6 7 8 9

c. 1 2 3 4 5 6 7 8 9

d. 1 2 3 4 and then program will get into infinite loop

The correct answer is: 1 3 5 7 9

Question What will be the output of the following Java code?


22 public class ApplicationTester
Correct {
public static void main(String[] args)
Mark 1 out of 1
{
int i;
for(i = 1; i <=3; i++);
{
System.out.println(i);
}
System.out.println(i);
}
}

Choose the most appropriate option.

Select one:
a. 1 to 3 will be displayed on the console

b. 3 will be displayed twice on the console

c. 1 to 4 will be displayed on the console

d. 4 will be displayed twice on the console 


 sai Sampath Ghantasala .
The correct answer is: 4 will be displayed twice on the console

Question What will be the output of the following Java code?


23 public class ApplicationTester
Incorrect {
public static void main(String[] args)
Mark 0 out of 1
{
int[] array = {11,22,33,44,55,11};
int searchNumber = 11, position=999;
for(int index=0; index < array.length; index++)
{
if(searchNumber == array[index])
{
position = index;
}
} System.out.println(position);
}
}

Choose the most appropriate option.

Select one:
a. 6

b. 1

c. 5

d. 0 

The correct answer is: 5

Question What will be the output of the following Java code?


24 public class Vehicle
Correct {
protected String enginePower;
Mark 1 out of 1
public Vehicle()
{
this.enginePower = "100CC";
}
public String getEnginePower()
{
return this.enginePower;
}
}
public class PassengerVehicle extends Vehicle
{
private int capacity;
public PassengerVehicle()
{
this.capacity = 50;
this.enginePower = "150CC";
}
public int getCapacity()
{
return this.capacity;
}
}
public class ApplicationTester
{
public static void main(String[] args)
{
Vehicle vehicle = new PassengerVehicle();
System.out.println(vehicle.getEnginePower());
}
}

Choose the most appropriate option.

Select one:
a. 100CC

b. 150CC 
c. null
 sai Sampath Ghantasala .
d. 100CC150CC

The correct answer is: 150CC

Question Consider the Java code given below. After the execution of the code what will be the content of "array2 "?
25 public class Tester
Correct {
public static void main(String[] args)
Mark 1 out of 1
{
int array1[] = {71,12,23,34};
int array2[] = new int[4];
int count = 0;
for (int i = 0; i < array2.length; i++)
{
if(array1[i]%2==0)
{
array2[count]=array1[i];
count++;
}
}
}
}

Choose the most appropriate option.

Select one:
a. 12 34 0 0 

b. 12 34

c. 12 0 34 0

d. 0 0 12 34

The correct answer is: 12 34 0 0

Question What will be the output of the following Java code?


26 class Event
Not answered {
static int eventId;
Marked out of 1
public static void main(String[] args)
{
Event e1=new Event();
e1.eventId=100;
Event e2=e1; e2.eventId=200;
Event e3=new Event();
System.out.println(e1.eventId+ " "+ e2.eventId + " "+ e3.eventId);
}
}

Choose the most appropriate option.

Select one:
a. 200 200 200

b. 100 100 100

c. 100 200 200

d. 100 200 0

The correct answer is: 200 200 200

Question Predict the line of code


27 Abstract class Base1
Correct {
protected void getDetails()
Mark 1 out of 1
Mark 1 out of 1
{
System.out.println("Base method");  sai Sampath Ghantasala .
}
public Abstract void demomethod();
}
Abstract class Base2 extends Base1
{
public Abstract void samplemethod();
}
class Derived extends Base2
{
//Line1
}

Select one:
a. Derived class need to override both "samplemethod" and "demomethod" 

b. only "samplemethod" need to overried in Dervied class

c. Error: abstract class can't extends other abstract class

d. none of the option

The correct answer is: Derived class need to override both "samplemethod" and "demomethod"

Question What will be the output of the following Java code?


28 public class LocalVariableTester
Correct {
public static void main(String[] args)
Mark 1 out of 1
{
int data1=8, data2;
if(data1 >= 10)
{
data2 = 20;
}
System.out.println(data1 + " " + data2);
}
}

Choose the most appropriate option

Select one:
a. 10 null

b. 10 0

c. Compilation error: The local variable 'data2' may not have been initialized 

d. 10 20

The correct answer is: Compilation error: The local variable 'data2' may not have been initialized

Question What will be the output of the following Java code?


29 public class BaseClass
Correct {
public static void method()
Mark 1 out of 1
{
System.out.println("1");
}
}
public class DerivedClass extends BaseClass
{
public static void method()
{
System.out.println("2");
}
}
public class ApplicationTester
{
public static void main(String[] args)
{
BaseClass ref = new DerivedClass();
ref.method();
//Line-1  sai Sampath Ghantasala .
}
}

Choose the most appropriate option.

Select one:
a. Program will display both 1 and 2

b. 1 

c. 2

d. Compilation error at Line-1: Ambiguous method call 'ref.method()'

The correct answer is: 1

Question What will be the output of the following Java code?


30
Correct public class MyClass
{
Mark 1 out of 1
public static void main (String[] args)
{
int value1=33;
int value2=--value1;
int value3=value1++;
System.out.println(value1+" "+value2+" "+value3);
}
}

Choose the most appropriate option.

Select one:
a. 32 32 32

b. 32 33 32

c. 32 32 33

d. 33 32 32 

The correct answer is: 33 32 32

Question What will be the output of the following Java code?


31 public class Employee
Correct {
private static int employeeCount;
Mark 1 out of 1
public Employee()
{
employeeCount++;
//Line-1
}
public static int getEmployeeCount()
{
return Employee.employeeCount;
}
}
public class StaticTester
{
public static void main(String[] args)
{
Employee emp1 = new Employee();
Employee emp2 = new Employee();
Employee emp3 = new Employee();
System.out.println(Employee.getEmployeeCount());
}
}

Choose the most appropriate option.

Select one:
a. 3 
b. 0  sai Sampath Ghantasala .
c. 1

d. Compilation error at Line-1: Cannot use static member 'employeeCount' in a non-static context

The correct answer is: 3

Question What is the output of the below code?


32 public class Calculator
Correct {
public static void main(String[] args)
Mark 1 out of 1
{
int result = 0;
Calculator calculator = new Calculator();
calculator.add(10, 20, result);
System.out.println("Result : " + result);
}
public void add(int num1, int num2, int result)
{
result = num1 + num2;
}
}

Choose the most appropriate option.

Select one:

a. Result : null

b. Result : 30

c. Result: 20

d. Result : 0 

The correct answer is: Result : 0

Question What will be the output of the following Java code?


33
Correct public class ApplicationTester
{
Mark 1 out of 1
public static void main(String[] args)
{
int[] array = {-9,-11-8,-100,-78};
int minimum = 0;
for(int index=0; index < array.length; index++)
{
if(minimum < array[index])
{ minimum = array[index];
}
}
System.out.println(minimum);
}
}

Choose the most appropriate option.

Select one:
a. -100

b. -8

c. 0 

d. null

The correct answer is: 0

Question What will be the output of the following Java code?


34
34 Employee.java public class Employee
Correct {  sai Sampath Ghantasala .
private double salary;
Mark 1 out of 1
public Employee()
{
this.salary = 10000.0;
}
public static void updateSalary(Employee emp)
{
emp.salary = emp.salary + 10000.0;
//Line-1
}
public double getSalary()
{
return this.salary;
}
}
ApplicationTester .java public class ApplicationTester
{
public static void main(String[] args)
{
Employee emp1 = new Employee();
Employee emp2 = new Employee();
Employee.updateSalary(emp1);
System.out.println(emp1.getSalary() + " " + emp2.getSalary());
}
}

Choose the most appropriate option.

Select one:
a. 0.0 10000.0

b. 20000.0 10000.0 

c. 10000.0 10000.0

d. Compilation error at Line-1: Cannot 'emp.salary' in a static context

The correct answer is: 20000.0 10000.0

Question What will be the output of the following Java code?


35 public class ApplicationTester
Correct {
public static void main(String[] args)
Mark 1 out of 1
{
for(int i=0; i<=10; i++)
{
if(i>6)
break;
}
System.out.println(i); //Line-1
}
}

Choose most appropriate option.

Select one:
a. 6

b. null

c. 5

d. Compilation error at Line-1: i cannot be resolved to a variable 

The correct answer is: Compilation error at Line-1: i cannot be resolved to a variable

Question What will be the output of the following Java code?


36 public class Account
Correct {
public void deposite(int amount)
Mark 1 out of 1
{
System.out.println("Account deposited with: " + amount);
}
public void transaction()  sai Sampath Ghantasala .
{
this.deposite(100);
}
}
public class SavingsAccount extends Account
{
public void deposite(int amount)
{
System.out.println("Savings Account deposited with: " + amount);
}
}
public class ApplicationTester
{
public static void main(String[] args)
{
Account account = new SavingsAccount();
account.transaction();
}
}

Choose the most appropriate option.

Select one:
a. Account deposited with: 100

b. Savings Account deposited with: 100 

c. Savings Account deposited with: 0

d. Account deposited with: 0

The correct answer is: Savings Account deposited with: 100

Question which of the following is block level html tags?


37
Select one:
Correct

Mark 1 out of 1 a. <b>

b. <i>

c. <h6> 

d. <a>

Your answer is correct.

The correct answer is: <h6>

Question 'link', 'vlink' and 'alink' are attributes of which HTML tag?
38
Incorrect
Choose the most appropriate option.
Mark 0 out of 1

Select one:
a. <img>

b. <body>

c. <head>

d. <a> 

Your answer is incorrect.


The correct answer is: <body>

Question Assume abc.html is existing and a valid HTML page. Refer the code below:
39 <form action="abc.html">
Incorrect First Name: <input type="text"/><br/>
Incorrect st a e: put type te t b
Last Name: <input type="text"/><br/>
Mark 0 out of 1
Password: <input type="hidden"/><br/>  sai Sampath Ghantasala .
<input type="submit" value="Submit"/>
<form>

How many HTML controls will be displayed on the browser, when the above page is run on browser? Choose most appropriate
option

Select one:
a. 5

b. 4 

c. 7

d. 3

The correct answer is: 3

Question Johana wants to display "Welcome to JS!!" as a pop up message using JavaScript. Which of the following suits her
40 requirement?

Correct
Select one:
Mark 1 out of 1
a. alertmsg("Welcome to JS!!");

b. alert("Welcome to JS!!"); 

c. alert(Welcome to JS!!);

d. alertBox("Welcome to JS!!");

The correct answer is: alert("Welcome to JS!!");

Question In HTML, Which of the following is used to merge columns in a table? Choose most appropriate option.
41
Select one:
Correct

Mark 1 out of 1 a. columnspan

b. columns-span

c. colspan 

d. cspan

The correct answer is: colspan

Question What would be the Output of the below java script Code?
42 <html> <body>
Correct <script>
var x = 5; var d = (x != "5");
Mark 1 out of 1
document.write(d +"--");
d = (x === "5"); document.write(d);
</script> </body>
</html>

Choose most appropriate option.

Select one:
a. true--false

b. false--true

c. false--false 

d. true--true

The correct answer is: false--false


 sai Sampath Ghantasala .

Question Identify the CORRECT statements with respect to CSS.


43 a) CSS is used for giving style for HTML content
Correct b) External style sheet can be used only for one HTML page in a website
Mark 1 out of 1 Choose most appropriate option.

Select one:
a. both a and b

b. only b

c. only a 

d. neither a nor b

The correct answer is: only a

Question <!DOCTYPE html>


44 <html>
<body>
Correct
<script>
Mark 1 out of 1 var x = (3 + 3) + 4 + "6"; alert(x);//line 1
</script>
</body>
</html>

What will be printed in alert box in line 1? Choose most appropriate option.

Select one:
a. 646

b. 3346

c. 16

d. 106 

The correct answer is: 106

Question Identify the CORRECT HTML code to define the state of the hyperlink. The requirement is to display the hyperlink "Click" in RED
45 color if user has already visited "https://portal.accenture.com". Choose most appropriate option.

Correct
Select one:
Mark 1 out of 1
a. <html>
<body link="red" >
<a href="https://portal.accenture.com/"> Click </a>
</body>
</html>

b. <html>
 <body vlink="red" >
<a href="https://portal.accenture.com/">Click </a>
 </body>
 </html> 

c. <html>
 <body>
 <a href="https://portal.accenture.com/" vlink="red"> Click </a>
 </body>
 </html>

d. <html>
 <body>
 <a href="https://portal.accenture.com/" link="red"> Click </a>
 </body>
 </html>
The correct answer is: <html>  sai Sampath Ghantasala .
 <body vlink="red" >
<a href="https://portal.accenture.com/">Click </a>
 </body>
 </html>

Question Refer the code below:


46 <table border="2">
Correct <tr> <th colspan="3"> Employee Details</th></tr>
<tr> <th>Employee Name</th> <th>Department</th> </tr>
Mark 1 out of 1
<tr> <td>Jack</td> <td>LKM</td> </tr>
<tr> <td>Ace</td><td rowspan="2">Delivery</td> </tr>
<tr> <td>Justin</td> </tr>
</table>

How many cells will be displayed when the page is displayed on the browser? Choose most appropriate option.

Select one:
a. 9

b. 8 

c. 7

d. 10

The correct answer is: 8

Question Which of the following is not a method of document object? Choose most appropriate option.
47
Select one:
Correct

Mark 1 out of 1 a. getElementById(String)

b. print(String) 

c. write(String)

d. getElementByTagName(String)

The correct answer is: print(String)

Question Consider the HTML code given below.


48
Not answered
<html>
Marked out of 1
  <head>

    <script>
      var key=10;

      function add(){

        var key=20;

        window.key=key+1;
        document.write(key);

        document.write(" ");

        print();
      }

      function print(){

        document.write(key);
      }

    </script>

  </head>
  <body>
    <form>  sai Sampath Ghantasala .
      <input type="submit" onclick="add()" />
    </form>

  </body>

</html>
 

What will be displayed after executing the above code?

Choose the most appropriate option.

Select one:

a. 20 21

b. 11 10

c. 11 11

d. 21 21

Your answer is incorrect.

The correct answer is: 20 21

Question How many cells will be created after executing the below HTML code?
49
Correct
<html>
Mark 1 out of 1
<body>

<table border="1">

<tr> <td colspan="3"> Jack </td> </tr>


<tr> <td colspan="2"> Tom </td> <td> Mark </td> </tr>

<tr> <td rowspan="2"> John</td> <td> James</td> <td>Mary</td> </tr>

<tr> <td> Helen</td> <td> Sam </td>  </tr>


</table>

</body>

</html>

Select one:
a. 8 

b. 10

c. 7

d. 9

Your answer is correct.

The correct answer is: 8

Question Consider the javascript code given below. What would be the print values from line 1 and line 2 on execution?
50
Not answered
<html> 
Marked out of 1
   <body> 

     <p id="id1"></p><!-- line 1--> 

     <p id="id2"></p><!-- line 2-->


     <script>

       var y=10; 

       myFunction();
       document.getElementById("id1").innerHTML = y; 

       document.getElementById("id2").innerHTML = window.y;
       function myFunction() {
 sai Sampath Ghantasala .
         y=20; 

         y=y+window.y

       } 
     </script>

   </body> 

</html>

Choose the most appropriate option.

Select one:
a. 10 30

b. 40 40

c. 10 10

d. 10 40

Your answer is incorrect.

The correct answer is: 40 40


Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

1 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

2 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

3 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

4 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

5 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

6 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

7 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

public class ApplicationTester


{
public static void main(String[] args)
{
String s1 = "One";
String s2 = "One";
System.out.println((s1==s2) + " " + s1.equals(s2));
}
}

8 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

public class Rectangle


{
private int length;
private int width;
public static void main(String[] args)
{
Rectangle rectangle1 = new Rectangle();
rectangle1.length=10;
rectangle1.width=5;
Rectangle rectangle2 = rectangle1;
System.out.println("Length : "+rectangle2.length);
System.out.println("Width : "+rectangle2.width);
}
}

9 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

public class StringTester


{
public static void main(String[] args)
{
String player1 = new String ("virat kohli");
String player2 = new String("GAYLE");
player1.toUpperCase();
String newPlayer=player1.substring(6);
newPlayer = newPlayer + player2.toLowerCase();
System.out.println(newPlayer);
}
}

10 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

public class Tester


{
public static void main(String[] args)
{
for(int i=0; i <5; i++)
{
System.out.println("Accenture");
i++;
}
}
}

11 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

public class ApplicationTester


{
public static void main(String[] args)
{
int i=10;
while(++i<15)
{
System.out.print(i + " ");
}
}
}

12 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

public class MyClass


{
private static int count;
static
{
MyClass.count = 100;
//Line-1
int count = 100;
//Line-2
}
public MyClass()
{
count++ ;
}
public static int getCount()
{
return count;
}
}
public class StaticTester
{
public static void main(String[] args)
{
MyClass ref1 = new MyClass();
MyClass ref2 = new MyClass();
System.out.println(ref1.getCount());
}
}

13 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

14 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

class Employee
{
public void display()
{
System.out.print(" Employee ");
}
}
class Trainee extends Employee
{
public void display()
{
System.out.print(" Trainee ");
super.display();
// Line X
}
}
public class DynamicBindingTester
{
public static void main(String[] args)
{
Employee e=new Trainee();
// Line Y
e.display();
}
}

15 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

public class LocalVariableTester


{
public static void main(String[] args)
{
int data1=8, data2;
if(data1 >= 10)
{
data2 = 20;
}
System.out.println(data1 + " " + data2);
}
}

16 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

public class IfTester


{
public static void main(String[] args)
{
int number1 = 10, number2;
if(number1 == 10)
{
number2 = 20;
}
if (number1 != 10)
{
number2 = 30;
}
System.out.println("Number2 :"+number2);
}
}

17 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

public class Visitor


{
private static int visitorCount;
public Visitor()
{
visitorCount = 0;
//Line-1
visitorCount++;
}
public static int getVisitorCount()
{
return Visitor.visitorCount;
}
}
public class ApplicationTester
{
public static void main(String[] args)
{
Visitor visitor1 = new Visitor();
Visitor visitor2 = new Visitor();
Visitor visitor3 = new Visitor();
System.out.println(Visitor.getVisitorCount());
}
}

18 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

public class BaseClass


{
public static void method()
{
System.out.println("1");
}
}
public class DerivedClass extends BaseClass
{
public static void method()
{
System.out.println("2");
}
}
public class ApplicationTester
{
public static void main(String[] args)
{
BaseClass ref = new DerivedClass();
ref.method();
//Line-1
}
}

19 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

public class ApplicationTester


{
public static void main(String[] args)
{
int[] array = {11,22,33,44,55,11};
int searchNumber = 11, position=999;
for(int index=0; index < array.length; index++)
{
if(searchNumber == array[index])
{
position = index;
}
} System.out.println(position);
}
}

20 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

class A
{
public A()
{
System.out.print("A ");
}
public A(int i)
{
System.out.print(i+" ");
}
}
class B extends A
{
public B ()
{
super();
System.out.print("B ");
}

public B (int i)
{
super(i);
System.out.print(i+3+" ");
}
}

public class Test


{
public static void main (String[] args)
{
new B(5);
}
}

21 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

public class Calculator


{
public static void main(String[] args)
{
int result = 0;
Calculator calculator = new Calculator();
calculator.add(10, 20, result);
System.out.println("Result : " + result);
}
public void add(int num1, int num2, int result)
{
result = num1 + num2;
}
}

22 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

class Test extends Throwable { }


class Base extends Test {}
public class Main {
public static void main(String args[]) {
try {
throw new Base();
}
catch(Test t) {
System.out.println("Test Exception");
}
finally {
System.out.println("Finally block ");
}
}
}

23 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

public class ApplicationTester


{
public static void main(String[] args)
{
int[] array = {-9,-11-8,-100,-78};
int minimum = 0;
for(int index=0; index < array.length; index++)
{
if(minimum < array[index])
{ minimum = array[index];
}
}
System.out.println(minimum);
}
}

24 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

public class Account


{
public void deposite(int amount)
{
System.out.println("Account deposited with: " + amount);
}
public void transaction()
{
this.deposite(100);
}
}
public class SavingsAccount extends Account
{
public void deposite(int amount)
{
System.out.println("Savings Account deposited with: " + amount);
}
}
public class ApplicationTester
{
public static void main(String[] args)
{
Account account = new SavingsAccount();
account.transaction();
}
}

25 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

26 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

27 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

28 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

29 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

30 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

31 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

32 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

33 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

34 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

1 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

2 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

3 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

4 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

5 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

6 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

7 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

8 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

public class ApplicationTester


{
public static void main(String[] args)
{
int i=10;
while(++i<15)
{
System.out.print(i + " ");
}
}
}

9 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

public class StringTester


{
public static void main(String[] args)
{
String player1 = new String ("virat kohli");
String player2 = new String("GAYLE");
player1.toUpperCase();
String newPlayer=player1.substring(6);
newPlayer = newPlayer + player2.toLowerCase();
System.out.println(newPlayer);
}
}

10 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

public class Tester


{
public static void main(String[] args)
{
for(int i=0; i <5; i++)
{
System.out.println("Accenture");
i++;
}
}
}

11 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

public class ApplicationTester


{
public static void main(String[] args)
{
int i = -1;
while( ++i <= 1)
{
System.out.println("1");
i++;
}
}
}

12 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

class StringSample
{
public StringSample(String string)
{
System.out.println("The string is " + string);
}
}
public class ConstructorTester1
{
public static void main(String[] args)
{
StringSample stringSample = new StringSample();
StringSample stringSample1 = new StringSample("Test String");
}
}

13 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

public class ApplicationTester


{
public static void main(String[] args)
{
int i=0;
for(i=0; i<10; i++)
{
if(i == 5)
{
continue;
}
i++;
System.out.print(i + " ");
}
}
}

14 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

class Room
{
private int length;
private float width;
}
class House
{
private float area;
private Room room;
public House()
{
room=new Room();
}
}

15 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

public class Employee


{
private String mailId;
public void setEmailId(String mailId)
{
this.mailId = mailId;
}
public String getEmailId()
{
return this.mailId;
}
}
public class UtilityClass
{
public static void updateEmailId(Employee emp)
{
emp.setEmailId("[email protected]");
}
}
public class ApplicationTester { public static void main(String[] args)
{
Employee employee1 = new Employee();
employee1.setEmailId("[email protected]");
UtilityClass.updateEmailId(employee1);
//Line-1
System.out.println(employee1.getEmailId());
}
}

16 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

17 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

public class ConstructorTest


{
private ConstructorTest(int w) // line 2
{

System.out.println(w);
}
public static ConstructorTest() // line 6
{

System.out.println(10);
}
public static void main(String args[])
{
ConstructorTest obj = new ConstructorTest(50);
}
}

18 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

public class MyClass


{
public static void main (String[] args)
{
int value1=33;
int value2=--value1;
int value3=value1++;
System.out.println(value1+" "+value2+" "+value3);
}
}

19 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

class A
{
public A()
{
System.out.print("A ");
}
public A(int i)
{
System.out.print(i+" ");
}
}
class B extends A
{
public B ()
{
super();
System.out.print("B ");
}

public B (int i)
{
super(i);
System.out.print(i+3+" ");
}
}

public class Test


{
public static void main (String[] args)
{
new B(5);
}
}

20 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

public class MyClass


{
private static int data;
static
{
MyClass.data = 999;
}
public static int getData()
{
return data;
}
public static void setData(int data)
{
MyClass.data = data;
}
}
public class ApplicationTester
{
public static void main(String[] args)
{
MyClass ref1 = new MyClass();
MyClass ref2 = new MyClass();
System.out.print(ref1.getData());
ref2.setData(111);
System.out.println(" " + ref1.getData());
}
}

21 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

class Test
{
static
{
System.out.println("A");
}
}
public class Demo
{
static
{
System.out.println("B");
}
public static void main(String[] args)
{
Test t=new Test();
}
static
{
System.out.println("D");
}
}

22 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

public class StringTester


{
public static void main(String[] args)
{
String s1=new String("Accenture");
String s2=new String("India Limited");
s1.concat(s2);
System.out.println(s1);
}
}

23 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

public class ApplicationTester


{
public static void main(String[] args)
{
int i=1, j=1;
while(i <= 3)
{
j=1;
do
{
System.out.println("Java");
i++;
j++;
}while(j <= 2);
}
}
}

24 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

public class ApplicationTester


{
public static void main(String[] args)
{
int[] array = {11,22,33,44,55,11};
int searchNumber = 11, position=999;
for(int index=0; index < array.length; index++)
{
if(searchNumber == array[index])
{
position = index;
}
} System.out.println(position);
}
}

25 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

public class Account


{
public void deposite(int amount)
{
System.out.println("Account deposited with: " + amount);
}
public void transaction()
{
this.deposite(100);
}
}
public class SavingsAccount extends Account
{
public void deposite(int amount)
{
System.out.println("Savings Account deposited with: " + amount);
}
}
public class ApplicationTester
{
public static void main(String[] args)
{
Account account = new SavingsAccount();
account.transaction();
}
}

26 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

27 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

28 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

29 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

30 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

31 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

32 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

33 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

34 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

35 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

36 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

37 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

38 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

1 of 13 22-02-2021, 09:56
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

2 of 13 22-02-2021, 09:56
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

3 of 13 22-02-2021, 09:56
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

4 of 13 22-02-2021, 09:56
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

5 of 13 22-02-2021, 09:56
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

6 of 13 22-02-2021, 09:56
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

7 of 13 22-02-2021, 09:56
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

8 of 13 22-02-2021, 09:56
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

<note date= 14/04/1979>


<to>Abin< /to>
<from>John< /from>
</note>

9 of 13 22-02-2021, 09:56
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

10 of 13 22-02-2021, 09:56
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

11 of 13 22-02-2021, 09:56
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

12 of 13 22-02-2021, 09:56
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...

13 of 13 22-02-2021, 09:56

You might also like