0% found this document useful (0 votes)
2 views24 pages

Interview Questions

The document contains a comprehensive list of theoretical and coding questions related to SQL, Python, and data analysis tools like Tableau. It includes various tasks such as querying databases, understanding key concepts, and performing data manipulations. Additionally, it features links to data sets and emphasizes the importance of understanding both theoretical concepts and practical coding skills.

Uploaded by

Aftab
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views24 pages

Interview Questions

The document contains a comprehensive list of theoretical and coding questions related to SQL, Python, and data analysis tools like Tableau. It includes various tasks such as querying databases, understanding key concepts, and performing data manipulations. Additionally, it features links to data sets and emphasizes the importance of understanding both theoretical concepts and practical coding skills.

Uploaded by

Aftab
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 24

THEORETICAL & CODING 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

We want to find 3rd largest salary for every department in a company.


Type a query and get manager ID of the employees from table.
Why do we use subqueries inside a bigger query?
What is a self join?
How to replace null values.
How to import data from different servers in a single table.
Difference between Union and Union all.
Matrix Transpose in SQL
Different Modelling Techniques
What are Constraints in SQL?
What are some common clauses used with SELECT query in SQL?
List the different types of relationships in SQL.
Difference between Rank and Dense_Rank function
Difference between Lead and Lag function
Are NULL values in a database the same as that of blank space or zero?
What is meant by normalization and denormalization?
what is Having and Group by
Difference between count(*) and count(column_name)
How to find Nth highest from the table
RFM analysis
Given in sqlemp_id, emp_name, Year and Salary find each employees first and
a table with
current salary(
getting more with and
salaries without
than window function)
their managers

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?

What is Broadcasting in Numpy?


How to Transpose a Numpy Array?
Explain rules of Broadcasting in Numpy?
What is the difference between range() and arange() functions in Python?
How do you get the dimension of a Numpy array?
Create a Numpy array filled with all ones
Create a Numpy array filled with all zeros
Where is NumPy used?
What is stack and its types?
Methods to reshape the dataframe? (Or) how to add an Index, row, or column to a Pandas DataFrame?
What is the Flatten method in pandas?
What is use of Reindexing in pandas?
Difference between sort values and sort index.
How to convert a DataFrame to an array in Pandas?
Name some methods of pandas that are useful to handle the missing values. 7) What is the difference between loc and iloc in
How will you slice rows in a panda DataFrame?
Mention the different Types of Data structures in pandas?
How can you check if a DataFrame is empty in pandas?
Difference between merge,join,concat?
How to iterate over a Pandas DataFrame?
How to add an Index, row, or column to a Pandas DataFrame?
How can we get the statistical summary of data in a panda DataFrame?
What is use of GroupBy objects in Pandas?
What is multiple Indexing?
Difference between Pandas Series and NumPy Arrays
Difference between Groupby and pivot.
How will you get the number of rows and columns of a DataFrame in pandas?
What is Vectorization in pandas?
How is python different from other programming languages.
Code to check whether a number is prime or not
difference between list and array
THEORETICAL QUESTIONS
SNo Questions
1 Tableau joins questions
2 Tableau questions regarding plots.
3 Tools used through out the course
4 Data warehouse
5 Tableau - LOD and its uses
6 Tableau -Calculated fields
7 If else / case when statements
8 Data modeling
9 Questions on data visualization part like what graph would be appropriate
10 How to detect outliers visually (box plot) and quartile
11 Tableau- Difference between binding and joining
12 Tableau basics
13 Charts
14 Filters
15 Parameters
16 Sales across regions using map
17 Top 10 customers across sales
18 Find top 10 city using parameters
19 Tree map using any dimensions and measures
20 Customers with sales more than 1000
21 Difference between extract and live source
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41

You might also like