wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

KFIN_Tech_Screening_Test_Python_101_Jan'24

Total questions: 60

Worksheet time: 3600secs

Name
Class
Date
1.
Which SQL function is used to count the number of rows in a SQL query?
a)
COUNT()
b)
NUMBER()
c)
SUM()
d)
COUNT(*)
2.
What is the meaning of LIKE ‘%0%0%’?
a)
Feature begins with two 0’s
b)
Feature ends with two 0’s
c)
Feature has more than two 0’s
d)
Feature has two 0’s in it, at any position
3.
_______ allow us to identify uniquely a tuple in the relation.
a)
schema
b)
superkey
c)
domain
d)
attribute
4.
What is ACID properties of Transactions?
a)
atomicity, consistency, isolation, database
b)
automatically, concurrency, isolation, durability
c)
atomicity, consistency, isolation, durability
d)
atomicity, consistency, inconsistent, durability
5.
If every non-key attribute is functionally dependent on the primary key, the relation will be in
a)
fourth formal form
b)
third normal form
c)
first normal form
d)
second normal form
6.
If a piece of data is stored in two places in the database, then
a)
in can be more easily accessed
b)
both storage space is wasted and changing the data in one spot will cause data inconsistency
c)
storage space is wasted
d)
changing the data in one spot will cause data inconsistency
7.
which of the following is not an Aggregate function?
a)
min
b)
max
c)
select
d)
avg
8.
What is DOM in HTML?
a)
Language dependent application programming
b)
Hierarchy of objects in ASP.NET
c)
Application programming interface
d)
Convention for representing and interacting with objects in html documents
9.
Which attribute is used with <select> element?
a)
multiple
b)
selected
c)
name
d)
value
10.
Which of the following tag is used to embed css in html page?
a)
<css>
b)
<!DOCTYPE html>
c)
<script>
d)
<style>
11.
Which of the following is the correct syntax to link an external style sheet in the HTML file?
a)
<link rel=”stylesheet” href=”style.css” />
b)
<link rel=”stylesheet” src=”style.css” />
c)
<style rel=”stylesheet” src=”style.css” />
d)
<style rel=”stylesheet” link=”style.css” />
12.
Which of the following function defines a linear gradient as a CSS image?
a)
gradient()
b)
linear-gradient()
c)
grayscale()
d)
image()
13.
Which of the following is correct about JavaScript?
a)
JavaScript is an Object-Based language
b)
JavaScript is Assembly-language
c)
JavaScript is an Object-Oriented language
d)
JavaScript is a High-level language
14.
Arrays in JavaScript are defined by which of the following statements?
a)
It is an ordered list of values
b)
It is an ordered list of objects
c)
It is an ordered list of string
d)
It is an ordered list of functions
15.
Which of the following is not javascript data types?
a)
Null type
b)
Undefined type
c)
Number type
d)
All of the mentioned
16.
Where is Client-side JavaScript code is embedded within HTML documents?
a)
A URL that uses the special javascript:code
b)
A URL that uses the special javascript:protocol
c)
A URL that uses the special javascript:encoding
d)
A URL that uses the special javascript:stack
17.
Which of the following object is the main entry point to all client-side JavaScript features and APIs?
a)
Position
b)
Window
c)
Standard
d)
Location
18.
Why event handlers is needed in JS?
a)
Allows JavaScript code to alter the behaviour of windows
b)
Adds innerHTML page to the code
c)
Change the server location
d)
Performs handling of exceptions and occurrences
19.
Which of the following is not an error in JavaScript?
a)
Missing of Bracket
b)
Division by zero
c)
Syntax error
d)
Missing of semicolons
20.

What is Babel?

a)

A transpiler.

b)

An interpreter

c)

A Compiler

d)

Both Compiler and Transpilar

21.

Props are __________ into other components

a)

Injected

b)

Methods

c)

Both A and B

d)

All of these

22.

Keys are given to a list of elements in react. These keys should be -

a)

Unique in the DOM

b)

Do not requires to be unique

c)

Unique among the siblings only

d)

All of the above

23.

How do you fix the syntax error that results from running this code?

a)

Wrap the object in parentheses.

b)

Call the function from another file.

c)

Replace the with an array

d)

Add a return statement before the first curly brace.

24.

What happens when the following render() method executes?

a)

Error. Cannot use direct JavaScript code in JSX

b)

Error. Should be replaced with a for..loop for correct output

c)

Displays the list of languages in the array

d)

Displays nothing

25.

What are two ways data gets handled in react?

a)

state & props

b)

services & components

c)

state & services

d)

state & component

26.

Which code snippet demonstrates conditional rendering in React using JSX?

a)

return isLogged ? <p>Welcome!</p> : null

b)

{isLogged ? <p>Welcome!</p> : <p>Please log in.</p>}

c)

if (isLogged) {

return <p>Welcome!</p>;

} else {

return <p>Please log in.</p>;

}

d)

{isLogged ? return <p>Welcome!</p> : return <p>Please log in.</p>}

27.

What is an API server

a)

Server that host websites and serve web pages to users' browsers when they request them.

b)

Server that host files and serve files to users when they request them.

c)

Server that host data and serve data to clients when they request them.

d)

Server that host APIs and serve data to clients when they request them.

28.

What method do we use to apply a middleware in express

a)

app.use(middleware)

