Fundamentals Mock 2 - 1548950645533
Fundamentals Mock 2 - 1548950645533
Question-wise Details
Section #1
n
tio
Event(eventId,eventName) - eventId is primary key
ca
Registration(registrationId,actorId,eventId) - actorId and eventId are foreign keys
du
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.
4E
o ut
Sh
Shout4Education
2 / 49
Shout4Education
Options Response Answer
SELECT
a.actorId,a.actorName,r.eventId
ON a.actorid=r.actorid;
SELECT
a.actorId,a.actorName,r.eventId
n
ON a.actorid=r.actorid;
tio
SELECT
ca
a.actorId,a.actorName,r.eventId
ON a.actorid=r.actorid;
4E
SELECT
a.actorId,a.actorName,r.eventId
ut
Registration r
Sh
ON a.actorid=r.actorid;
Which of the following statment/s is/are TRUE with respect to Community Cloud?
Shout4Education
3 / 49
Shout4Education
Options Response Answer
Only (2)
Only (1)
n
tio
(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
ca
Choose the most appropriate option.
Only (a)
ut
Only (b)
o
Sh
Which of the following actions should be performed to ensure cyber safety at a user level?
Shout4Education
4 / 49
Shout4Education
Options Response Answer
Only (ii)
Only (iii)
n
Consider table Project(projectId, projectType, budget).
tio
Which is the CORRECT SQL statement to display projectId, projectType and budget of project which is having minimum budget
ca
in each project type?
du
4E
o ut
Sh
Shout4Education
5 / 49
Shout4Education
Options Response Answer
SELECT p1.projectId,
p1.projectType,p1.budget FROM
project p1
WHERE
p1.projectType=p2.projectType);
SELECT p1.projectId,
n
p1.projectType,p1.budget FROM
project p1
tio
WHERE p1.budget IN(
ca
SELECT MIN(p2.budget) FROM
project p2
du
WHERE p1.budget=p2.budget);
4E
SELECT p1.projectId,
p1.projectType,p1.budget FROM
ut
project p1
o
WHERE MIN(p1.budget)IN(
Sh
WHERE
p1.projectType=p2.projectType);
SELECT p1.projectId,
p1.projectType,p1.budget FROM
project p1
Shout4Education
6 / 49
Shout4Education
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?
<html>
</html>
<html>
n
<input type="text" value="Hello"/>
tio
</html>
ca
<html> du
<input type="text" id="Hello"/>
</html>
4E
<html>
ut
</html>
Sh
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.
Shout4Education
7 / 49
Shout4Education
Options Response Answer
n
PercentageOfMarks DESC,
StudentName;
tio
SELECT StudentId, StudentName,
ca
Email, PercentageOfMarks
du
FROM Student ORDER BY
PercentageOfMarks DESC,
StudentName DESC;
4E
PercentageOfMarks, StudentName;
Shout4Education
8 / 49
Shout4Education
Consider the tables given below.
Customer(customerId,customerName)
Which is the CORRECT SQL statement to retrieve customer Id and customer name of all customers who has made transaction
in their account?
n
tio
ca
du
4E
o ut
Sh
Shout4Education
9 / 49
Shout4Education
Options Response Answer
c.customerid=a.customerid;
n
FROM customer c INNER JOIN
tio
account a ON
c.customerid=a.customerid
ca
INNER JOIN transaction t ON
t.accountid=a.accountid;
du
SELECT DISTINCT c.customerid,
c.customername
4E
account a
o
a.customerid=c.customerid;
Shout4Education
10 / 49
Shout4Education
What will be the outout of the following Java code?
n
Services Limited
tio
Accenture
ca
Compilation fails as '+' operator connot
be used for String
du
4E
Sh
CUSTOMERID CUSTOMERNAME
10 James
11 ami
12 JAMES
Shout4Education
11 / 49
Shout4Education
Options Response Answer
James
JAMES
James
ami
James
ami
JAMES
n
James
tio
ca
Question 11: du Time: 3 Min 44 Sec Marks: 1/ 1
}
o
Shout4Education
12 / 49
Shout4Education
Options Response Answer
n
tio
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'
ca
and 'SALE' separately.
du
4E
o ut
Sh
Shout4Education
13 / 49
Shout4Education
Options Response Answer
SELECT
projectType,COUNT(projectId)
FROM project
GROUP BY projectId
SELECT
projectType,COUNT(projectId)
FROM project
n
WHERE projectType IN('FIN','SALE');
tio
SELECT
ca
projectType,COUNT(projectId)
FROM project
du
WHERE projectType IN('FIN','SALE')
4E
GROUP BY projectId;
SELECT
ut
projectType,COUNT(projectId)
o
FROM project
Sh
GROUP BY projectType;
Which is the CORRECT SQL statement to retrieve all unique jobBand from Employee table ?
Shout4Education
14 / 49
Shout4Education
Options Response Answer
n
Question 14: Time: 1 Min 11 Sec Marks: 1/ 1
tio
What will be the output of the following Java code?
ca
public class ApplicationTester {
public static void main(String[] args) {
du
char letterArray[]={'a','A','h','h','m','m'};
for(int index=0;index<letterArray.length;index++){
4E
if(letterArray[index] == letterArray[index+1]){
break;
}
ut
}
Sh
0 1 2
0 1 2 3
0 1 2 3 4
0 1
Shout4Education
15 / 49
Shout4Education
<html>
<head>
<style>
h2{
color:green;
n
}
tio
span{
ca
color:blue;
}
du
</style>
4E
</head>
ut
<body>
o
</body>
</html>
While displaying output on the browser what will be the color of each word of the text "Accenture Bangalore India"?
Shout4Education
16 / 49
Shout4Education
Options Response Answer
Accenture - Green
Bangalore - Green
India - Blue
Accenture - Green
Bangalore - Blue
India - Green
Accenture - Green
n
Bangalore - Blue
tio
India - Blue
ca
Accenture - Green du
Bangalore - Green
India - Green
4E
ut
(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
Only (2)
Only (1)
Shout4Education
17 / 49
Shout4Education
n
StaticTester staticTester = new StaticTester();
System.out.println("Count is " +staticTester.count);
tio
}
}
ca
Choose the most appropriate option.
du
Options Response Answer
Count is 5
4E
Count is 1
ut
Count is 0
o
Count is 6
Sh
Shout4Education
18 / 49
Shout4Education
What will be the output of the following Java code? Assume that all classes are present in the same package.
class Account {
int balance;
public void createAccount() {
System.out.println("Account created");
balance = 500;
}
}
class SavingsAccount extends Account {
public void createAccount() {
System.out.println("Savings account created");
balance = 1000;
}
}
n
public class ApplicationTester{
tio
public static void main(String[] args) {
Account account = new SavingsAccount();
account.createAccount();
ca
System.out.println("Balance: "+account.balance);
}
}
du
Choose the most appropriate option.
4E
Account created
Balance: null
o
Account created
Balance: 500
Shout4Education
19 / 49
Shout4Education
Which of the following is/are TRUE with respect to Grey Box Testing?
(a) Testing is based on the requirements and specifications of the system internals
(b) Testing does not check the code or internal structure
(c) Testing monitors an application to check if its behavior matches with the valid input
n
Both (a) and (b) are TRUE
tio
ca
Question 20: Time: 45 Sec Marks: 1/ 1
du
Refer the class declarations given below:
4E
class A{ }
class B extends A{ }
ut
class C extends B{ }
o
class D extends C{ }
Sh
B b=new D();
C c=new C();
A a = new D();
C c=new B();
Shout4Education
20 / 49
Shout4Education
Question 21: Time: 52 Sec Marks: 1/ 1
tio
}
}
ca
Choose the most appropriate option. du
Options Response Answer
inside if
4E
inside if
true,true,false
ut
true,true,false
o
inside if
Sh
true,true,true
Shout4Education
21 / 49
Shout4Education
Refer the code given below:
n
//Line1
tio
// Assume getters and Setters are already coded...
}
ca
Choose a valid Constructor implementation to be inserted at Line1 to make the above code compile successfully
du
Choose the most appropriate option.
4E
o ut
Sh
Shout4Education
22 / 49
Shout4Education
Options Response Answer
n
}
tio
public void Car(int vehicleId, String
vehicleName, String carModel,double
ca
average) {
super(vehicleId, vehicleName);
//Java code to initialize carModel and
du
average
}
4E
super(vehicleId, vehicleName);
Sh
Shout4Education
23 / 49
Shout4Education
Options Response Answer
n
tio
(1) Project standardization and customization
(2) Common project management framework
ca
Choose the most appropriate option.
Only (1)
Only (2)
ut
Which is the correct CSS code to display the text "Accenture" in light grey back ground?
Shout4Education
24 / 49
Shout4Education
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>
n
Question 26: Time: 1 Min 30 Sec Marks: 1/ 1
tio
Consider the following Java code snippet.
ca
String str1 = new String("Accenture");
String str2 = str1;
du
String str3 = new String("LKM");
String str4 = str3;
4E
str1 = null;
str4 = null;
str3 = str4;
ut
From the above code, identify how many object(s) are eligible for garbage collection.
o
Sh
Shout4Education
25 / 49
Shout4Education
Arrange the following stages of Project Lifecycle according to SDLC.
(1) Planning
(2) Initiation
(3) Closing
(4) Execution
n
(2) - (1) - (3) - (4)
tio
ca
Question 28: Time: 1 Min 27 Sec Marks: 1/ 1
du
4E
o ut
Sh
Shout4Education
26 / 49
Shout4Education
What will be the output of the following Java code?
MyInterface1.java
MyInterface2.java
MyClass.java
n
tio
public class MyClass implements MyInterface1, MyInterface2{
public void method1(){
System.out.print ("1 ");
ca
}
void method2(){
System.out.print ("2");
du
}
}
4E
InterfaceTester.java
ut
reference.method1();
reference.method2();
}
}
Shout4Education
27 / 49
Shout4Education
Options Response Answer
1 2
n
tio
Question 29: Time: 15 Sec Marks: 1/ 1
ca
Assume that table Event is having the following records. Identify the correct query to retrieve all event records which has got a
stage number.
du
4E
ut
E1 Drama
o
E2 Dance 2
Sh
E3 Speech 1
Shout4Education
28 / 49
Shout4Education
Options Response Answer
n
tio
Question 30: Time: 31 Sec Marks: 1/ 1
ca
Which of the following is/are DevOps Principle?
Only (2)
Only (1)
Shout4Education
29 / 49
Shout4Education
Refer the code given below:
class Employee{
printer.print("Test Print");
n
tio
class Printer{
ca
public void print(String str){
du
System.out.println("Priting Details: "+str);
4E
}
o ut
Sh
Choose from below a valid option that represents the relationship in between the classes Employee and Printer
Aggregation
Composition
Generalization
Specialization
Shout4Education
30 / 49
Shout4Education
Question 32: Time: 1 Min 6 Sec Marks: 1/ 1
Here TransactionId is the primary key and AccountNumber is the foreign key
n
tio
referencing AccountNumber in Account table.
ca
du
Which is the CORRECT query to display AccountNumber and balance of accounts on which NO transaction was done after '31-
Dec-2015';
4E
SELECT AccountNumber,Balance
ut
FROM Account
o
Sh
Shout4Education
31 / 49
Shout4Education
SELECT AccountNumber,Balance
FROM Account
WHERE AccountNumber IN
SELECT AccountNumber,Balance
FROM Account
n
tio
WHERE AccountNumber NOT IN
ca
(SELECT AccountNumber FROM
Transaction);
du
SELECT AccountNumber,Balance
FROM Account
4E
Transaction
Sh
Shout4Education
32 / 49
Shout4Education
What will be the output of the following Java code?
Note: Parent class is present in a package called 'packageone'. The Child class and TestPackage class are present in a
package called 'packagetwo'
Parent.java
package packageone;
public class Parent {
protected void display(){
System.out.println("Hello! its from package one");
}
}
n
public void display(){ //Line 1
tio
System.out.println("Hello! its from package two");
}
}
ca
TestPackage.java (Assume that necessary packages are imported)
package packagetwo;
du
public class TestPackage {
public static void main(String[] args) {
4E
c.display(); // Line 3
}
o
}
Sh
Shout4Education
33 / 49
Shout4Education
Options Response Answer
n
tio
Question 34: Time: 1 Min 16 Sec
ca
Marks: 1/ 1
class B implements A{
void display(){ // Line Y
o
System.out.println("B");
Sh
}
}
public class Demo{
public static void main(String[] args) {
A a=new B(); // Line Z
a.display();
}
}
Shout4Education
34 / 49
Shout4Education
Options Response Answer
n
tio
Assume that table Employee has following records.
ca
EMPID EMPNAME MANAGERID
du
1001 James NULL
1002 Mark 1001
4E
How many rows will be deleted after executing the below DML statement.
Shout4Education
35 / 49
Shout4Education
Options Response Answer
n
tio
<html>
ca
<body>
du
<table border="1">
4E
</table>
</body>
</html>
How many cells will be displayed when the page is displayed on the browser?
Shout4Education
36 / 49
Shout4Education
Options Response Answer
10
11
14
13
n
tio
ca
du
4E
ut
o
Sh
Shout4Education
37 / 49
Shout4Education
Refer the JavaScript code given below.
<html>
<head>
<script>
function aFun(){
var num1=111;
n
tio
var num2="111";
alert(num1==num2) //Line1
ca
alert(num1===num2) //Line2
du
}
4E
</script>
ut
</head>
o
<button onclick='aFun()'>Click</button>
Sh
</html>
When the above code is executed, what will be the output produced by Line1 and Line2?
Shout4Education
38 / 49
Shout4Education
Options Response Answer
n
Question 38: Time: 58 Sec Marks: 1/ 1
tio
Consider the Java code given below. When the code is executed, how many times "1" will be printed?
ca
public class Tester{
public static void main(String[] args){
du
for(int i=0; i < 5; i++){
if(i > 2){
4E
continue;
}
System.out.print(" 1 ");
ut
}
}
o
}
Sh
5 times
2 times
3 times
6 times
Shout4Education
39 / 49
Shout4Education
Which of the following statement/s is/are VALID array decleration in JavaScript?
n
Only (1)
tio
All (1), (2) and (3)
ca
Question 40:
du Time: 20 Sec Marks: 1/ 1
4E
Shout4Education
40 / 49
Shout4Education
What will be the output of the following Java code?
Bank.java
public abstract class Bank {
private String bankName;
public Bank(String bankName){
this.bankName = bankName;
}
public abstract void createAccount();
public String getBankName(){
return bankName;
}
}
n
tio
FriendlyBank.java
ca
public class FriendlyBank extends Bank {
public FriendlyBank (String bankName){
super(bankName);
du
}
public void createAccount(){
4E
AbstractClassTester.java
o
Sh
Shout4Education
41 / 49
Shout4Education
Options Response Answer
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
System.out.print("\n");
}while( value < 20 );
System.out.println(value);
ut
}
}
o
Sh
Shout4Education
42 / 49
Shout4Education
Question 43: Time: 3 Min 29 Sec Marks: 1/ 1
Employee.java
n
}
}
tio
ArrayOfObjectsTester.java
ca
public class ArrayOfObjectsTester {
public static void main(String[] args){
du
Employee[] employee = new Employee[3]; //Line-1
}
4E
once
Shout4Education
43 / 49
Shout4Education
Assume that table Event is created using the below script.
NumberOfParticipants NUMBER(2));
n
tio
Identify the correct insert statements which can be applied on Event table
ca
a) INSERT INTO Event VALUES('E1','Dance',NULL,2);
du
b) INSERT INTO Event VALUES('E1','Speech',1);
4E
a and b
a and d
b and c
a and c
Shout4Education
44 / 49
Shout4Education
Refer the code given below:
Assume that class Employee is a valid Java class having instance variables as (employeeId of type integer and employeeName
of type String).
n
emp reference variable is created on
tio
stack and employeeId and
employeeName are created on heap
ca
emp is created on heap along with
employeeId and employeeName
du
emp reference variable is created on
heap and employeeId and
4E
Shout4Education
45 / 49
Shout4Education
Refer the Incomplete JavaScript code given below:
<script>
function aFun(){
//Line1
n
tio
</script>
<button onclick='aFun()'>Click</button>
ca
du
Identify the CORRECT option which if placed at Line1 will display the alert message 'This is global value'
4E
alert(global.gVar)
ut
alert(document.gVar)
o
alert(window.gVar)
Sh
alert(gVar)
Shout4Education
46 / 49
Shout4Education
What will be the output of the following Java code?
n
tio
Choose the most appropriate option.
ca
Program will display “Twenty Ten
Zero”
du
Program will display “Twenty Ten”
4E
Shout4Education
47 / 49
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
Which is the CORRECT ALTER statement to rename the table "Customer" to "Customer_Details".
Shout4Education
48 / 49
Shout4Education
Options Response Answer
n
Question 50: Time: 21 Sec Marks: 1/ 1
tio
Refer the below incomplete HTML code.
ca
<a href="abc.lkm@accenture.com" target = "-------"> Click </a>
Assume that “abc.lkm@accenture.com” is a valid site. Choose the appropriate value for the target attribute to open the web
page in a new window.
du
Options Response Answer
4E
_top
_self
ut
_parent
o
Sh
_blank
Shout4Education
49 / 49