Final Assesment All-In-One-Domain
Final Assesment All-In-One-Domain
Q.1 Which of the following is the correct query to find all the orders against the employee who works
for the customer whose id is 1234 ?
Employee(eid, name, city) and orders (ord_no, purch_amt, ord_date, customer_id, eid)
OPTIONS:-
a) Select * from orders where eid (select DISTINCT eid from orders where customer_id=1234)
order by eid.
b) Select * from orders where eid =(select DISTINCT eid from orders where customer_id=1234);
c) Select * from orders where eid = (select eid from orders) where customer_id=1234;
d) Select * from salesman where eid =(select DISTINCT eid from orders) where customer_id=1234;
You are required to store information about students and the courses they study in college.
In this case, which one of the following statements describes correctly about the entities?
Q.4 Which of the following partitioning is used to put different rows into different tables?
a) Range
b) Hash
c) Vertical
d) Horizontal
Q.5 Which of the following queries can be used to display the records of the students from student table
with student names beginning with any of the letters but not between ‘B’ and ‘N’?
a) Select name from student where StudentName NOT BETWEEN ‘B’ and ‘N’;
b) Select * from student where StudentName NOT EXISTS ‘B’ and ‘N’;
c) Select * from student where StudentName NOT BETWEEN ‘B’ OR ‘N’;
d) Select * from student where StudentName NOT BETWEEN ‘B’ AND ‘N’;
Q.6 Two schedulers are _________equivalent if transaction in both schedules perform similar actions in
similar manner.
a) conflict
b) schedule
c) view
d) result
Q.7 whenever two independent one-to-many relationships are mixed in the same relation, which of the
following dependency arises?
a) Multi-valued dependency
b) Partial dependency
c) Functional dependency
d) Transitive dependency
Which of the following SQL statements lists if the employees with lastname =“Smith” or “Pears” have
registered more than 18 orders?
Choose the most appropriate alternative from the options given below
[Note mod finds the remainder after the division of one number by another. For
example, the expression “5 mod 2” would evaluate to 1 because 5 divisible by 2 leaves a
quotient of 2 and a remainder of 1 ]
a) 60216
b) 61206
c) 0
d) 165
Integer I, sum
Set i=1, sum=0
Sum=sum + i //Line 3
If(sum>500)
Print i
Else
i=i+1
go to line number 3
end if
32
45
28
36
Front End Technology
Question-1
In HTML 5 document, the users can define their own attributes. Identify the correct way to
declare a user defined attribute
Custom-XXXX
Customdata-XXXX
Data-XXXX
Datacustom-XXXX
Question-2
<object>
<big>
<applet>
<font>
Question-3
8px
48 px
16 px
32 px
Question-4
How many columns are allowed across the page in Bootstrap grid system?
16
12
8
24
Question-5
Identify the correct statement(s) about CSS3?
Only 2
Only 2 and 3
Only 1 and 3
Only 1 and 2
Question-6
Markup language
Machine language
Query language
Programming language
Question-7
Which new feature of CSS 3 makes it possible to adjust the transparency of the elements?
Rounded corners
Border Images
Box shadow
Opacity
Question-8
.container-solid
.container-fluid
.container-fixed
.container
Question-9
Which feature of CSS 3 is used to add special colored corner to the body or text by using the
border-radius property
Box shadow
Border images
Multi background
Rounded corners
Question-10
Blue
Green
Red
Black
Question-11
Question-12
Question-13
Which Angular CLI command is used to compile Angular projects into an output directory?
Ng build
Ng serve
Ng update
Ng generate
Question-14
Angular JS 6 is written in which programming language?
TypeScript
Python
C++
Java
Question-15
.col (extra small device –screen width less than 576 px)
.col-sm- (small device –screen >=576 px)
.col-md- (medium device –screen width >= 768 px)
.col-lg- (large device –screen width >=992 px)
.col-xl- (extra-large device –screen width >= 1200 px)
Question-16
For which of the following language Bootstrap 4 does not act as a Framework?
C++
HTML
CSS
JavaScript
Question-17
{expression}
{{expression}}
[expression]
(expression)
Question-18
<html>
<head>
<title> HTML Table Cell padding</title>
</head>
<body>
<table border=”1” cellpadding=”5” cellspacing=”5”>
<tr>
<th> Name</th>
<th> Salary</th>
</tr>
<tr>
<td> Ramesh Gupta</td>
<td> 5000</td>
</tr>
<tr>
<td> Amit Kumar</td>
<td> 8000</td>
</tr>
</table>
</body>
</html>
Question-19
Question-20
The synchronization between the model and the view in Angular is known
as_______________
Data binding
Property binding
Components
Modules
Question-21
<article>
<form>
<table>
<div>
Question-22
rgb(255,0,0)
rgb(0,0,255)
rgb(0,255,0)
rgb(255,255,0)
Question-23
What can be used to display smooth transitions between two or more specified colors in CSS
3?
Gradient
Question-24
Left
Right
Middle
Top
Bottom
Center
Question-25
.container-solid
.container-fluid
.container-fixed
.container
Question- 26
Question- 27
Radial
Top to bottom
Left to right
Diagonal
_____________________________________________________________________________
Question-28
Which of the following commands has been added in Angular 6 that was absent in the former
versions?
Ng-bind
Ng-serve
Ng-add
Ng-app
Question-29
Bootstrap's grid system uses a series of containers, rows, and columns to layout and align content. It's built
with flexbox and is fully responsive. Below is an example and an in-depth look at how the grid comes together.
-webkit- (Chrome, Safari, newer versions of Opera, almost all iOS browsers (including Firefox for iOS);
basically, any WebKit based browser)
-moz- (Firefox)
-o- (Old, pre-WebKit, versions of Opera)
-ms- (Internet Explorer and Microsoft Edge)
Question-30
if you have to align pagination to the right side of the web page then which of the following classes will be
used
a. pagination justify-content-center
b.pagination justify-content-end
c.pagination justify-content-right
d. pagination pagination-sm
Question-31
Which of the following statements is/are correct regarding web worker in HTML5?
1. A web worker is a script which runs in background with the page needing to wait for it complete
2. The user can continue to interact with the page, while the web worker in the background
3. Worker utilize thread like message passing to achieve parallelism
a. 2 and 3
b. 1 and 3
c. 1,2 and 3
d. 1 and 2
Question-32
Question-33
Identify the table that will be created by the CSS code given below.
<!DOCTYPE html>
<html>
<head>
<style>
table {
border-collapse: collapse;
}
table, td, th {
border: 1px solid black;
}
</style>
</head>
<body>
<table>
<tr>
<th>Firstname</th>
<th>Lastname</th>
</tr>
<tr>
<td>Parag</td>
<td>Singh</td>
</tr>
<tr>
<td>Gaurav</td>
<td>Kumar</td>
</tr>
</table>
</body>
</html>
Question-34
A. 3-4-1-2
B. 3-2-1-4
C. 3-1-2-4
D. 2-1-4-3
Question-35
Question-36
App Component:
1. new-cmp.component.css
2. new-cmp.component.html
3. new-cmp.component.spec.ts
4. new-cmp.component.ts
Functions:
a. An HTML file is created
b. A CSS file for the new component is created
c. It is used to define the module, properties, etc.
d. It can be used for unit testing
Question 1: Which of the following statements is/are true about comparing two
instances of the same class, given that the equals () and hashcode () methods have
been properly overridden?
1. If the equals () method returns true, the hashcode () comparison == might return
false.
2. If the equals () method returns false, the hashcode () comparison == might return
true.
3. If the hashcode () comparison == return true, the equals () method returns true.
4. If the hashcode () comparison == return true, the equals () method might returns
true.
Ans: . If the hashcode () comparison == return true, the equals () method might returns
true.
Question 2: What will be the output of the following code?
import java.util.*;
import java.lang.*;
import java.io.*;
class Newthread extends Thread
{
Newthread()
{
super ("My Thread");
start ();
}
public void run ()
{
System.out.println(this);
}
}
class Multithreaded_programming
{
public static void main (String args[])
{
new Newthread (); -------------Anonymous object creation
}
}
a) Compilation Error
b) My Thread
My Thread
c) My Thread
d) Thread [My Thread, 5, main].
}
public static void main(String args[])
{
TestExample t1 = new TestExample();
TestExample t2 = new TestExample();
t1.start();
t1.setDaemon(true);
t2.start();
}
}
Ans: illegalMonitorStateException
Question 6: What will happen if we try to compile the following code?
class Test1
{
public static void main(String args[])
{
Object i = Integer.valueOf(42);
String s = (String)i; //lines exception
System.out.println(s);
}
}
Ans: It will raise the ClassCastException object
Question 7: What will be the output of the following code for the input = 10?
import java.util.*;
import java.lang.*;
import java.io.*;
class Test
{
public static void main(String args[])
{
int N = Integer.parseInt(args[0]);
Boolean[] b1 = new Boolean[N+1];
for(int k=2;k<=N;k++)
{
b1[k] = true;
}
for(int k=2;k*k<=N;k++)
{
if(b1[k])
{
for(int j=k;k*j<=N;j++)
{
b1[k*j]= false;
}
}
}
int a= 0;
for(int k=2;k<=N;k++)
{
if(b1[k]) a++;
}
System.out.println("The number is <= " + N + " "+ a);
}
}
a. Runtime error
b. Compilation Error
c. 16
S1=”444same”;
S2=”444same”;
a) s1.append("same"); s2=s2.concat("same");
b) s1.append("same"); s2.concat("same");
c) s1.append("same"); s2.append("same");
a) This
is
my
home
town
Ans: Verified
import java.util.*;
class friends{
public static void main (String[] args)
{
LinkedHashSet<String> s1=new LinkedHashSet<String> ();
s1. add(“Joe”);
s1. add(“Smith”);
s1. add(“Joe”);
s1. add(“Tom”);
Iterator<String> it=s1.iterator();
while(it.hasNext()){
System.out.println(it.next());
}
}
Runtime error
Joe
Smith
Smith
Tom
Joe
Smith
Tom
Compilation error
Question 20: which of the following statements can be used in the blank space of the
following code to print 1 3 5 8 12?
a) (array.length-y+x)/2
b) (array.length/2-m+n)
c) (m-n)/2
d) (array.length+m-n)/2
Question 21: what will be the output of following code?
Import java.util.*;
Import java.lang.*;
Import java.io.*;
Class evaluate{
Public static void main(String [] args)
{
Int a[]={1,2,3,4,5};
Int d[]=a;
Int sum=0;
For(int j=0;j<3;++j)
Sum+=(a[j]*d[j+1])+(a[j+1]*d[j]);
System.out.print(sum);
}
}
38
39
40
30
Q.22 Which of the following is necessary to specify at the time of array initalisation?
a) Both Row and Column
b) Row
c) Column
d) None of the mentioned option
Q.23 Which of the following classes is related to all the exceptions that cannot be
caught?
a) RuntimeException
b) Exception
c) Error
d) CompileTimeException
Q.24 If public class prototype{ } is a class . what would be the default constructor for
this class?
a) prototype(void){ }
b) public prototype(int a, int b){ }
c) none of the mentioned options
d) public prototype(){ }
a) True
True
b) False
True
c) True
False
d) False
False
Q.26 We have created a final class names “student” . It has one final data member, a
parameterized constructor and getter method
For which of the following statement the above classes are immutable?
1. We can change the value of the instance variable after creating an object.
2. The class is final so we cannot create the subclass.
3. There are no setter methods
import java.util.*;
import java.lang.*;
import java.io.*;
class MyTest{
public static void main(String [] args){
char [] chars = new char[](‘\u0097’);
String str=new String(chars);
byte[]=str.getBytes();
Sytem.out.println(Arrays.toString(bytes));
}
}
a) [-62 -105]
b) [-32 -75]
c) [-60 -85]
d) Compile time Error
Q.28 what will be the output of following code:
import java.util.*;
public class Main{
public static void main(String[] args)
{
LinkedList l=new LinkedList();
l.add(new Integer(9));
l.add(new Integer(5));
l.add(new Integer(8));
l.add(new Integer(4));
Iterator it=l.iterator();
Collections.reverse(l);
Collections.sort(l);
while(it.hasNext())
System.out.print(it.next()+" ");
}
}
Answer :- 4 5 8 9
a) Connect
b) Runtime Error
c) Compile Time Error
d) Company
Q.30 As stop() method is deprecated which of the following method can be used to
terminate or stop infinitely running thread in java ?
1. It is used to let other recipients see an e-mail you sent without the main
recipient knowing.
2. It is used to send emails and disclose the receiver who else has received the
email.
3. It is used to send emails to only one receiver
4. It is used to attach images in emails
Ans: It is used to let other recipients see an e-mail you sent without the main
recipient knowing.
1. Email-client
2. Search engine
3. Website
4. Browser
Ans: Email-client
1. a Unary operator
2. not defined
3. a Ternary operator
4. a Binary operator
Question6: While sending or receiving emails you see the terms “Cc”. What
does “Cc” stands for in terms of email?
1. Carbon Copy
2. Closed Caption
3. Content Copy
4. Copy Content
Question8: In which of the following process the relation between two entities
is treated as a single entity?
1. isolation
2. Specialization
3. Generalization
4. Aggregation
Ans: Aggregation
Question9: While sending emails which option should be choose if you want to
put another person in a copy secretly?
1. Subject
2. Cc
3. Bcc
4. To
Ans: Bcc
Question11: In DBMS, there are two tables, Teacher containing the information
about all the teachers in a school and Class containing information about
classes taught by the teachers, which of the following relationship will link
them?
1. Many to many
2. None of the mentioned options
3. One to one
4. One to many
CODING Question
WAP to return the numbers of integers in given range (a-b), where numbers which are divisible by given
number a
}
}
WAP to return sum of numbers in given range (a-b), The numbers which are divisible by given number n
}
}
WAP to return the sum of marks (a,b,c)
Assumptions:
I: a>=0, b>=0, c>=0
II: passing marks: >=40
III: Return the sum of marks if it is >=40
Solution:
}
Written English Paragraph:-
200 words
1.People are harming themselves and others by not following traffic rules ?