Interview Questions
Interview Questions
Sno
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
AL & CODING QUESTIONS
Questions
Find customer details (with salesman information) where grade is greater than
100and commission
Find all customer is greater
records than 14
containing the word "brad" in the name,
regardlessof whether it was stored as BRAD, Brad, brad
Find the details for the customer who recently make his first purchase
Find number of salesid for each city in ascending order
Find the
Find number of records
details from customer
for salesman tablewhere
and customer with new York city
customer make their first
purchasein the month of November
What are ACID properties
What is the Difference between drop, delete and truncate.
Explain Primary and Unique key
Explain Relationship between tables, primary key, foreign key
Difference between non correlated subquery and correlated query
explain
Finddifferent
the no.types of joins
of records in inner, left, right, cross join
How will
Given u getwith
a table the duplicate records(3
id,name,subject, approaches)
mark. I need the output like id, name, science mark ,
maths mark
Given a table with emp_id, name, year, salary find the previous year salary for the
employee
Top 10 employees with highest salary
find the employees if their salary is 2 times more than the average salary of their
department
Find the employees who are working for our company for more than 10 years
Find the year wise sales for each product
Difference
Find between
the total salary where
amountclause
for alland having clause
employees for the year 2020
query
to print ‘welcome’
product price(usd),for numeric
weight value and
( decimal ) and‘india’ for alphabet.
city name) - Write a query to split kg & grms
and
Salesdisplay
columnit in two columns(
contains kgas
negative & grms)
well as positive values . write a query to print sum of
positive
, data scientist , data engineer ) - Write ainquery
sales as well as negative sales singletoquery . 5 columns ( doctor , singer,
display
actors , data scientist
Student_player , data engineer
table contains columns) with names
(name, withheight,
teams, respectweight,
to each occupation
college, salary) -
Write a query to print highest paid player in each college and from each team
What is the difference between an inner join and a union?
Data Sets
https://drive.google.com/drive/folders/1rFN0WuJ-xMlWHBuGw3HownLdoem0Em-W
https://drive.google.com/file/d/1tuUrJx1a0-32H6hagEy9M0RTnnyYoVig/view?usp=sharing
https://drive.google.com/file/d/1tuUrJx1a0-32H6hagEy9M0RTnnyYoVig/view?usp=sharing
CODING QUESTIONS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
THEORETICAL QUESTIONS
SNo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
TIONS l1[1] = 6
print(l, l1)
a = "abcd"
print(list(map(list, a)))
What is the output B = [11,13,15,17,19,21] ptint(b[::2])
var//=2
print(var)
while i in s:
print('i'
else : , end=" ")
print("No results"))
print(DrAlbie.speak("don't eat apples"))
print(DrAlbie.description())
fn1 = lambda a : a*2*x
print(fn1(6))
result = map(lambda x: x + x, numbers)
print(list(result))
What is the output of the following?
print("abbzxyzxzxabb".count('abba',
int1 = 2 -10, -1)
fn1()
alpha.pop(1)
print(alpha)
obj.books = 2
print(obj.quantity
c = B() + len(obj.__dict__))
c.display()
setattr(x, 'a', y + 1)
print(x.a)
Output: 2
Output Format: For each test case, print “YEAH” if ‘prod’ is divisible by ‘sum’, otherwise print “NAH”.
Output=
Problem [{'cat'}, {'dog', 'god'}]
Statement:
Given the participants’ score sheet for your University Sports Day, you are required to find the runner-up score. You are given
2
the score of the runner-up.
Input Format
The first line contains n. The second line contains an array A[] of n integers each separated by a space.
Constraints
• 2 ≤ n ≤ 10
• -100 ≤ A[i] ≤ 100
Output Format
Print the runner-up score.
Sample Input
5
23665
Sample Output
5
QUESTIONS
Questions
All keywords in Python are in _________
Which type of Programming does Python support?
Is Python case sensitive when dealing with identifiers?
Python
x = 25supports the creation of anonymous functions at runtime, using a construct called __________
a=x+b
Which of the function among will return 4 on the set s = {3, 4, 1, 2}?
Which keyword is used for function in Python language?
How can you create a numpy array comprising of 5 random integers between 1 and 100
How can you convert a series object to a numpy array?
How can you remove selected few records from a dataframe?
Choose the correct syntax for reading from a text file stored in ‘‘c:\scores.txt’’?
If particular data series (X) is normally distributed then
Numpy array vs list
Numpy array vs series
What is an array?
How to add and remove elements from an array?
How to stack an array depth wise?
What is
What is the
all the different
Flatter stacking? (then later asked whether d.stack available)
method?