b)

app.apply(middleware)

c)

app.config(middleware)

d)

app.render(middleware)

29.

______ allow you to generate HTML dynamically based on data from your application.

a)

Template Engines

b)

Routers

c)

Middlewares

d)

Controllers

30.

Which component ends the request cycle provided all business logic are met?

a)

Middleware

b)

Controller

c)

Request Hanlder

d)

None of the options

31.

What process is responsible for organizing data to minimize redundancy and dependency issues?

a)

Reverse engineering

b)

Normalization

c)

Minimization

d)

Dependency Reduction

32.

Fields/Columns are _____ within a table/collection

a)

attributes of data

b)

types of data

c)

records of data

d)

constraints of data

33.

Data stored in a database that represent a thing, person or object is referred to as:

a)

Entity

b)

Entropy

c)

Records

d)

Class

34.

A database is a does one of the following for us:

a)

persist data

b)

organize data efficiently

c)

provides ways for manipulation and retrieval of data

d)

All of the options

35.

How can we create chainable route handlers for a route path in ExpressJS app?

a)

Using app.route()

b)

Using app.router()

c)

Using app.routing()

d)

Using approute()

36.

In ExpressJS, which of these is correct which can accept all HTTP methods?

a)

method app.all(path, callback [, callback ...])

b)

method app.one(path, callback [, callback ...])

c)

method app.many(path, callback [, callback ...])

d)

method app.none(path, callback [, callback ...])

37.

How to store local variables that can be access within the application?

a)

Using app.locals

b)

Using app.storage

c)

Using database

d)

Config file

38.

Where is captured values are populated regarding route parameters?

a)

req.params object

b)

app.locals object

c)

req.data object

d)

None of above

39.

Where is captured values are populated regarding route parameters?

a)

req.params object

b)

app.locals object

c)

req.data object

d)

None of above

40.

MongoDB is a _________ database that provides high performance, high availability, and easy scalability.

a)

Graph

b)

Key value

c)

Document

d)

All of the mentioned

41.

NoSQL databases is used mainly for handling large volumes of ______________ data.

a)

Unstructured

b)

Structured

c)

Semi-structured

d)

All of the mentioned

42.

What is the correct order to create a routing module ?


1.Create express Router Instance.

2.Require express

3.module.exports

4.Create Route Handler function

a)

1324

b)

2134

c)

2143

d)

1234

43.

What is the result of following Program in python3

for i in range(1,4):

print(i)

if(i==2):

continue;

a)

1

b)

1

2

3

c)

error

d)

1

3

44.

Combining Data and Functions into a single unit is called

a)

Abstraction

b)

Inheritance

c)

Encapsulation

d)

Polymorphism

45.

What is it called where child object gets killed if parent object is killed?

a)

Aggregation

b)

Composition

c)

Encapsulation

d)

Association

46.

Which of the following is associated with objects?

a)

State

b)

Behaviour

c)

Identity

d)

All the above

47.

Evaluate the following expression in python:

"dog" < "Dog"

a)

They are the same word

b)

True

c)

False

48.

What is the output of the program above

a)

10

b)

15

c)

18

d)

17

e)

16

49.

What is the value of the variable sum after the code above executes

a)

54

b)

44

c)

64

d)

34

e)

74

50.

What does this program print

a)

2 + 2 = 4

4 + 4 = 8

8 + 8 = 16

16 + 16 = 32

32 + 32 = 64

b)

2 + 2 = 4

2 + 2 = 4

2 + 2 = 4

2 + 2 = 4

2 + 2 = 4

c)

2 + 2 = 4

2 + 4 = 6

2 + 6 = 8

2 + 8 = 10

2 + 10 = 12

d)

2 + 2 = 4

2 + 2 = 4

2 + 2 = 4

2 + 2 = 4

e)

2 + 2 = 4

2 + 4 = 6

2 + 6 = 8

2 + 8 = 10

51.

Write the output of the following code :


import random

for i in range(random.randint(2,2)):

print(i)

a)

0

1

b)

1

2

c)

0

1

2

d)

Generate different number

52.

Write the output of the following code :

import random

print(int(random.random()))

a)

Any random number less than 1 and greater than 0

b)

Always generate 0

c)

Always generate 1

d)

Shows Error

53.

How many types of functions are there in python?

a)

2

b)

4

c)

5

d)

6

54.

print(ord(‘A’)) displays____

a)

65

b)

A

c)

a

d)

97

55.

A block within a block is called ________block.

a)

Nested

b)

Control

c)

Compressed

d)

Called

56.

which function is used to read records from a binary file?

a)

pickle.load(f)

b)

pickle.read()

c)

pickle.open()

d)

pickle.dump(l,f)

57.

What will be the output of the following Python code?

a)

True

b)

False

c)

None

d)

error

58.

Which function is used to write multiple lines in text file?

a)

write()

b)

writelines()

c)

lines()

d)

print()

59.

What will be the output-

f=open('abc.txt','a')

text="xyz"

f.write(text)

f.close()

a)

Writing into the file without erasing old content

b)

Writing into the file by erasing old content

c)

reading from the file without erasing old content

d)

reading from the file by erasing old content

60.
Which approach produces a series of operational versions of the product:
a)
agile approach.
b)
RAD approach.
c)
structured approach.
d)
prototyping approach.