Professional Documents
Culture Documents
Question-wise Details
Section #1
n
System.out.println("1");
tio
} else {
System.out.println("2");
ca
}
}
}
du
Choose the most appropriate option.
4E
1
Sh
Shout4Education
2 / 45
Shout4Education
What will be the output of the following Java code?
Vehicle.java
n
FourWheeler.java
tio
public class FourWheeler extends Vehicle{
private String type;
ca
public FourWheeler(){
this.type = "LMV";
}
du
public FourWheeler(String type, float enginePower){
this.type = type;
4E
}
public String getType(){
return type;
ut
}
}
o
Sh
InheritanceTester.java
Shout4Education
3 / 45
Shout4Education
Options Response Answer
LMV 0.0
null 3.5
HMV 3.5
n
tio
What will be the output of the following Java code?
class MyClass{
ca
public static void main(String args[]) {
int value = 10;
do {
du
System.out.print( value );
value++;
4E
}
o
Shout4Education
4 / 45
Shout4Education
John and Peter are working on a Java project. John is using Windows platform and Peter is using Unix platform. In order for
Peter to execute John's Java code which file John should share with Peter?
n
tio
Question 5: Time: 2 Min 52 Sec Marks: 0/ 1
ca
du
public class BookingSeats {
int resv_seat= 6;
4E
t1.available_seats = 10;
t2.resv_seat = 14;
t2.available_seats = 20;
System.out.println(t1.resv_seat + " " + t1.available_seats + " " + t2.resv_seat + " "+ t2.available_seats);
}
}
Shout4Education
5 / 45
Shout4Education
Options Response Answer
6 45 14 20
12 10 14 20
12 45 14 45
12 20 14 20
You are working on a critical project. Due to some project requirement you are asked to share sensitive information with others.
n
Which among the following actions you will perform?
tio
a. Don’t share any sensitive information with anyone
b. Label the information as “Restricted” so that no one tries to access the information
ca
c. Use encryption for secure sharing of information
Only (b)
Only ( c )
ut
Only (a)
Shout4Education
6 / 45
Shout4Education
Analyse the code given below. Assume that Customer is a valid Java class.
n
1
tio
0
ca
5
du
Question 8: Time: 54 Sec Marks: 1/ 1
4E
Which of the following statment/s is/are TRUE with respect to Community Cloud?
ut
Only (1)
Only (2)
Shout4Education
7 / 45
Shout4Education
Assume that table Customer has the following records.
CUSTOMERID CUSTOMERNAME
10 James
11 ami
12 JAMES
n
What would be the output of the SQL statement given below.
tio
ca
SELECT customername FROM customer WHERE customername LIKE '_am%';
James
ami
ut
James
o
Sh
ami
JAMES
James
JAMES
Shout4Education
8 / 45
Shout4Education
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'.
UniversityCode Varchar2(10)
n
tio
ca
Currently student table contains only one row as shown below.
du
(1001,'Jack','jack@gmail.com','STU');
4E
ut
Which of the following INSERT statement would successfully insert the row into "Student" table?
o
Sh
Shout4Education
9 / 45
Shout4Education
Which is the CORRRECT SQL statement to add the new column "DateOfJoining" to an existing table "Employee"?
n
DateOfJoining DATE;
tio
CREATE TABLE Employee ADD
DateOfJoining DATE;
ca
du
Question 12: Time: 49 Sec Marks: 1/ 1
4E
Acceptance Testing
Performance Testing
Unit Testing
Product Testing
Shout4Education
10 / 45
Shout4Education
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();
n
}
tio
}
ca
Options Response Answer
du
Compilation error at Line X: missing
‘abstract’ keyword
4E
reference type
o
Shout4Education
11 / 45
Shout4Education
What will be the output of the following Java code?
class Base {
public void display() {
System.out.println("Will I be displayed?");
}
}
class Derived extends Base {
public void display() {
super.display();
System.out.println("I will be displayed");
}
}
public class ApplicationTester{
public static void main(String[] args) {
n
Derived derived = new Derived();
tio
derived.display();
}
}
ca
Choose the most appropriate option.
du
Options Response Answer
4E
Will I be displayed?
I will be displayed
ut
Will I be displayed?
I will be displayed
o
Will I be displayed?
Sh
I will be displayed
Shout4Education
12 / 45
Shout4Education
Assume that table Employee is created with foreign key column managerid referring to empid column of same table and the
following records are inserted.
n
tio
How many rows will be deleted after executing the below DML statement?
ca
DELETE FROM employee WHERE empid=1001;
du
Select the most appropriated option.
4E
0
o
2
Sh
Shout4Education
13 / 45
Shout4Education
Which of the following statement/s is/are VALID array decleration in JavaScript?
Only (1)
n
Both (2) and (3)
tio
All (1), (2) and (3)
ca
Question 17:
du Time: 1 Min 3 Sec Marks: 1/ 1
4E
Only (2)
Only (1)
Shout4Education
14 / 45
Shout4Education
What will be the output of the following Java code?
to Accenture
n
Welcome
tio
Welcome to Accenture
ca
null
du
Question 19: Time: 1 Min 6 Sec Marks: 0/ 1
4E
Which is the CORRECT SQL query to display the EmployeeId and EmployeeName of employees who are working in DeptCode
10 OR 20?
Sh
Only (ii)
Only (i)
Shout4Education
15 / 45
Shout4Education
package pack1;
public class Vehicle {
protected Vehicle(){
System.out.println("From Constructor Of Vehicle");
}
void displayDetails() {
System.out.println("Vehicle displayDetails method");
}
n
}
tio
package pack2;
import pack1.Vehicle;
ca
public class Car extends Vehicle {
public void displayCarDetails() {
System.out.println("Car displayDetails method");
du
}
}
4E
package pack2;
import pack1.Vehicle;
ut
vehicle.displayDetails(); //Line2
}
}
Choose a valid option from below that represents the output of the above code:
Shout4Education
16 / 45
Shout4Education
Options Response Answer
n
Question 21: Time: 1 Min 55 Sec Marks: 1/ 1
tio
Consider the below tables are created and has some records.
ca
du
4E
Sh
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?
Shout4Education
17 / 45
Shout4Education
Options Response Answer
n
WHERE accountid NOT IN(
tio
SELECT accountid FROM transaction);
ca
SELECT accountid FROM account du
WHERE accountid !=
4E
class A{ }
class B extends A{ }
class C extends B{ }
class D extends C{ }
Shout4Education
18 / 45
Shout4Education
Options Response Answer
A a = new D();
C c=new C();
C c=new B();
B b=new D();
n
tio
(1) Planning
(2) Initiation
(3) Closing
ca
(4) Execution
Shout4Education
19 / 45
Shout4Education
Assume that table Customer has some records as shown below.
1 100 2000
2 100 500
3 101 2500
4 101 1000
n
tio
Identify the CORRECT SQL statement to display the output as shown below.
ca
du
4E
4 101 1000
3 101 2500
ut
2 100 500
o
1 100 1000
Sh
Shout4Education
20 / 45
Shout4Education
Options Response Answer
n
Question 25: Time: 39 Sec Marks: 0/ 1
tio
Which of the folwwing are CORRECT statement?
ca
du
a) onClick() and onFocus() are DOM events
4E
b) The DOM method getElementByTagName(“name”) retrieves an array of all elements having the given tag name
ut
b and c only
a, b and c
a and c only
a and b only
Shout4Education
21 / 45
Shout4Education
What will be the output of the following Java code?
n
Choose the most appropriate option.
tio
Options Response Answer
ca
54 78 25 63 98 19
12 54 78 25 63 98 19
du
infintely prints 12
4E
infintely prints 54
ut
Assume that below code is present in the head tag of a HTML page.
<style>
.myclass{
background-color: lightgrey;
color:blue;
}
</style>
Shout4Education
22 / 45
Shout4Education
Options Response Answer
<h1 class=".myclass">Welcome to My
Homepage</h1>
<h1 id="myclass">Welcome to My
Homepage</h1>
<h1 style="myclass">Welcome to My
Homepage</h1>
<h1 class="myclass">Welcome to My
Homepage</h1>
n
Question 28: Time: 15 Sec Marks: 1/ 1
tio
How does ADM ensure smooth transfer of deliverables from one team or one stage to another?
ca
a. By using ADM Estimators
b. By using ADM Metrics
du
c. By using Transition Points
4E
Only (a)
Sh
Only (c )
Only (b)
(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
Shout4Education
23 / 45
Shout4Education
Options Response Answer
Only (2)
Only (1)
n
tio
public class ApplicationTester {
public static void main(String[] args){
int count = 0;
ca
do {
count++;
if (count == 3){
du
continue;
}
4E
}
o
Shout4Education
24 / 45
Shout4Education
Consider the following Java code. Identify the relationship between class Employee and class PartTimeEmployee.
n
Aggregation
tio
Generalization
ca
Realization
Composition
du
4E
Which is the correct CSS code to display the text "Accenture" in light grey back ground?
o
<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>
Shout4Education
25 / 45
Shout4Education
What will be the output of the following Java code?
n
20 }
21
tio
ca
du
Options Response Answer
4E
Loan in MyBank
ut
Shout4Education
26 / 45
Shout4Education
Which of the following statement(s) is/are TRUE?
1,2,3 and 4
n
1,3 and 4 only
tio
2,3 and 4 only
ca
3 and 4 only
du
Question 35: Time: 52 Sec Marks: 1/ 1
4E
Which is the CORRECT SQL statement to display all unique accountTypes from account table?
o
SELECT (DISTINCT)accountType
FROM account;
Shout4Education
27 / 45
Shout4Education
Which of the following options are the characteristics of Agile development?
(a) It delivers functional bits of the application as soon as they are ready
(b) It helps teams respond to unpredictability through incremental, iterative work
Only (b)
Only (a)
n
tio
Question 37: Time: 4 Min 17 Sec Marks: 0/ 1
ca
du
public class Rectangle {
4E
rectangle1.width=5;
Rectangle rectangle2 = rectangle1;
Sh
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?
Shout4Education
28 / 45
Shout4Education
Options Response Answer
n
tio
Question 38: Time: 1 Min 38 Sec Marks: 0/ 1
ca
Which of the following is/are TRUE with respect to method overloading?
du
a. Method name should be the same
b. Return type of the methods should be the same
4E
Which is the CORRECT SQL statement to retrieve the projectType(s) which has more than 10 projects?
Shout4Education
29 / 45
Shout4Education
Options Response Answer
GROUP BY projectId
HAVING COUNT(projectId)>10;
WHERE COUNT(projectId)>10
GROUP BY projectType;
n
WHERE COUNT(projectId)>10
tio
GROUP BY projectId;
ca
SELECT projectType FROM project du
GROUP BY projectType
HAVING COUNT(projectId)>10;
4E
ut
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?
Shout4Education
30 / 45
Shout4Education
Options Response Answer
<html>
</html>
<html>
</html>
<html>
n
<input type="text" name="Hello"/>
tio
</html>
ca
<html> du
<input type="text" onLoad="Hello"/>
</html>
4E
ut
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.
Shout4Education
31 / 45
Shout4Education
Options Response Answer
SELECT c.customerId,c.customerNam
e,a.accountId,a.balance
ON c.customerId=a.customerId;
SELECT c.customerId,c.customerNam
e,a.accountId,a.balance
n
ON c.customerId=a.customerId;
tio
SELECT c.customerId,c.customerNam
ca
e,a.accountId,a.balance
ON c.customerId=a.customerId;
4E
SELECT c.customerId,c.customerNam
e,a.accountId,a.balance
ut
account a
Sh
ON c.customerId=a.customerId;
Shout4Education
32 / 45
Shout4Education
Refer the HTMLcode given below.
<html>
<body>
<table border="1">
n
tio
<tr> <th>D</th>
</table>
ca
</body>
du
</html>
4E
How many cells will be displayed when the page is displayed on the browser?
ut
10
Shout4Education
33 / 45
Shout4Education
Consider the following Java code snippet.
From the above code, identify how many object(s) are eligible for garbage collection.
n
3
tio
1
ca
0
2
du
4E
Which is the CORRECT SQL query to display EmployeeId, Name, CareerLevel and Salary of employees who are getting the
Sh
Shout4Education
34 / 45
Shout4Education
SELECT EmployeeId, Name,
CareerLevel, Salary
WHERE E2.CareerLevel =
E1.CareerLevel);
n
tio
FROM Employee E1 WHERE Salary IN
ca
(SELECT max(Salary) FROM
Employee E2);
du
SELECT EmployeeId, Name,
CareerLevel, Salary
4E
max(Salary) IN
o
Employee E2
WHERE E2.CareerLevel =
E1.CareerLevel);
Shout4Education
35 / 45
Shout4Education
SELECT EmployeeId, Name,
CareerLevel, Salary
n
tio
Question 45: Time: 1 Min 15 Sec Marks: 0/ 1
ca
du
4E
o ut
Sh
Shout4Education
36 / 45
Shout4Education
What will be the output of the following Java code?
n
12
13 public class MyBank extends Bank{
tio
14 public MyBank(){
15 this.amount = 2000.0;
16 }
17 public void createAccount(){
ca
18 System.out.println("Account created");
19 }
20 }
21
du
22 public class ApplicationTester {
23 public static void main(String[] args){
24 Bank b = new MyBank();
25 b.createAccount();
4E
26 System.out.println(b.getAmount());
27 }
28 }
29
o ut
Sh
Shout4Education
37 / 45
Shout4Education
Options Response Answer
Account created
1000.0
Account created
2000.0
n
tio
Question 46: Time: 39 Sec
ca
Marks: 0/ 1
du
4E
o ut
Sh
Shout4Education
38 / 45
Shout4Education
What will be the output of the following Java code?
1 package mypackage1;
2
3 public class Parent {
4 Parent(){
5 System.out.print("1 ");
6 }
7 }
8
9 package mypackage2;
10 import mypackage1.Parent;
11
n
12 public class Child extends Parent{
13 Child(){
tio
14 System.out.println("2");
15 }
16 }
17
ca
18 package mypackage2;
19
20 public class ApplicationTester{
21 public static void main(String[] args){
du
22 Child child = new Child();
23 }
24 }
25
4E
ut
2 1
Sh
1 2
Shout4Education
39 / 45
Shout4Education
Consider the tables given below.
Customer(customerId,customerName)
Book(bookId, bookName)
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.
n
tio
ca
du
4E
o ut
Sh
Shout4Education
40 / 45
Shout4Education
Options Response Answer
SELECT
c.customerName,b.bookName
ON c.customerId=p.customerId;
SELECT
c.customerName,b.bookName
n
INNER JOIN book b
tio
ON b.bookid=p.bookid AND
ca
c.customerId=p.customerId;
SELECT
du
c.customerName,b.bookName
purchase p
ut
ON c.customerId=p.customerId
o
ON b.bookid=p.bookid;
SELECT
c.customerName,b.bookName
ON c.customerId=p.customerId
ON b.bookid=p.bookid;
Shout4Education
41 / 45
Shout4Education
Question 48: Time: 21 Sec Marks: 1/ 1
<a href="https://portal.accenture.com">
Click </a>
<a href="https://portal.accenture.com",
Click </a>
n
<a ref="https://portal.accenture.com">
Click </a>
tio
<a href="Click">
ca
https://portal.accenture.com </a>
du
Question 49: Time: 1 Min 14 Sec Marks: 1/ 1
4E
int max = 0;
for(int i=0; i < array.length; i++){
if( array[i] > max){
max = array[i];
}
}
System.out.println(max);
}
}
Shout4Education
42 / 45
Shout4Education
Options Response Answer
-8
-23
-1
n
tio
ca
du
4E
ut
o
Sh
Shout4Education
43 / 45
Shout4Education
What will be the output of the following Java code?
Policy.java
MoneyBackPolicy.java
n
public class MoneyBackPolicy extends Policy{
tio
public void readPolicy(){
System.out.println("MoneyBackPolicy - readPolicy()");
}
ca
public void writePolicy(){
System.out.println("MoneyBackPolicy - writePolicy()");
}
du
}
4E
DynamicBindingTester.java
policy.readPolicy();
Sh
}
}
Policy - readPolicy()
MoneyBackPolicy - readPolicy()
Shout4Education
44 / 45
Shout4Education
n
tio
ca
du
4E
ut
o
Sh
Shout4Education
45 / 45