Ilovepdf Merged
Ilovepdf Merged
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
Select one:
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 1/55
11/29/2019 Quiz
Question 2
Correct
Select one:
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 2/55
11/29/2019 Quiz
Question 3
Correct
a. Ease of design
b. Resuability
c. code deployment
d. Testing
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 3/55
11/29/2019 Quiz
Question 4
Correct
Select one:
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
Select one:
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
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
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 6/55
11/29/2019 Quiz
Question 7
Correct
Select one:
a. robust
b. documented
c. e cient
d. modular
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 7/55
11/29/2019 Quiz
Question 8
Incorrect
Select one:
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 8/55
11/29/2019 Quiz
Question 9
Correct
Select one:
a. Spiral Model
b. Agile Model
c. Prototyping Model
d. Waterfall Model
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 9/55
11/29/2019 Quiz
Question 10
Incorrect
Select one:
a. System Testing
b. Acceptance Testing
c. Unit Testing
d. Integration Testing
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 10/55
11/29/2019 Quiz
Question 11
Correct
Select one:
a. m..1
b. 0..0
c. 0..m
d. m..m
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 11/55
11/29/2019 Quiz
Question 12
Correct
Select one:
a. Software Repository
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 12/55
11/29/2019 Quiz
Question 13
Correct
$ vi sample
Select one:
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 13/55
11/29/2019 Quiz
Question 14
Correct
Select one:
a. User friendly
b. Multiuser
c. Multitasking
d. Portability
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 14/55
11/29/2019 Quiz
Question 15
Incorrect
Select one:
a. 3
b. 4
c. 0
d. 2
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 15/55
11/29/2019 Quiz
Question 16
Incorrect
Select one:
a. System Calls
b. Kernel
c. Shell
d. Hardware
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 16/55
11/29/2019 Quiz
Question 17
Correct
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
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 17/55
11/29/2019 Quiz
Question 18
Correct
Select one:
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 18/55
11/29/2019 Quiz
Question 19
Correct
Select one:
a. <!-- --!>
b. <?-- -->
c. </-- -- >
d. <!-- -->
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 19/55
11/29/2019 Quiz
Question 20
Correct
Select one:
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
Select one:
a. <?xml version="1.0"?>
b. <?xml encoding="Master"?>
d. <?xml?>
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 21/55
11/29/2019 Quiz
Question 22
Correct
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>
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 22/55
11/29/2019 Quiz
Question 23
Correct
Select one:
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
class Room
{
private int length;
private float width;
}
class House
{
private float area;
private Room room;
public House()
{
room=new Room();
}
}
Select one:
b. Aggregation
c. Specialization
d. Composition
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 24/55
11/29/2019 Quiz
Question 25
Correct
Select one:
a. false true
b. true true
c. true false
d. false false
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 25/55
11/29/2019 Quiz
Question 26
Incorrect
Select one:
a. Sum is 60
c. Sum is 60.0
d. Sum is 0
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 26/55
11/29/2019 Quiz
Question 27
Incorrect
System.out.println(w);
}
public static ConstructorTest() // line 6
{
System.out.println(10);
}
public static void main(String args[])
{
ConstructorTest obj = new ConstructorTest(50);
}
}
Select one:
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
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 28/55
11/29/2019 Quiz
System.out.println("Customer
name is : "+customer_name);
System.out.println("Customer
location : "+customer_location+" & Customer Id :
"+customerId);
System.out.println("Customer
Id : "+customerId+" & reward points till date is
:"+reward_points);
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 29/55
11/29/2019 Quiz
c.getCustomer("Smith");
c.getCustomer(1232,560.0f);
c.getCustomer(1232, "Florida");
Select one:
b. Compilation Error.
The method getCustomer(int, String) in the type Customer is
not applicable for the arguments (int, oat)
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 30/55
11/29/2019 Quiz
Question 29
Correct
Select one:
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 31/55
11/29/2019 Quiz
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 32/55
11/29/2019 Quiz
Question 30
Incorrect
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");
}
}
Select one:
c. no output
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 34/55
11/29/2019 Quiz
Question 31
Incorrect
Select one:
a. null
b. -100
c. -8
d. 0
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 35/55
11/29/2019 Quiz
Question 32
Incorrect
Select one:
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 36/55
11/29/2019 Quiz
Question 33
Correct
Select one:
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 37/55
11/29/2019 Quiz
Question 34
Partially correct
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 38/55
11/29/2019 Quiz
Question 35
Correct
Select one:
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 39/55
11/29/2019 Quiz
Question 36
Incorrect
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 40/55
11/29/2019 Quiz
Question 37
Incorrect
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;
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 41/55
11/29/2019 Quiz
Question 38
Incorrect
Select one:
a. <body>
b. <img>
c. <a>
d. <head>
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 42/55
11/29/2019 Quiz
Question 39
Incorrect
Select one:
a. alertmsg("Welcome to JS!!");
b. alertBox("Welcome to JS!!");
c. alert("Welcome to JS!!");
d. 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
Select one:
a. alertBox("Welcome to JS!!");
b. alertmsg("Welcome to JS!!");
c. alert("Welcome to JS!!");
d. 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
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>
Select one:
a. 4
b. 3
c. 7
d. 5
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 45/55
11/29/2019 Quiz
Question 42
Correct
Select one:
a. <input type="checkbox">
b. <input=checkbox>
c. <checkbox>
d. <input checkbox>
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 46/55
11/29/2019 Quiz
Question 43
Incorrect
Consider the javascript code given below. What would be the print values
from line 1 and line 2 on execution?
<html>
<body>
<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>
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
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 48/55
11/29/2019 Quiz
Question 44
Incorrect
Step1: Start
Step4: Average=sum%3
Step6: Stop
Select one:
a. No error
b. Step 2
c. Step 5
d. Step 4
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 49/55
11/29/2019 Quiz
Question 45
Correct
Select one:
a.
Fault Prevention and fault tolerance
c.
Poor Design for change
d. Component dependence
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 50/55
11/29/2019 Quiz
Question 46
Correct
Select one:
a. Arrays
b. Graphs
c. Tree
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 51/55
11/29/2019 Quiz
Question 47
Correct
Select one:
a. Sorting
b. Merging
c. Inserting
d. Traversal
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 52/55
11/29/2019 Quiz
Question 48
Correct
Select one:
True
False
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 53/55
11/29/2019 Quiz
Question 49
Correct
int fact(int i)
{
if(i<=1)
return i;
return 2*fact(i-1);
}
if(i<=1)
return i;
return fact2(i-1) + fact2(i-1);
}
Select one:
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
Select one:
a. Quick Sort
b. Heap Sort
c. Bubble Sort
d. Selection Sort
Powered by TEKSTAC
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2297664&showall=1 55/55
11/20/2019 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
Select one:
True
False
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 1/54
11/20/2019 MCQ
Question 2
Incorrect
(A) Stack
(B) Object
(C) Math
(D) Random
(E) String
(F) StringBuffer
(G) Vector
Select one:
a. (C), (E) & (F)
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 2/54
11/20/2019 MCQ
Question 3
Incorrect
a. delete( )
b. replace( )
c. intern()
d. reverse( )
e. append( )
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 3/54
11/20/2019 MCQ
Question 4
Correct
Select one:
True
False
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 4/54
11/20/2019 MCQ
Question 5
Incorrect
import java.util.ArrayList;
import java.util.Iterator;
{
list.add("Orange");
list.add("suguna");
list.add("Apple");
list.add("squeeze");
Iterator<String> it = list.iterator();
while (it.hasNext())
{
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
Select one:
a. True
b. False
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 6/54
11/20/2019 MCQ
Question 6
Incorrect
Select one:
a. Welcome to Java
d. Runtime error
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 7/54
11/20/2019 MCQ
Question 7
Correct
interface X
{
void display();
}
interface Y extends X
{
void print();
}
Select one:
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 8/54
11/20/2019 MCQ
b. Mathew
c. John
d. John Mathew
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 9/54
11/20/2019 MCQ
Question 8
Incorrect
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");
}
}
one.calculate(10, 20);
two.calculate(50, 100);
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
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 12/54
11/20/2019 MCQ
Question 9
Incorrect
Select one:
a. [100,30,40,90]
b. [30,90,100,40,90]
c. [30,40,90,100]
d. [30,40,90,90,100]
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 13/54
11/20/2019 MCQ
Question 10
Incorrect
Select one:
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 14/54
11/20/2019 MCQ
Question 11
Correct
Select one:
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 15/54
11/20/2019 MCQ
Question 12
Incorrect
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
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 16/54
11/20/2019 MCQ
Question 13
Correct
Select one:
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 17/54
11/20/2019 MCQ
Question 14
Correct
Select one:
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
Select one:
a. 0..*
b. 0..1
c. 1..*
d. 1
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 19/54
11/20/2019 MCQ
Question 16
Correct
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
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 20/54
11/20/2019 MCQ
Question 17
Correct
Select one:
a. documented
b. e cient
c. robust
d. modular
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 21/54
11/20/2019 MCQ
Question 18
Correct
Select one:
c. 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
Carefully read the question and answer accordingly. Find which list is
not related to stacks?
Select one:
c. Push-down
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 23/54
11/20/2019 MCQ
Question 20
Correct
Select one:
b. Tree
c. Arrays
d. Graphs
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 24/54
11/20/2019 MCQ
Question 21
Incorrect
Select one:
a. Quick Sort
b. Selection Sort
c. Bubble Sort
d. Heap Sort
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 25/54
11/20/2019 MCQ
Question 22
Correct
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
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 26/54
11/20/2019 MCQ
Question 23
Correct
Select one:
a. O(nlogn)
b. O(n2)
c. O(n)
d. O(1)
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 27/54
11/20/2019 MCQ
Question 24
Correct
Select one:
a. Mc Cabes number
c. Equivalence Partitioning
d. Error Guessing
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 28/54
11/20/2019 MCQ
Question 25
Correct
Select one:
a. Consistent
b. Modi able
c. Unambiguous
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 29/54
11/20/2019 MCQ
Question 26
Incorrect
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
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 30/54
11/20/2019 MCQ
Question 27
Incorrect
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
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
d. commit/rollback
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 32/54
11/20/2019 MCQ
Question 29
Correct
Select one:
a. On delete cascade
d. On cascade delete
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 33/54
11/20/2019 MCQ
Question 30
Correct
Select one:
a. 99999999
b. 9999999.99
c. 99999.99000000001
d. 999999.99
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 34/54
11/20/2019 MCQ
Question 31
Incorrect
Select one:
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 35/54
11/20/2019 MCQ
Question 32
Correct
Select one:
a. Select
b. Grant
c. Delete
d. Insert
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 36/54
11/20/2019 MCQ
Question 33
Correct
Select one:
a. Null values
b. Integers
c. Characters
d. Repetitive values
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 37/54
11/20/2019 MCQ
Question 34
Incorrect
Select one:
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
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
Select one:
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 40/54
11/20/2019 MCQ
Question 37
Incorrect
Pipes are Used to combine two or more commands. The symbol used
for representing pipe is ______
Select one:
a. ||
b. >>
c. |
d. ;;
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 41/54
11/20/2019 MCQ
Question 38
Incorrect
$ vi sample
Select one:
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 42/54
11/20/2019 MCQ
Question 39
Incorrect
Select one:
b. File Sixe
c. Filename
d. Inode number
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 43/54
11/20/2019 MCQ
Question 40
Incorrect
Select one:
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
<script type="text/javascript">
document.write(output);
</script>
Select one:
a. 6718654
b. 671701
c. 6718
d. 70101
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 45/54
11/20/2019 MCQ
Question 42
Incorrect
In CSS, styles are written under _____ tag which is the child of _____
tag
a. script
b. body
c. style
d. head
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 46/54
11/20/2019 MCQ
Question 43
Correct
Select one:
a. style
b. body
c. script
d. head
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 47/54
11/20/2019 MCQ
Question 44
Incorrect
$("div")
Select one:
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 48/54
11/20/2019 MCQ
Question 45
Correct
Select one:
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 49/54
11/20/2019 MCQ
Question 46
Correct
Select one:
a. class
b. text
c. id
d. name
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 50/54
11/20/2019 MCQ
Question 47
Correct
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]
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 51/54
11/20/2019 MCQ
Question 48
Correct
Select one:
a. <?-- -->
b. </-- -- >
c. <!-- -->
d. <!-- --!>
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2242115&showall=1 52/54
11/20/2019 MCQ
Question 49
Incorrect
Select one:
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
Select one:
Powered by TEKSTAC
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
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
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.
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
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
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.
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
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
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
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
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
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
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
Question 25
Incorrect
Mark 0 out of 1
Flag question
Question text
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
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
Question 28
Correct
Mark 1 out of 1
Flag question
Question text
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
Question 30
Incorrect
Mark 0 out of 1
Flag question
Question text
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
Question 36
Correct
Mark 1 out of 1
Flag question
Question text
What will be the output of the following Java code?
Select one:
a. -8
b. 0
c. null
d. -100
Feedback
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
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
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
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
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
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
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
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>
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
Question 3
Incorrect
MARVELS QUIZ MCQS2
Mark 0.00 out of 1.00
Flag question
Question text
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
Question 8
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
MARVELS QUIZ MCQS2
String str= new String("Hello World");
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();
}
Select one:
a. John Mathew
b. John
c. Complie Time Error
d. Mathew
Feedback
Question 10
Correct
Mark 1.00 out of 1.00
Flag question
Question text
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
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
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
Question 14
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
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
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
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
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
Question 24
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
Question 25
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
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
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
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
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
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
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
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
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
Question 48
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
Select one:
a. <book>empty</book>
b. <book>NULL</book>
c. <book>
d. <book></book>
Feedback
Question 49
Correct
Mark 1.00 out of 1.00
Flag question
Question text
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
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)
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)
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';
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;
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;
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
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
Correct
Select one:
Mark 1 out of 1
a. ALTER TABLE RENAME Products 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;
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_";
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);
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 one:
a. 0
b. 2
c. 3
d. 1
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]
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));
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
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++;
}
}
}
Select one:
a. 2 times
b. 4 times
c. 1 time
d. 3 times
Select one:
a. null
b. 101
c. 0
d. 201
Select one:
a. 1 to 3 will be displayed on the console
Select one:
a. The string is Test String
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);
}
}
Select one:
a. 3 times
b. 1 time
d. 2 times
Select one:
a. Composition
b. Aggregation
d. Specialization
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");
}
}
Select one:
a. A D B
b. B D A
c. A B D
d. B A D
Select one:
a. Compilation error at Line-1: Invalid variable reference 'MyClass.count'
b. 102
c. 2
Select one:
a. Customer name is : Smith
Customer Id : 1232 & reward points till date is :560.0
Customer location : Florida & Customer Id : 1232
c. Compilation Error. The method getCustomer(int, String) in the type Customer is not applicable for the arguments (int,
oat)
6. else
7. Net_Salary = Gross_Salary
8. end-if
9. display Net_Salary
Select one:
a. 14000
b. 15000
c. 13500
d. 14985
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++;
}
}
}
}
Select one:
a. 12 34 0 0
b. 0 0 12 34
c. 12 34
d. 12 0 34 0
Select one:
a. 1
b. 3
d. 0
Select one:
a. 6
b. -1
c. 5
d. 1
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
Select one:
a. Compilation error at Line-1: Cannot use static member 'employeeCount' in a non-static context
b. 0
c. 1
d. 3
System.out.println(w);
}
public static ConstructorTest() // line 6
{
System.out.println(10);
}
public static void main(String args[])
{
ConstructorTest obj = new ConstructorTest(50);
}
}
Select one:
a. 50
b. 10
c. 10 50
The correct answer is: Won't compile because of line (6) constructor can't be static
}
}
Select one:
a. Prints "Base method"
Select one:
a. Account deposited with: 100
Select one:
a. 10000.0 10000.0
b. 20000.0 10000.0
c. 0.0 10000.0
Select one:
a. Canada null
b. null null
c. null Canada
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>
Mark 1 out of 1
a. <a>
b. <b>
c. <i>
d. <h6>
Select one:
a. styleclass
b. class
c. style
d. id
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;
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>
Select one:
a. Bengaluru - Black,India - Black
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>
Select one:
a. true--true
b. false--true
c. false--false
d. true--false
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
Select one:
a. Neither A nor B
b. Only B
c. Only A
d. Both A and B
b. write(String)
c. getElementByTagName(String)
d. getElementById(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()
<script>
var key=10;
window.key=key+1;
document.write(key);
print();
}
function print(){
document.write(key);
}
</script>
</head>
<body>
<form>
<input type="submit" onclick="add()" />
</form>
</body>
</html>
Select one:
a. 11 11
b. 21 21
c. 11 10
d. 20 21
<table border="1">
</table>
</body>
</html>
Select one:
a. 8
b. 9
c. 7
d. 10
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
}
}
Select one:
a. 134
b. 4
c. error
d. 34
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
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
d. throw 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)
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
c. 25
16
d. 25
26
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");
}
}
one.calculate(10, 20);
two.calculate(50, 100);
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
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
Select one:
a. 12
b. 120
c. 720
d. 6
e. 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
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 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
b. Typing
c. Abstraction
d. Polymorphism
Question Select the diagram used to depict the building blocks and the static structure of the system ?
14
Correct
Select one:
c. Sequence Diagram
d. Component 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
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
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
c.
Decision
d.
Sequence
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
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)
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.
d. Push-down
Question Carefully read the question and answer accordingly. Which data structure is said to be linear data structure?
20
Select one:
Correct
c. Graphs
d. Tree
Question From the given options identify the appropriate algorithm that has the lowest worst-case complexity?
21
Select one:
Correct
c. Bubble Sort
d. Quick Sort
Question Which algorithm is the best sorting method in-place with no quadratic worst-case scenarios?
22
Select one:
Incorrect
c. Heap Sort
d. Bubble 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
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
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
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
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
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
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
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’;
c. Alter Table
d. Add row
c. Avg
d. Total
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
The correct answer is: Delete command can be reversed but truncate cannot be reversed
Question Which command in UNIX displays the list of all the users who have logged into the Unix server?
36
Correct
b. List users
c. Who am i
d. Who
Question Unix Terminals are called Dummy terminals as they do not have _____________ capability.
37
Select one:
Correct
c. Output
d. Display
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. >>
Question Which of the following layer acts as an interface between user and kernel ?
39
Correct
b. Kernel
c. Shell
d. Hardware
The correct answer is: Replaces rst occurrence in every line ‘ABC’ with 'ZYX'
</script>
Select one:
a. 6718654
b. 671701
c. 70101
d. 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
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
Question In CSS to de ne style for a unique element then which css selector should be used?
45
Select one:
Correct
c. name
d. class
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;}
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>
c. URN
d. URI
Question Which of the following xml prolog is according to syntax of XML
49
Correct
Select one:
a. XML Tags are Case Sensitive
Dashboard / Marvels Mock 3 - Quiz - REVIEW / Quiz / Quiz
c. Aggregation forms a is-a part of relationship between classes. Composition is the stronger form of Aggregation.
The correct answer is: Aggregation forms a is-a part of relationship between classes. Composition is the stronger form of
Aggregation.
c. Aggregation
d. Generalization
The correct answer is: Using the value of the class properties
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
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
b. Pseudocode
c. Structure code
d. Programming code
c. Agile Model
d. Prototyping Model
c. Design
d. Testing
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
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.
b. Software Repository
b. Water fall
c. Prototyping
d. Spiral
Question Unix Terminals are called Dummy terminals as they do not have _____________ capability.
13
Select one:
Correct
c. Display
d. Input
c. Multitasking
d. Multiuser
Select one:
a. 4
b. 2
c. 0
d. 3
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
b. <book>NULL</book>
c. <book>empty</book>
d. <book></book>
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']
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>
c. package com.test.Employee
d. class Employee{}
Select one:
a. Length: 5 Width: 10
b. Length : 10 Width : 5
d. Length : 0 Width : 0
Select one:
a. 201
b. null
c. 101
d. 0
Select one:
a. 33 32 32
b. 32 32 32
c. 32 33 32
d. 32 32 33
Select one:
a. null
b. 150CC
c. 100CC150CC
d. 100CC
Select one:
a. 1
c. 2
Select one:
a. Account deposited with: 100
Select one:
a. Balance: 1000 Balance: 500
b. Compilation Error: The method checkCompany() is unde ned for the type Account
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;
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
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';
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?
Select one:
a. SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName FROM Item INNER JOIN Vendor ON 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
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)
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));
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
Select one:
a. style
b. styleclass
c. class
d. 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>
Correct
Select one:
Mark 1.00 out of
1.00 a. method
b. name
c. url
d. 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>
Select one:
a. false--false
b. true--false
c. true--true
d. false--true
Select one:
a. size
b. length
c. maxsize
d. maxlength
<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
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
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
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
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
Question Carefully read the question and answer accordingly. One of the best application of Stack is
47
Select one:
Correct
c. Recursion
c. A tree which does not have any node other than root node is called a null tree
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
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()
The correct answer is: O(n) for fact() and O(2^n) for fact2()
6/29/2020 Quiz: Attempt review
Question What is the diagram that depicts the interaction between objects by arranging the objects in time sequence ?
1
Select one:
Correct
d. 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
Question Select the multiplicity between passenger and train reservation ticket? What is the multiplicity of passenger ?
3
Select one:
Correct
c. 1..*
d. 0..*
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
The correct answers are: Depicts the boundry of the system, Captures users of the system, Captures dynamic aspects of the
system
c. The objects created during runtime by different sections of the application interact through messages
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
c. robust
d. documented
Question In which of the given SDLC model, unclear requirements are considered?
8
Select one:
Correct
c. Waterfall Model
d. Spiral Model
False
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
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
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
c. 0,2000,2050,2020,1981
d. 1979,1980,2060,2061
e. 1979,2030,1980,2060,2061
Question Pipes are Used to combine two or more commands. The symbol used for representing pipe is ______
13
Select one:
Correct
c. >>
d. ||
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2557965&cmid=4311&showall=1 3/17
6/29/2020 Quiz: Attempt review
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: Replaces rst occurrence in every line ‘ABC’ with 'ZYX'
Select one:
a. 3
b. 2
c. 4
d. 0
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2557965&cmid=4311&showall=1 4/17
6/29/2020 Quiz: Attempt review
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
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]
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2557965&cmid=4311&showall=1 5/17
6/29/2020 Quiz: Attempt review
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>
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++;
}
}
Select one:
a. 3 times
b. 4 times
c. 1 time
d. 2 times
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2557965&cmid=4311&showall=1 6/17
6/29/2020 Quiz: Attempt review
Select one:
a. 1 2 3 4 6 7 8 9
b. 1 2 3 4 5 6 7 8 9
d. 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
}
}
Select one:
a. No relationship exists between Doctor class and Patient class
b. Inheritance
c. Aggregation
d. Composition
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2557965&cmid=4311&showall=1 7/17
6/29/2020 Quiz: Attempt review
Select one:
a. 30
b. 20 30
d. 20
Select one:
a. 2
b. 1
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2557965&cmid=4311&showall=1 8/17
6/29/2020 Quiz: Attempt review
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
Select one:
a. only Manager class constructor and static block executes
b. no output
Select one:
a. Balance: 1000 Balance: 0
b. Compilation Error: The method checkCompany() is unde ned for the type Account
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
Select one:
a. 6
b. null
c. 5
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)
Question Identify the CORRECT SQL statement to create a table with composite primary key. Choose most appropriate option.
33
Select one:
Correct
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
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;
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)
c. 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));
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2557965&cmid=4311&showall=1 12/17
6/29/2020 Quiz: Attempt review
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;
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>
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2557965&cmid=4311&showall=1 13/17
6/29/2020 Quiz: Attempt review
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
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; )
Question Which of the following is not a method of document object? Choose most appropriate option.
41
Select one:
Correct
c. getElementByTagName(String)
d. getElementById(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!!");
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2557965&cmid=4311&showall=1 14/17
6/29/2020 Quiz: Attempt review
<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
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
c. 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
b. Component dependence
c.
Poor Design for change
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
Question Carefully read the question and answer accordingly. What operation is processed for each element in the list
47
Select one:
Correct
c. Traversal
d. Merging
c. O(nlogn)
d. O(n2)
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2557965&cmid=4311&showall=1 16/17
6/29/2020 Quiz: Attempt review
Question Which algorithm is the best sorting method in-place with no quadratic worst-case scenarios?
49
Select one:
Correct
c. Selection Sort
d. Bubble Sort
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)
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2557965&cmid=4311&showall=1 17/17
6/10/2020 Quiz: Attempt review
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)
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;
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)
c. Only (ii)
d. Only (i)
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 1/25
6/10/2020 Quiz: Attempt review
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;
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;
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
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 2/25
6/10/2020 Quiz: Attempt review
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');
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
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';
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
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;
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 one:
a. 0
b. 3
c. 2
d. 1
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;
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
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]
The correct answers are: INSERT INTO project VALUES('P1','Finance',20);, INSERT INTO project(projectid,projectname)
VALUES('P2','Finance');
Select one:
a. Ford
b. Ford Default
c. Compilation error: Parent class 'Vehicle' does not have parameterized constructor
d. Default Ford
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 5/25
6/10/2020 Quiz: Attempt review
Select one:
a. Length : 0 Width : 0
b. Length : 10 Width : 5
d. Length: 5 Width: 10
Question Identify the appropriate relationship between the classes House and Room. Assume that getter and setter methods for all
18 instance variables are implemented
Select one:
a. No relationship exists between class House and class Room
b. Aggregation
c. Composition
d. Specialization
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 6/25
6/10/2020 Quiz: Attempt review
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
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
}
}
Select one:
a. No relationship exists between Doctor class and Patient class
b. Inheritance
c. Composition
d. Aggregation
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 7/25
6/10/2020 Quiz: Attempt review
Select one:
a. true true
b. false true
c. true false
d. false false
Select one:
a. 101
b. 201
c. null
d. 0
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 8/25
6/10/2020 Quiz: Attempt review
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
Select one:
a. Only (i) 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
Select one:
a. 999 111
b. 999 999
c. 111 111
d. 0 111
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 10/25
6/10/2020 Quiz: Attempt review
Select one:
a. 1
b. 3
c. Compilation error at Line-1: Cannot use static member 'employeeCount' in a non-static context
d. 0
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 11/25
6/10/2020 Quiz: Attempt review
Select one:
a. 100CC150CC
b. 150CC
c. 100CC
d. null
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 12/25
6/10/2020 Quiz: Attempt review
Select one:
a. null
b. [email protected]
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 13/25
6/10/2020 Quiz: Attempt review
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)
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 14/25
6/10/2020 Quiz: Attempt review
Select one:
a. 100
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
Select one:
a. 2
c. 102
Select one:
a. 32 32 32
b. 32 33 32
c. 32 32 33
d. 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
Select one:
a. Canada null
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 ";.
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
Select one:
a. Balance: 1000 Balance: 500
b. Compilation Error: The method checkCompany() is unde ned for the type Account
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
}
}
Select one:
a. Prints "Base method"
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;
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 19/25
6/10/2020 Quiz: Attempt review
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>
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
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!!");
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 20/25
6/10/2020 Quiz: Attempt review
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>
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)
Select one:
a. Only A
b. Only B
c. Both A and B
d. Neither A nor B
Select one:
a. only a
b. only b
c. neither a nor b
d. both a and b
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 21/25
6/10/2020 Quiz: Attempt review
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>
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>
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()
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 22/25
6/10/2020 Quiz: Attempt review
document.write(key);
print();
}
document.write(key);
}
</script>
</head>
<body>
<form>
</form>
</body>
</html>
Select one:
a. 20 21
b. 21 21
c. 11 11
d. 11 10
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 23/25
6/10/2020 Quiz: Attempt review
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
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 24/25
6/10/2020 Quiz: Attempt review
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>
<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>
Select one:
a. 40 40
b. 10 40
c. 10 30
d. 10 10
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2463596&cmid=4176&showall=1 25/25
6/18/2020 Quiz: Attempt review
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;
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)
c. Only (ii)
d. Only (i)
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;
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
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. SELECT * FROM Account WHERE balance >= 1000 AND balance <= 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;
Select one:
a. (i) and (iii)
b. (i) only
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;
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;
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;
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;
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;
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 3/22
6/18/2020 Quiz: Attempt review
Select one:
a. Only (ii)
b. Only (i)
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 one:
a. 3
b. 0
c. 2
d. 1
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 4/22
6/18/2020 Quiz: Attempt review
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;
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);
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
Question Identify the appropriate relationship between the classes House and Room. Assume that getter and setter methods for all
16 instance variables are implemented
Select one:
a. Composition
c. Aggregation
d. Specialization
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
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++;
}
}
}
Select one:
a. 3 times
b. 1 time
d. 2 times
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 6/22
6/18/2020 Quiz: Attempt review
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++;
}
}
}
Select one:
a. 4 times
b. 2 times
c. 3 times
d. 1 time
Select one:
a. true false
b. true true
c. false false
d. false 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
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 7/22
6/18/2020 Quiz: Attempt review
Select one:
a. Ford Default
b. Default Ford
c. Compilation error: Parent class 'Vehicle' does not have parameterized constructor
d. Ford
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; }
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 8/22
6/18/2020 Quiz: Attempt review
Select one:
a. 0
b. 3
c. 1
d. Compilation error at Line-1: Cannot use static member 'employeeCount' in a non-static context
Select one:
a. only "samplemethod" need to overried in Dervied class
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
System.out.println(w);
}
public static ConstructorTest() // line 6
{
System.out.println(10);
}
public static void main(String args[])
{
ConstructorTest obj = new ConstructorTest(50);
}
}
Select one:
a. 10
b. 50
d. 10 50
The correct answer is: Won't compile because of line (6) constructor can't be static
Select one:
a. "Java" will be displayed 2 times
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 10/22
6/18/2020 Quiz: Attempt review
Select one:
a. 5
b. 1
c. 0
d. 6
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
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
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
Select one:
a. 32 32 32
b. 33 32 32
c. 32 32 33
d. 32 33 32
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 12/22
6/18/2020 Quiz: Attempt review
Select one:
a. 999 999
b. 0 111
c. 999 111
d. 111 111
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 13/22
6/18/2020 Quiz: Attempt review
Select one:
a. Balance: 1000 Balance: 0
c. Compilation Error: The method checkCompany() is unde ned for the type Account
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
}
}
Select one:
a. prints both "Base method" "Derived method"
Select one:
a. -100
b. null
c. -8
d. 0
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 15/22
6/18/2020 Quiz: Attempt review
Select one:
a. 20000.0 10000.0
b. 0.0 10000.0
c. 10000.0 10000.0
Select one:
a. style
b. styleclass
c. class
d. id
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 16/22
6/18/2020 Quiz: Attempt review
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
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; )
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!!");
Select one:
a. only a
b. neither a nor b
c. only b
d. both a and b
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 17/22
6/18/2020 Quiz: Attempt review
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()
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>
Select one:
a. Bengaluru - Red,India - Red
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>
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 18/22
6/18/2020 Quiz: Attempt review
Select one:
a. int unde ned
b. number object
c. int 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
Select one:
a. Neither A nor B
b. Both A and B
c. Only B
d. Only A
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 19/22
6/18/2020 Quiz: Attempt review
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
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 20/22
6/18/2020 Quiz: Attempt review
Question
Consider the HTML code given below.
49
Correct
<html>
Mark 1 out of 1
<head>
<script>
var key=10;
window.key=key+1;
document.write(key);
print();
}
function print(){
document.write(key);
}
</script>
</head>
<body>
<form>
<input type="submit" onclick="add()" />
</form>
</body>
</html>
Select one:
a. 21 21
b. 11 11
c. 11 10
d. 20 21
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 21/22
6/18/2020 Quiz: Attempt review
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">
</table>
</body>
</html>
Select one:
a. 9
b. 7
c. 8
d. 10
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=2516050&cmid=4239&showall=1 22/22
2/18/2020 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
Select one:
a. Attribute
b. Property
c. Static
d. Interface
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 1/51
2/18/2020 Quiz
Question 2
Incorrect
Select one:
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 2/51
2/18/2020 Quiz
Question 3
Incorrect
Select one:
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
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
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 4/51
2/18/2020 Quiz
Question 5
Correct
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
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 5/51
2/18/2020 Quiz
Question 6
Correct
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
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 6/51
2/18/2020 Quiz
Question 7
Correct
_________ 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
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 7/51
2/18/2020 Quiz
Question 8
Correct
Select one:
a. Testing
b. Analysis
c. Maintenance
d. Design
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 8/51
2/18/2020 Quiz
Question 9
Correct
Select one:
True
False
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 9/51
2/18/2020 Quiz
Question 10
Correct
Select one:
a. Integration Testing
b. System Testing
c. Acceptance Testing
d. Unit Testing
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 10/51
2/18/2020 Quiz
Question 11
Correct
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
Select one:
a. m..m
b. 0..0
c. m..1
d. 0..m
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 12/51
2/18/2020 Quiz
Question 13
Correct
Select one:
a. ;;
b. |
c. >>
d. ||
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 13/51
2/18/2020 Quiz
Question 14
Correct
Select one:
a. User friendly
b. Multiuser
c. Multitasking
d. Portability
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 14/51
2/18/2020 Quiz
Question 15
Correct
Select one:
a. 4
b. 2
c. 3
d. 0
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 15/51
2/18/2020 Quiz
Question 16
Correct
Select one:
b. Filename
c. File Sixe
d. Inode number
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 16/51
2/18/2020 Quiz
Question 17
Incorrect
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
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 17/51
2/18/2020 Quiz
Question 18
Correct
Select one:
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 18/51
2/18/2020 Quiz
Question 19
Correct
Select one:
a. <!-- --!>
b. </-- -- >
c. <!-- -->
d. <?-- -->
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 19/51
2/18/2020 Quiz
Question 20
Incorrect
Select one:
a. <?xml version="1.0"?>
c. <?xml encoding="Master"?>
d. <?xml?>
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 20/51
2/18/2020 Quiz
Question 21
Incorrect
Select one:
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 21/51
2/18/2020 Quiz
Question 22
Incorrect
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>
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 22/51
2/18/2020 Quiz
Question 23
Correct
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");
}
}
Select one:
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 23/51
2/18/2020 Quiz
Question 24
Incorrect
Consider the Java code given below. How many times "1" will be
printed when the code is executed?
Select one:
a. 2 times
b. 1 time
d. 3 times
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 24/51
2/18/2020 Quiz
Question 25
Correct
Select one:
a. 10 11 12 13 14
b. 11 12 13 14
c. 14
d. 15
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 25/51
2/18/2020 Quiz
Question 26
Correct
Select one:
a. Accenture
b. Accenture India
c. India Limited
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 26/51
2/18/2020 Quiz
Question 27
Correct
Select one:
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
int sum = 0;
{
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
Question 29
Correct
Select one:
b. 5
c. 6
d. null
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 29/51
2/18/2020 Quiz
Question 30
Incorrect
Select one:
a. 0.0 10000.0
c. 20000.0 10000.0
d. 10000.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
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
{
}
}
Select one:
Question 32
Correct
Select one:
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 33/51
2/18/2020 Quiz
Question 33
Incorrect
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;
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 34/51
2/18/2020 Quiz
Question 34
Correct
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
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 35/51
2/18/2020 Quiz
Question 35
Correct
Select one:
a. cent
b. entu
c. ntur
d. centu
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 36/51
2/18/2020 Quiz
Question 36
Incorrect
Select one:
a. 0
b. 2
c. 1
d. 3
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 37/51
2/18/2020 Quiz
Question 37
Correct
COMMIT;
DELETE FROM ASSET;
ROLLBACK;
INSERT INTO ASSET VALUES(5);
COMMIT;
Select one:
a. 0
b. 2
c. 1
d. 3
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 38/51
2/18/2020 Quiz
Question 38
Correct
which of the following code creates a list box from which user can
select more than one option?
Select one:
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 39/51
2/18/2020 Quiz
Question 39
Correct
<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>
Select one:
a. document.getElementByName(' rst').value;
b. document.getElement(' rst').value;
c. document.getElementById. rst.value;
d. 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
Select one:
a. styleclass
b. id
c. style
d. class
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 41/51
2/18/2020 Quiz
Question 41
Correct
Select one:
a. style
b. styleclass
c. id
d. class
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 42/51
2/18/2020 Quiz
Question 42
Correct
Select one:
a. colspan
b. cellpadding
c. cellspacing
d. colspace
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 43/51
2/18/2020 Quiz
Question 43
Correct
<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
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 44/51
2/18/2020 Quiz
Question 44
Correct
Step1: Start
Step4: Average=sum%3
Step6: Stop
Select one:
a. Step 4
b. Step 2
c. No error
d. Step 5
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 45/51
2/18/2020 Quiz
Question 45
Incorrect
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:
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 46/51
2/18/2020 Quiz
Question 46
Correct
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
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 47/51
2/18/2020 Quiz
Question 47
Correct
Select one:
a. Sorting
b. Traversal
c. Merging
d. Inserting
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 48/51
2/18/2020 Quiz
Question 48
Correct
Select one:
a. O(nlogn)
b. O(n)
c. O(1)
d. O(n2)
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 49/51
2/18/2020 Quiz
Question 49
Correct
Select one:
a. Quick Sort
b. Heap Sort
c. Bubble Sort
d. Selection Sort
https://accenturelearning.tekstac.com/2019/mod/quiz/review.php?attempt=2732464&showall=1 50/51
2/18/2020 Quiz
Question 50
Correct
int i=0,j=0;
for(;i<m;++i)
j++;
Select one:
a. O(nlogn)
b. O(n2)
c. O(n)
d. O(1)
Powered by TEKSTAC
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
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
}
}
Select one:
a. error
b. 34
c. 4
d. 134
Feedback
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
Question 4
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
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
Question 5
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
a. Exception Caught
b. Compilation Error
c. 0
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
Question 7
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
one.calculate(10, 20);
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
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");
}}
Select one:
a. All Shapes
Only Square
All Shapes
b. All Shapes
All Shapes
Only Square
d. All Shapes
Only Square
Only Square
Feedback
Question 9
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
Select one:
Question 10
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
Question 11
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
Select the true statement ?
Select one:
b. Aggregation forms a is-a part of relationship between classes. Composition is the stronger form of
Aggregation.
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
Question 13
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
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
a. Testing
b. Ease of design
c. code deployment
d. Resuability
Feedback
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
Question 16
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
Select one:
a.
Poor Design for change
c. Component dependence
d.
Fault Prevention and fault tolerance
Feedback
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
Question 18
Correct
Mark 1.00 out of 1.00
Flag question
Question text
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
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
d. Array
Feedback
The correct answer is: Recursion
Question 21
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
a. theta(n)
b. theta(n*logn)
c. theta(n2)
d. theta(nlognlogn)
Feedback
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
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?
a. A tree which does not have any node other than root node is called a null tree
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
Select one:
a. Spiral Model
b. Waterfall Model
c. Prototyping Model
d. Agile Model
Feedback
Question 25
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
a. Modifiable
b. Consistent
d. Unambiguous
Feedback
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
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:
c. 0,2000,2050,2020,1981
d. 1979,2030,1980,2060,2061
e. 1979,1980,2060,2061
Feedback
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
Question 29
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
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:
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
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
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:
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:
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:
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
Question 37
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
a. Portability
b. User friendly
c. Multiuser
d. Multitasking
Feedback
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
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
Question 40
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
a. 4
b. 0
c. 3
d. 2
Feedback
Question 41
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
Select one:
a. 671701
b. 70101
c. 6718
d. 6718654
Feedback
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
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
a. style
b. head
c. script
d. body
Feedback
Question 44
Correct
Mark 1.00 out of 1.00
Flag question
Question text
a. optgroup
b. output
c. datalist
d. button
e. keygen
Feedback
Question 45
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
Select one:
Flag question
Question text
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
Question 47
Correct
Mark 1.00 out of 1.00
Flag question
Question text
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
Question 48
Correct
Mark 1.00 out of 1.00
Flag question
Question text
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
Question 50
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
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
Select one:
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:
c. Only (ii)
d. Only (i)
Feedback
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:
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:
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.
Select one:
a. 3
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
Select one:
a. There are no criteria to be followed. We can change the datatype of the column irrespective of the data
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
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.
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
Select one:
a. Only (i)
c. Only (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]
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
Select one:
Question 11
Correct
Mark 1 out of 1
Flag question
Question text
Select one:
d. (i) only
Feedback
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:
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
Which of the following statements insert record successfully to the Project table [Choose 2]
Question 14
Incorrect
Mark 0 out of 1
Flag question
Question text
Select one:
Question 15
Correct
Mark 1 out of 1
Flag question
Question text
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
Question 16
Incorrect
Mark 0 out of 1
Flag question
Question text
Select one:
a. true false
b. false true
c. true true
d. false false
Feedback
Question 17
Incorrect
Mark 0 out of 1
Flag question
Question text
Select one:
Question 18
Correct
Mark 1 out of 1
Flag question
Question text
Select one:
a. Length : 10 Width : 5
b. Length: 5 Width: 10
d. Length : 0 Width : 0
Feedback
Question 19
Incorrect
Mark 0 out of 1
Flag question
Question text
Select one:
a. KOHLI gayle
b. kohligayle
c. kohliGAYLE
d. KOHLIgayle
Feedback
Question 20
Incorrect
Mark 0 out of 1
Flag question
Question text
Select one:
a. Default Ford
b. Ford Default
c. Compilation error: Parent class 'Vehicle' does not have parameterized constructor
d. Ford
Feedback
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
Question 22
Correct
Mark 1 out of 1
Flag question
Question text
Select one:
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
Question 24
Incorrect
Mark 0 out of 1
Flag question
Question text
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
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
Question 26
Correct
Mark 1 out of 1
Flag question
Question text
Select one:
a. 0
b. 1
c. 5
d. 6
Feedback
Question 27
Correct
Mark 1 out of 1
Flag question
Question text
Select one:
a. -1
b. 6
c. 1
d. 5
Feedback
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
Question 29
Correct
Mark 1 out of 1
Flag question
Question text
Select one:
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
Select one:
a. Compilation Error. The method getCustomer(int, String) in the type Customer is not applicable for the
arguments (int, float)
Question 31
Incorrect
Mark 0 out of 1
Flag question
Question text
Select one:
a. 2
b. 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
Question 33
Correct
Mark 1 out of 1
Flag question
Question text
}
}
Select one:
Question 34
Incorrect
Mark 0 out of 1
Flag question
Question text
Select one:
a. 10000.0 10000.0
b. 20000.0 10000.0
c. 0.0 10000.0
Question 35
Correct
Mark 1 out of 1
Flag question
Question text
Select one:
a. 0
b. -8
c. null
d. -100
Feedback
Question 36
Correct
Mark 1 out of 1
Flag question
Question text
Select one:
a. null null
b. Canada null
c. null Canada
d. Canada Canada
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
Select one:
a. class
b. style
c. id
d. styleclass
Feedback
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:
Question 39
Correct
Mark 1 out of 1
Flag question
Question text
Select one:
a. <head>
b. <a>
c. <img>
d. <body>
Feedback
Question 40
Correct
Mark 1 out of 1
Flag question
Question text
Select one:
a. <h6>
b. <b>
c. <i>
d. <a>
Feedback
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
Question 42
Incorrect
Mark 0 out of 1
Flag question
Question text
Select one:
a. cellpadding
b. cellspacing
c. colspan
d. colspace
Feedback
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
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
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:
Question 46
Correct
Mark 1 out of 1
Flag question
Question text
Select one:
a. 10
b. 8
c. 7
d. 9
Feedback
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
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
Question 49
Correct
Mark 1 out of 1
Flag question
Question text
<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
Question 50
Correct
Mark 1 out of 1
Flag question
Question text
<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>
Select one:
a. 11 10
b. 11 11
c. 20 21
d. 21 21
Feedback
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
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:
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
Select one:
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
a. Ease of design
b. Resuability
c. code deployment
d. Testing
Feedback
Flag question
Question text
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
Select one:
b. In OO approach, the diffferent sections run in isolation so they will NOT interact
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
Question 8
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
a. Analysis
b. Testing
c. Maintenance
d. Design
Feedback
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
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:
b. fork/join
c. commit/rollback
d. check out/check in
Feedback
Question 11
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
Select one:
a. 3
b. 5
c. 4
d. 6
Feedback
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
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
Question 14
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
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
Question 16
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
Select one:
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
Select one:
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
Question 19
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
a. <book></book>
b. <book>NULL</book>
c. <book>
d. <book>empty</book>
Feedback
Question 20
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
a. xmlns-prefix="URI"
b. xmlns:prefix,"URI"
c. xmlns:prefix=URI
d. xmlns:prefix="URI"
Feedback
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
Question 22
Correct
Mark 1.00 out of 1.00
Flag question
Question text
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
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
Question 24
Correct
Mark 1.00 out of 1.00
Flag question
Question text
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
Question 25
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
The correct answer is: Both (2) and (3) are TRUE
Question 26
Correct
Mark 1.00 out of 1.00
Flag question
Question text
public B (int i)
{
super(i);
System.out.print(i+3+" ");
}
}
Select one:
a. 5 8
b. B 8 A 5
c. A B 5
d. A B 8
Feedback
Question 27
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
Select one:
a. 100
c. 200
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
Question 29
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
c. Compilation Error: The method checkCompany() is undefined for the type Account
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
Select one:
a. 41 51
c. 0 0
d. 40 50
Feedback
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
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:
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:
Question 34
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
Select one:
a. 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 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
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
Question 37
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
Identify the correct SQL statement to retrieve employees who are getting more than 25000 salary and
working in "FINANCE" department.
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
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
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
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
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
Question 42
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
Select one:
a. neither a nor b
b. both a and b
c. only b
d. only a
Feedback
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
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:
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
Question 45
Correct
Mark 1.00 out of 1.00
Flag question
Question text
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
d. Graphs
Feedback
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:
b. Push-down
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
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
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
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
Ans -
Not equal! 10
Ans – 30
7. Consider table Account(accountId,balance) Identify the SQL queries which gives the same result
Ans –
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
Ans –
Functional Requirement
Non-Functional Requirements
Implementation Details
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
Ans –
Ans-
True
False
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-
16. Frrom the below list which files will be listed using the following command
ls chap(^1-4)
Ans-
Chap4
Chap5
Chap6
Chap7
Ans-
Is the property that uniquely differentiates the object from other objects
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-
Ans-
bABC
ABC
ABCb
B Hreeva A B C
20. given the following code snippet: which of the following are true
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
Ans-
p{padding:25px;}
p{padding=25px;}
p=padding:25px;
p: padding: 25px;
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
Step 5: Check whether count is greater than or equal to1. If yes go to step 3. If no go to step 6
Step 7: Stop
Ans-
1 1
1 2
2 1
&cd /home/course/CSE/C++
Ans-
Absolute
Relative
Reference
Dynamic
Ans-
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-
Sequence diagram
Activity diagram
Interaction diagram
Cat Meow
Dog Meow
Ans-
Coding
Testing
Analysis
Debugging
Ans-
Abstraction
Encapsulation
Typing
Hierarchy
34. From the following options choose all the possible Exceptions for the above code
Try{
ClassCastException
IllegalStateException
NumberFormatException
IllegalArgumentException
ExceptionInInitializeError
35. Unix file system is a collection of files and directories organized in a ______ manner
Ans- hierarchical
Ans-
A3B
AB
A followed by an exception
Ans-
Flow of activity
CTE
Ans – 6
41. Predict the output. Which statement can replace to allow the above code to compile and run.
Ans –
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-
<script>var x=16+4+”100”
alert(x)</script>
Ans – 20100
Ans-
$(“p”).hide();
$(p).hide();
$(“p”)-hide();
(“p”).hide();
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
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-
Ans-
True
False
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-
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
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
Ans-
Returns the compiled version of boolean after matching the regular expression against the given
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-
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
Ans-
Contradicting requirements
Incomplete requirements
Unreliable requirement
63. Name the Unix command to perform safe shut down a Unix system
Ans-
Poweroff
Shutdown
Reboot
A few many
A few
Many
Ans-
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
Hi hi followed by exception
Hi hi hi
Hi hi
Hi
Hi followed by exception
Persistence is a way through which the life time of object is terminated as the program terminates
Ans-
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
Bow Wow
Roar
Ans-
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
Ans- B E
Public abstract class Class1 implements Interface{
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 last position to first until the element is found
80. In which of the given SDLC models’ rapid changes are easily incorporated
Ans-
V-model
Agile model
Prototyping model
Waterfall model
Ans-
82. What are the best ways to ensure that a class implements the required behavior?
Ans- A, D
Use Interface
Use encapsulation
How many objects eligible or GC is reached, how many objects are eligible for Garbage Collection?
Ans – 1 (or 2) 1
Ans-
Sequence diagram
Collaboration diagram
Activity 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-
Using IDE
87. Predict the output?
Ans – 2
88. Choose the correct order in which the Oracle Server evaluate clauses
Ans-
Ans-
n elements
n/2 elements
n/4 elements
(n/2) +n elements
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
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
Ans-
Ans-
targetnamespace
xmlns
elementFormDefault
version
Ans= 9
Ans-
100. What are the best ways to ensure that a class implements the required behavior?
Ans- A and D
User interface
Use encapsulation
101. O(nlogn) is the best-case time complexity of Bubble Sort. State True or False
Ans-
True
False
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
103. Which of the given options perform requirement specification- based testing
Ans-
Integration testing
Start program
end program
Ans-
105. What is the command to fetch employee id, employee name and salary with 10% increase
from employee?
Employee(eid,ename,salary)
Ans-
Ans-
It is highly secure
It is user friendly
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
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>
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
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-
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-
120. What will be the XSD definition for the following element <age>40</age>
Ans-
Ans- #review
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
Ans-
Ans-
HTML Geolocation
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
$ calendar 2019
Ans-
C++
VC++
JAVA
130. Which option can be used to perform a forward search of string in the vi editor
Ans-
/string
/find
?find
?string
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-
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-
First person change gets committed while for the second one the server notices life differences
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-
Ans-
Ans- default
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
146. Consider the javascript code given below. What would be the print values from line 1 and line
2 on execution?
Ans- 40 40
Ans- 15 (20) 15
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-
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-
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-
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 group by category where 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?
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-
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.
Ans-
Only (i)
Only (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.
Identify the appropriate HTML code to USE the style given Above
Ans-
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
Ans-
Only 1
Both 1 and 2
Only 2
Both 1 and 3
Ans-
Only a is false
Only b is false
Ans- 0
Ans- 106
167. What would be the output of the javascript code given below
Ans- number
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
171. Which code should be inserted at line #4 to get the below output – 2 4 6 8 10
Ans-
172. Consider table Book (booId, bookName, copies) has following records
B1 JAVA 0
B2 4
B3 ORACLE 2
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-
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-
Ans-
Aggregation
Composition
Inheritance
Ans-
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();
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
Ans-
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-
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-
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-
Ans-
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
Ans-
10000
Null
Compilation error at Line-1 : Implicit super constructor: Employee() is undefined Must explicitly
invoke another constructor
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);
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-
Ans-
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
EAFBDC
AEFBDC
AEBFDC
AEBDFC
A E B D C F…. so on
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
Iterative statement
Sequential statement
204. which of the following program has the lowest run-time complexity?
Ans-
Fibonacci series
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-
212. Choose the executable query to display contact_details by concatenating mail_id and the
phone number of employees (multiple answers possible)
Mail-id phone_number
Ans-
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-
214. Which of the following statements are true in regard to the object-oriented programming
technique?
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
Public variable
Ans- 10
Ans-
Transition from one action state to another
Trigger events
218. Which of these is used to prevent the error ‘ORA-00937’ not a single group group function?
Ans-
219. Which key can be used to change the mode from input mode to command mode?
Ans-
Esc
Esc + i
Esc + a
Esc + l
c. modify the user’s view of data to only certain rows and columns in a table
Ans-
Ans-
DROP
TRUNCATE
DELETE
222. Match the following data command with the correct output
With
Ans-
SET count = 1
Count = count+1
END WHILE
Ans-
Ans- 3
Ans-
226. the standard output of one program can be redirected as standard input to another program
using _________
Ans-
||
>
<
Start program
DELETE FROM departments WHERE department_id=50;
End program.
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
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
233. Consider the table Product (pid, pname, pcost) Identify the appropriate SQL statement to
rename the table to ProductsInfo.
Opt D
Ans-
234. Consider the table Account (accId, balance, accountType). The following constraints to be
enforced
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?
237. __________ is an unparsed character data that can’t be parsed be the parser.
Ans- CDATA
239. In CSS script, which of the following style is used to print a table with double border?
240. An external Java script file can be included in an HTML code using the ______ attribute in a
script tag
Ans – src
Ans- hierarchy
244. The object which is used to fetch the input from an element for processing is ______
Ans- document
Form
navigate
Ans –
Alter statement
DELETE statement
With
Ans-
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-
249. Which of the given pseudocodes finds the perimeter (circumference) of the circle radius
Ans-
BEGIN
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-
Ans – 1 3 8
Which of the following statement has to be uncommented in order to compile the above code
without any errors?
Ans-
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(){
</script>
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
P1 FIN A1
P2 SALE A2
P1 FIN A1
Ans-
258. Consider table Player(PlayerId, PlayerName, Rating) has records as shown below.
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?
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-
Ans – 10 dd
262. What operator is used to present the error “ORA-01427: single row sub query returns more
than one row?
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.
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-
265. the element to specify a list of predefined options for input controls is
Ans- <datalist>
<studentname>
<first>raveena</first>
<last>dantan</last>
</studentname>
Ans-
OptA
Startprogram
<xsd:schema xmlns:xsd=”http://www.w3.org2001/XMLSchema”>
<xsd:element name=”studentname”>
<xsd:complexType>
<xsd:sequence>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
Endprogram
Ans- IndexOutOfBoundException
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
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;
Ans- True
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
What is the cardinality relationship between the entities: Person and Pan card
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 ….
275. which of these have higher precedence: the AND operator or the NOT operator?
Ans-
AND
NOT
276. Which of the following statements is true with respect to given Oracle query
Start program
End program
Ans-
Table “AQI_DELHI_1” is created with same structure as that of “AQI_DELHI” table – with
AQI_DELHI table’s data
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-
Ans-
Ans-
For giving more control over structure and content of XML document
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
Registration Details
Overall Summary
MARKS SCORED
Score Percentile Percentage
Section #1 42 / 50 89 84
Total 42 / 50 89 84
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
3 and 4 only
1,2,3 and 4
2 / 48
Refer the Incomplete JavaScript code given below:
<script>
function aFun(){
//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'
alert(gVar)
alert(global.gVar)
alert(document.gVar)
alert(window.gVar)
3 / 48
What will be the output of the following Java code?
4 / 48
What will be the output of the following Java code?
class Person {
public void work() {
System.out.println(”Person Work's”);
}
}
Employee Work's
Person Work's
Employee Work's
Person Work's
5 / 48
What will be the output of the following Java code?
0 1 2
0 1
0 1 2 3
0 1 2 3 4
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();
}
}
7 / 48
Options Response Answer
Acceptance Testing
Unit Testing
Product Testing
Performance Testing
With respect to the above code, how many Student objects and references are created in main method?
3 Objects, 3 References
3 Objects , 2 References
2 Objects, 3 References
2 Objects, 2 References
8 / 48
Which of the following is/are TRUE with respect to method overloading?
Only (1)
Only (2)
9 / 48
Assume that table Event is created using the below script.
NumberOfParticipants NUMBER(2));
Identify the correct insert statements which can be applied on Event table
a and c
a and d
a and b
b and c
10 / 48
Consider the below tables.
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.
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
ON c.customerId=a.customerId;
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
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.
Composition
Aggregation
Realization
Generalization
12 / 48
Consider the following tables:
Here TransactionId is the primary key and AccountNumber is the foreign key
Which is the CORRECT query to display AccountNumber and balance of accounts on which NO transaction was done after '31-
Dec-2015';
SELECT AccountNumber,Balance
FROM Account
SELECT AccountNumber,Balance
FROM Account
13 / 48
SELECT AccountNumber,Balance
FROM Account
WHERE AccountNumber IN
SELECT AccountNumber,Balance
FROM Account
14 / 48
What will be the output of the following Java code?
Policy.java
MoneyBackPolicy.java
DynamicBindingTester.java
MoneyBackPolicy - readPolicy()
Policy - readPolicy()
15 / 48
Question 16: Time: 31 Sec Marks: 1/ 1
package x;
public class Student{
void display(){ // Line 1
System.out.println("Hello");
}
}
package y;
import x.Student; // Line 2
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
18 / 48
Assume that table Customer has some records as shown below.
1 100 2000
2 100 500
3 101 2500
4 101 1000
Identify the CORRECT SQL statement to display the output as shown below.
4 101 1000
3 101 2500
2 100 500
1 100 1000
19 / 48
Options Response Answer
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?
20 / 48
Options Response Answer
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,DISTINCT DeptId from
Employee;
SELECT DISTINCT
jobBand,DISTINCT DeptId from
Employee WHERE jobBand='A' AND
jobBand='B';
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. }
22 / 48
Options Response Answer
23 / 48
Options Response Answer
Accenture
India Limited
Accenture India
class A{ }
class B extends A{ }
class C extends B{ }
class D extends C{ }
A a = new D();
C c=new B();
B b=new D();
C c=new C();
24 / 48
Which of the following actions should be performed to ensure cyber safety at a user level?
Only (ii)
Only (iii)
Which of the following line inserted independently in the above code will result in sum of array elelments?
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]; }
<html>
<body>
<table border="1">
<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
(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)
27 / 48
Which of the following statement(s) are FALSE regarding Java Architecture?
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>
Which is the CORRECT SQL statement to retrieve the projectType(s) which has more than 10 projects?
WHERE COUNT(projectId)>10
GROUP BY projectId;
GROUP BY projectType
HAVING COUNT(projectId)>10;
WHERE COUNT(projectId)>10
GROUP BY projectType;
GROUP BY projectId
HAVING COUNT(projectId)>10;
29 / 48
Question 31: Time: 25 Sec Marks: 1/ 1
Which is the CORRECT SQL query to display the EmployeeId and EmployeeName of employees who are working in DeptCode
10 OR 20?
Only (i)
Only (ii)
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
ON Book.PublisherCode =
Publisher.PublisherCode;
SELECT
ISBN,Title,Author,PublisherCode,Publis
herName
ON PublisherCode = PublisherCode;
FROM Book,Publisher;
ON Book.PublisherCode =
Publisher.PublisherCode;
31 / 48
Refer the code given below:
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>
</html>
<html>
</html>
<html>
</html>
<html>
</html>
Assume that Table Customer is created in database using the create statement given below.
Choose the appropriate ALTER statement to drop primary key constraint of table Customer.
33 / 48
Options Response Answer
34 / 48
What will be the output of the following Java code?
35 / 48
Options Response Answer
Account created
1000.0
Account created
2000.0
Assume that below code is present in the head tag of a HTML page.
<style>
.myclass{
background-color: lightgrey;
color:blue;
}
</style>
<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
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.projectType=p2.projectType);
SELECT p1.projectId,
p1.projectType,p1.budget FROM
project p1
SELECT p1.projectId,
p1.projectType,p1.budget FROM
project p1
WHERE MIN(p1.budget)IN(
WHERE
p1.projectType=p2.projectType);
SELECT p1.projectId,
p1.projectType,p1.budget FROM
project p1
WHERE p1.budget=p2.budget);
38 / 48
Question 40: Time: 2 Min 24 Sec Marks: 0/ 1
MyInterface1.java
MyInterface2.java
MyClass.java
InterfaceTester.java
39 / 48
Options Response Answer
1 2
Action Cut
Start
Action
40 / 48
Which among the following are DevOps Principle?
Which of the following statment/s is/are TRUE with respect to Community Cloud?
Only (1)
Only (2)
41 / 48
What will be the output of the following Java code?
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
1 2
2 1
43 / 48
What will be the output of the following Java code?
Count is 1
Count is 6
Count is 0
Count is 5
44 / 48
Assume that table Customer has the following records.
Cid Cname
10 James
11 Jack
12 HARY
13 MARK
Cname
James
Jack
45 / 48
Question 48: Time: 13 Sec Marks: 1/ 1
(1) Planning
(2) Initiation
(3) Closing
(4) Execution
46 / 48
What will be the output of the following Java code?
Vehicle.java
FourWheeler.java
InheritanceTester.java
47 / 48
Options Response Answer
LMV 0.0
null 3.5
HMV 3.5
Assume that my_style.css is an existing and a valid css file. Which is the CORRECT way to refer this external style sheet?
48 / 48
GF Mock 2
Registration Details
Overall Summary
MARKS SCORED
Score Percentile Percentage
Section #1 30 / 50 24 60
Total 30 / 50 24 60
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
Policy.java
MoneyBackPolicy.java
DynamicBindingTester.java
2 / 49
Options Response Answer
Policy - readPolicy()
MoneyBackPolicy - readPolicy()
Consider the Java code given below. When the code is executed, how many times "1" will be printed?
5 times
6 times
3 times
2 times
3 / 49
Refer the code given below:
Choose a valid Constructor implementation to be inserted at Line1 to make the above code compile successfully
4 / 49
Options Response Answer
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
}
}
6 / 49
Refer the code given below:
class Employee{
printer.print("Test Print");
class Printer{
Choose from below a valid option that represents the relationship in between the classes Employee and Printer
Generalization
Composition
Specialization
Aggregation
7 / 49
Question 6: Time: 14 Sec Marks: 1/ 1
Both 1 and 2
Neither 1 nor 2
Only 1
Only 2
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
ON a.actorid=r.actorid;
SELECT
a.actorId,a.actorName,r.eventId
ON a.actorid=r.actorid;
SELECT
a.actorId,a.actorName,r.eventId
ON a.actorid=r.actorid;
SELECT
a.actorId,a.actorName,r.eventId
ON a.actorid=r.actorid;
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
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>
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'.
UniversityCode Varchar2(10)
(1001,'Jack','[email protected]','STU');
Which of the following INSERT statement would successfully insert the row into "Student" table?
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.
E1 Drama
E2 Dance 2
E3 Speech 1
13 / 49
What will be the output of the following Java code?
14 / 49
Options Response Answer
Account created
1000.0
Account created
2000.0
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
GROUP BY projectType;
SELECT
projectType,COUNT(projectId)
FROM project
GROUP BY projectId;
SELECT
projectType,COUNT(projectId)
FROM project
SELECT
projectType,COUNT(projectId)
FROM project
GROUP BY projectId
16 / 49
What will be the output of the following Java code?
class Person {
public void work() {
System.out.println(”Person Work's”);
}
}
Employee Work's
Person Work's
Employee Work's
Person Work's
Which testing technique tests the functionality of the application without looking at the internal structure of the code?
17 / 49
Options Response Answer
Product Testing
Assembly Testing
18 / 49
Assume that table Player has following records.
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?
19 / 49
Consider the below tables are created and has some records.
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?
WHERE accountid !=
20 / 49
Question 19: Time: 28 Sec Marks: 1/ 1
Which is the CORRECT SQL statement to retrieve all unique jobBand from Employee table ?
21 / 49
What will be the output of the following Java code?
Vehicle.java
FourWheeler.java
InheritanceTester.java
22 / 49
Options Response Answer
null 3.5
LMV 0.0
HMV 3.5
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]
23 / 49
Consider the below tables.
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
FROM Book,Publisher;
SELECT
ISBN,Title,Author,PublisherCode,Publis
herName
ON PublisherCode = PublisherCode;
ON Book.PublisherCode =
Publisher.PublisherCode;
ON Book.PublisherCode =
Publisher.PublisherCode;
25 / 49
What will be the output of the following Java code?
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
1 2
1 2 3
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?
WHERE E2.CareerLevel =
E1.CareerLevel);
28 / 49
SELECT EmployeeId, Name,
CareerLevel, Salary
WHERE E2.CareerLevel =
E1.CareerLevel);
29 / 49
Options Response Answer
30 / 49
Options Response Answer
(1) Planning
(2) Initiation
(3) Closing
(4) Execution
31 / 49
What are the benifits of ADM?
Only (1)
Only (2)
-8
-23
-1
32 / 49
Question 31: Time: 43 Sec Marks: 0/ 1
the value of i is 0
End of Program
the value of i is 1
End of Program
End of Program
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();
}
}
null
Email message
SMS message
34 / 49
Refer the HTML code given below.
<html>
<body>
<table border="1">
</table>
</body>
</html>
How many cells will be displayed when the page is displayed on the browser?
11
10
35 / 49
Which of the following is/are DevOps Principle?
Only (1)
Only (2)
36 / 49
What will be the output of the following Java code?
method2
37 / 49
Which of the following are characteristics of Agile?
>
gt;
#gt;
&#gt;
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
Which of the following statment/s is/are TRUE with respect to Community Cloud?
Only (1)
Only (2)
39 / 49
What will be the output of the following Java code?
40 / 49
What will be the output of the following Java code?
Default
Even Odd
41 / 49
Assume that table Customer has the following records.
Cid Cname
10 James
11 Jack
12 HARY
13 MARK
Cname
James
Jack
42 / 49
Question 43: Time: 19 Sec Marks: 0/ 1
(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 (1)
Only (2)
43 / 49
Options Response Answer
b) The DOM method getElementByTagName(“name”) retrieves an array of all elements having the given tag name
a and b only
a and c only
b and c only
a, b and c
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
Which of the following actions should be performed to ensure cyber safety at a user level?
Only (iii)
Only (ii)
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;
1 and 2 only
1 and 3 only
2 and 4 only
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
1 2
48 / 49
Consider the Java code given below.
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?
49 / 49
Shout4Education
Question-wise Details
Section #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.
n
SELECT DISTINCT jobBand,empId
tio
from Employee;
ca
SELECT DISTINCT(jobBand) from
Employee; du
SELECT DISTINCT jobBand from
Employee;
4E
Question 2:
ut
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.
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.
n
ALTER TABLE Products RENAME TO
tio
ProductsInfo;
ca
Question 4:
du Time: 47 Sec Marks: 0/ 1
4E
Which is the CORRECT DML statement to update the job band of all employees to NULL? Choose most appropriate option.
o
Shout4Education
3 / 18
Shout4Education
Identify the CORRECT statements with respect to constraints.
only (i)
only (ii)
n
tio
both (i) and (ii)
ca
du
Question 6: Time: 35 Sec Marks: 1/ 1
4E
o
Sh
(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
a and b
a and d
b and c
a, b and d
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
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
branchid;
Sh
Shout4Education
6 / 18
Shout4Education
Consider the table Account (accid, balance, accountType). The following constraints to be enforced.
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
n
CHECK(balance>1000 OR balance
>3000), accountType CHAR
tio
CONSTRAINT acc_chk CHECK
(accountType='S' OR accounTtype='C')
ca
);
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.
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
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
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
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.
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
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
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
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
Which is the correct CSS code to display the text "Accenture" in light grey back ground? Choose most appropriate option.
Sh
<h2 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
100
Sh
200
210
110
Shout4Education
14 / 18
Shout4Education
Which of the following are CSS selectors?
n
tio
(i) and (iii) only
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
11
10
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
10
Shout4Education
17 / 18
Shout4Education
n
tio
ca
du
4E
ut
o
Sh
Shout4Education
18 / 18
Shout4Education
Question-wise Details
Section #1
Which is the CORRECT DML statement to update the job band of all employees to NULL? Choose most appropriate option.
n
UPDATE TABLE employee SET
tio
jobBand is NULL;
ca
NULL;
NULL;
o ut
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.
Shout4Education
2 / 19
Shout4Education
Consider the table Products(pid,pname,pcost). Identify the appropriate SQL statement to rename the table to ProductsInfo .
Choose most appropriate option.
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
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.
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
FROM Employee;
o
SELECT empid,
Sh
NVL(jobband,NULL,'NA') FROM
Employee;
SELECT empid,
NVL(NULL,'NA',jobband)FROM
Employee;
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?
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
type of a column
ut
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
SELECT playerId,
NVL(TO_CHAR(playerType), '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.
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
n
CHECK(balance>1000 OR balance
>3000), accountType CHAR
tio
CONSTRAINT acc_chk CHECK
(accountType='S' OR accounTtype='C')
ca
);
Shout4Education
8 / 19
Shout4Education
Consider the below tables.
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.
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
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;
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.
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
WHERE
Sh
p1.playergroup=p2.playergroup);
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
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
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
n
tio
a) Element Selector
ca
b) Form Selector
du
c) Class Selector
4E
a and b
Sh
a and c
b and c
a, b and c
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)
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"
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
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
12
122
32
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
10 30
o
10 40
Sh
10 10
40 40
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
11
10
Shout4Education
18 / 19
Shout4Education
n
tio
ca
du
4E
ut
o
Sh
Shout4Education
19 / 19
Shout4Education
Question-wise Details
Section #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.
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
Shout4Education
2 / 23
Shout4Education
Which of the following statements are valid array declaration?
n
(D) counter int[];
tio
Choose most appropriate option.
ca
Options Response Answer
du
(A)
4E
ut
(A) &
o
(C)
Sh
(D)
(B) &
(C)
Shout4Education
3 / 23
Shout4Education
What will be the output of the following Java code?
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);
Shout4Education
4 / 23
Shout4Education
Options Response Answer
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.
n
tio
{
ca
Student s1 = new Student();
du
Student s2 = new Student();
4E
Student s3 = s1;
ut
Student s4 = s1;
o
Sh
Shout4Education
6 / 23
Shout4Education
Options Response Answer
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
Shout4Education
7 / 23
Shout4Education
What will be the output of the following Java code?
n
17
tio
Choose the most appropriate option.
ca
Options Response Answer
du
"Hello" will be displayed once
Which of the following is a VALID declaration of an abstract method? Choose the most appropriate option.
Shout4Education
8 / 23
Shout4Education
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
Shout4Education
9 / 23
Shout4Education
What will be the output of the following Java code?
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.
2
ut
1
Sh
1 2
Shout4Education
10 / 23
Shout4Education
Consider the following Java code:
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
Shout4Education
11 / 23
Shout4Education
Refer to the below code and predict the output.
How many String objects are created in the above code? Choose the most appropriate option
n
2
tio
3
ca
1 du
4
4E
Shout4Education
12 / 23
Shout4Education
Options Response Answer
10
10 50
50
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
Shout4Education
13 / 23
Shout4Education
Options Response Answer
Account CurrentAccount
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
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
Aggregation
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
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
18 }
19 public class Test extends ParentTest
20 {
o
23 A a=new ParentTest();
24 a.method1();
25 }
26 }
27
Shout4Education
16 / 23
Shout4Education
Options Response Answer
1,2
2,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
18
o
Sh
Shout4Education
17 / 23
Shout4Education
Consider the following Java code (Assume that Employee is a valid Java class):
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.
1
ut
2
o
3
Sh
Shout4Education
18 / 23
Shout4Education
Refer to the below code and predict the output.
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
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
Shout4Education
20 / 23
Shout4Education
Options Response Answer
30 40 50 40
50 40 50 40
30 40 50 20
n
tio
What will be the output of the following Java code?
ca
du
1 public class ApplicationTester
2 {
4E
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
Shout4Education
21 / 23
Shout4Education
Options Response Answer
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
17 {
Sh
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
Only default
n
tio
ca
du
4E
o ut
Sh
Shout4Education
23 / 23
sai Sampath Ghantasala .
Question What is the term used to define the values that are common across all instances of a class ?
2
Select one:
Correct
c. Interface
d. Attribute
c. code deployment
d. Ease of design
c. Aggregation
d. Compound
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
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
b. Pseudocode
c. Structure code
d. Programming code
False
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
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
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
b. Prototyping
c. Water fall
d. Spiral
c. Multitasking
d. User friendly
Question Unix Terminals are called Dummy terminals as they do not have _____________ capability.
14
Select one:
Select one:
Correct
c. Processing
d. Display
Select one:
a. 0
b. 3
c. 2
d. 4
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
Question which of the following option can be used ,in order to quit vi editor without saving the work done ?
18
Select one:
Correct
c. :q
d
d. :c
sai Sampath Ghantasala .
d. <?xml version="1.0"?>
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>
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);
}
}
Select one:
a. Nothing will be printed
b. 2 times
c. 3 times
d. 1 time
Question which of the following represents correct order from the most to least restrictive? Choose most appropriate option.
24
Select one:
Correct
c. protected,private,default,public
d. public,protected,default,private
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++;
}
}
Select one:
a. 2 times
b. 3 times
c. 1 time
d. 4 times
Select one:
a. 100CC
b. null
c. 100CC150CC
d. 150CC
Select one:
a. 2
b. 102
Select one:
a. Both (i) and (ii) are TRUE
The correct answer is: Both (i) and (ii) are FALSE
Select one:
a. -100
b. null
c. 0
d. -8
array1[index1]++;
System.out.print(array2[index2]+” ”);
}
}
}
Select one:
a. 41 51
c. 0 0
d. 40 50
Select one:
a. null
b. 5
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)
d. Only (ii)
Select one:
a. 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 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. True
Select one:
a. SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName FROM Item INNER JOIN Vendor ON 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 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));
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
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
c. p { color=red; text-align=center; }
d. 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
c. colspan
d. columns-span
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>
Question Which method is used to remove focus from the specified object? Choose most appropriate option.
42
Select one:
Correct
c. onblur()
d. onsubmit()
<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
Step4: Average=sum%3
Step5: Display Sum and Average
Step6: Stop
Select one:
a. No error
b. Step 4
c. Step 5
d. Step 2
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
Question Carefully read the question and answer accordingly. What operation is processed for each element in the list
46
Select one:
Correct
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
c. Tree
d. 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
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)
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()
The correct answer is: O(n) for fact() and O(2^n) for fact2()
sai Sampath Ghantasala .
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;
The correct answer is: ALTER TABLE Employee ADD DateOfJoining DATE;
Select one:
a. Neither (i) nor (ii)
b. Only (ii)
d. Only (i)
Incorrect
Select one:
Mark 0 out of 1
a. SELECT EmployeeName FROM Employee WHERE EmployeeName LIKE 'A%e';
The correct answer is: SELECT EmployeeName FROM Employee WHERE EmployeeName LIKE 'A_e';
Select one:
a. b and c
b. a and c
c. a and b
d. a only
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
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;
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;
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
c. Throws constraint violation error when deleting a parent record, for which child records exists
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');
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.
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%";
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));
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;
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]
The correct answers are: INSERT INTO project VALUES('P1','Finance',20);, INSERT INTO project(projectid,projectname)
VALUES('P2','Finance');
Select one:
a. 3 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
}
}
Select one:
a. Composition
b. Aggregation
D d
c. Dependency
sai Sampath Ghantasala .
d. No relationship exists between Doctor class and Patient class
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);
}
}
Select one:
a. 1 time
b. 3 times
c. 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
b. package com.test.Employee
c. packages com.test
d. class Employee{}
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++;
}
}
}
Select one:
a. 1 time
b. 2 times
d. 3 times
sai Sampath Ghantasala .
Select one:
a. Both (2) and (3) are TRUE
The correct answer is: Both (2) and (3) are TRUE
Select one:
a. kohligayle
b. kohliGAYLE
c. KOHLIgayle
d. KOHLI gayle
Select one:
a. Compilation error at Line-1: Ambiguous method call 'ref.method()'
b. 2
d. 1
Select one:
a. 5
b. 0
c. 6
d. 1
Select one:
a. Both (i) and (ii) are FALSE
The correct answer is: Both (i) and (ii) are FALSE
public B (int i)
{
super(i);
System.out.print(i+3+" ");
}
}
Select one:
a. A B 5
b. A B 8
c. 5 8
d. B 8 A 5
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
Select one:
a. 999 111
b. 0 111
c. 111 111
d. 999 999
Select one:
a. 32 33 32
b. 32 32 33
c. 33 32 32
d. 32 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
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
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++;
}
}
}
}
Select one:
a. 0 0 12 34
b. 12 34
c. 12 34 0 0
d. 12 0 34 0
Select one:
a. Error: abstract class can't extends other abstract class
The correct answer is: Derived class need to override both "samplemethod" and "demomethod"
sai Sampath Ghantasala .
Select one:
a. 5
c. 6
d. null
The correct answer is: Compilation error at Line-1: i cannot be resolved to a variable
Select one:
a. Canada null
b. null Canada
c. null null
e. Canada Canada
The correct answer is: Compilation fails due to an error on line 12 ";country is not visible ";.
Select one:
a. Savings Account deposited with: 100
Select one:
a. Compilation error: Test Class cant extends Throwable
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>
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>
Question Which of the following attribute is used by a HTML tag to apply inline style? Choose most appropriate option.
39
Select one:
Correct
b. style
c. id
d. styleclass
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;
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
Select one:
a. only b
b. neither a nor b
c. both a and b
d. only a
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 .
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
Select one:
a. maxlength
b. maxsize
c. size
d. length
Select one:
a. number object
b. number undefined
c. int undefined
d. int 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
<script>
var key=10;
document.write(key);
}
document.write(key);
}
</script>
</head>
<body>
<form>
</body>
</html>
Select one:
a. 11 10
b. 11 11
c. 21 21
d. 20 21
<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
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>
</body>
</html>
Select one:
a. 10
b. 9
c. 8
d. 7
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;
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)
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;
The correct answer is: ALTER TABLE Employee ADD DateOfJoining DATE;
b. Only (ii)
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;
Question which command help us to get back the permission of accessing the table.
7
Select one:
Incorrect
b. rollback
c. grant
d. commit
Select one:
a. True
sai Sampath Ghantasala .
b. False
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';
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;
-----------------
JAN, 12-2017
Choose most appropriate option.
Select one:
a. 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');
The correct answer is: SELECT * FROM Employee WHERE designation IN('S' , 'A');
Select one:
a. SELECT Item.ItemCode,Item.UnitPrice,Vendor.VendorName FROM Item INNER JOIN Vendor ON Item.VendorId =
Vendor.VendorId;
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;
1 13
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);
The correct answer is: SELECT DISTINCT projectid FROM project WHERE projectid IN( SELECT projectid FROM project GROUP
BY projectid HAVING COUNT(employeeId)>1);
Select one:
a. 10 11 12 13 14
b. 15
c. 11 12 13 14
d. 14
Select one:
a. Both (1) and (3) are TRUE
The correct answer is: Both (2) and (3) are TRUE
Select one:
a. 201
b. 0
c. null
d. 101
Select one:
a. The string is Test String
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 .
}
}
Select one:
a. Nothing will be printed.
b. 2 times
c. 3 times
d. 1 time
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
Select one:
a. 1 to 3 will be displayed on the console
Select one:
a. 6
b. 1
c. 5
d. 0
Select one:
a. 100CC
b. 150CC
c. null
sai Sampath Ghantasala .
d. 100CC150CC
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++;
}
}
}
}
Select one:
a. 12 34 0 0
b. 12 34
c. 12 0 34 0
d. 0 0 12 34
Select one:
a. 200 200 200
d. 100 200 0
Select one:
a. Derived class need to override both "samplemethod" and "demomethod"
The correct answer is: Derived class need to override both "samplemethod" and "demomethod"
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
Select one:
a. Program will display both 1 and 2
b. 1
c. 2
Select one:
a. 32 32 32
b. 32 33 32
c. 32 32 33
d. 33 32 32
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
Select one:
a. Result : null
b. Result : 30
c. Result: 20
d. Result : 0
Select one:
a. -100
b. -8
c. 0
d. null
Select one:
a. 0.0 10000.0
b. 20000.0 10000.0
c. 10000.0 10000.0
Select one:
a. 6
b. null
c. 5
The correct answer is: Compilation error at Line-1: i cannot be resolved to a variable
Select one:
a. Account deposited with: 100
b. <i>
c. <h6>
d. <a>
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>
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
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!!");
Question In HTML, Which of the following is used to merge columns in a table? Choose most appropriate option.
41
Select one:
Correct
b. columns-span
c. colspan
d. cspan
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>
Select one:
a. true--false
b. false--true
c. false--false
d. true--true
Select one:
a. both a and b
b. only b
c. only a
d. neither a nor b
What will be printed in alert box in line 1? Choose most appropriate option.
Select one:
a. 646
b. 3346
c. 16
d. 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>
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
Question Which of the following is not a method of document object? Choose most appropriate option.
47
Select one:
Correct
b. print(String)
c. write(String)
d. getElementByTagName(String)
<script>
var key=10;
window.key=key+1;
document.write(key);
print();
}
document.write(key);
}
</script>
</head>
<body>
<form> sai Sampath Ghantasala .
<input type="submit" onclick="add()" />
</form>
</body>
</html>
Select one:
a. 20 21
b. 11 10
c. 11 11
d. 21 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">
</body>
</html>
Select one:
a. 8
b. 10
c. 7
d. 9
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>
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>
Select one:
a. 10 30
b. 40 40
c. 10 10
d. 10 40
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...
8 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...
9 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...
10 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...
11 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...
12 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...
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...
16 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...
17 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...
18 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...
19 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...
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+" ");
}
}
21 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...
22 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...
23 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...
24 of 34 22-02-2021, 09:55
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...
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...
9 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...
10 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...
11 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...
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...
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...
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...
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...
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+" ");
}
}
20 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...
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...
23 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...
24 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...
25 of 38 22-02-2021, 09:54
Quiz: Attempt review https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=33...
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...
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