wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

KFIN_Tech_Screening_Test_Python_102_Jan'24

Total questions: 60

Worksheet time: 3600secs

Name
Class
Date
1.
. .............. helps react for keeping their data unidirectional.
a)
JSX
b)
Flux
c)
Dom
d)
Props
2.
What is the declarative way to render a dynamic list of components based on values in an array
a)
Using the reduce array method
b)
With a for/while loop
c)
Using the <Each /> component
d)
Using the Array.map() method
3.
Which of the following below act as the input of a class-based component?
a)
class and factory
b)
render and mount
c)
props
4.

Which of the following is NOT a rule for React Hooks?

a)

Hooks cannot be conditional

b)

Hooks can only be called at the top level of a component

c)

Hooks can be called in class or function components

d)

Hooks can only be called in inside React function components

5.

Which among these is NOT a component life-cycle method?

a)

componentDidMount()

b)

componentDidUpdate()

c)

componentWillMount()

d)

componentWillUnmount()

6.

Which of the following is used for creating API's in JS?

a)
Node.js
b)
React.js
c)
Angular.js
d)
Express.js
7.
What is the primary use of Node.js?
a)
To build interactive user interfaces
b)
To develop mobile applications
c)
To write server-side applications
d)
To create graphics and animations
8.
Which of the following is true about Node.js?
a)
It's a compiled language
b)
It's single-threaded and asynchronous
c)
It's primarily used for desktop applications
d)
It's not suitable for web development
9.
What is the Node.js 'event loop' responsible for?
a)
Processing incoming HTTP requests
b)
Running JavaScript code asynchronously
c)
Managing database connections
d)
Handling server security
10.
Which HTTP status code is typically used for a successful HTTP GET request?
a)
200 (OK)
b)
404 (Not Found)
c)
500 (Internal Server Error)
d)
401 (Unauthorized)
11.

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.

12.

Which table property is used to specify the distance between its two cells.

a)

padding

b)

spacing

c)

cell-padding

d)

border-spacing

13.

Which of the following tag represents a generic document or application section in HTML5?

a)

article

b)

section

c)

aside

d)

header

14.

What css rule creates a flexbox container?

a)

flex: box

b)

display: flexbox

c)

flex: container

d)

display: flex

15.
Where in the HTML document is the correct location to insert code to link to your external CSS? 
a)
In the <head> section
b)
In the <body> section
c)
At the very end of the document
d)
At the very beginning of the document
16.
Which is correct CSS syntax? 
a)
{ body; color=black;}
b)
body: color= black
c)
body {color:black;}
d)
(body color is black) 
17.
How to change the below code to inline CSS code <p><font color = "green" size = "5">Hello, World!</font></p>
a)
<p style = "font-color:green; font-size:24px;" >Hello, World!</p>
b)
<p style = "color:green; font-size:24px;" >Hello, World!</p>
c)
<p style = "font color:green, size:24px;" >Hello, World!</p>
d)
<p style = "color:green; size:24px;" >Hello, World!</p>
18.

To display writing on the screen you must include this direction; in javascript

a)
Document Write
b)
documentWrite
c)
document.write( )
d)
document.write
19.

A variable in javascript

a)
Expresses a true false statement
b)
stores a string, number, or boolean, and gives it a specific, case-sensitive name
c)
takes in an input, does something with it, and then returns an output.
d)
Runs a boolean (true/false) statement based on data entered
20.

What is MongoDB primarily known as?

a)

Relational Database Management System

b)

Document-Oriented Database Management System

c)

Graph Database Management System

d)

Key-Value Database Management System

21.

Which MongoDB operator is used to query for documents where a specific field's value is greater than a specified value?

a)

$eq

b)

$gt

c)

$lt

d)

$in

22.

What is the purpose of the find method in MongoDB?

a)

To update documents in a collection

b)

To delete documents from a collection

c)

To insert documents into a collection

d)

To query documents in a collection

23.

Which command is used to create a new table/collection in MongoDB if it doesn't exist?

a)

db.createDatabase()

b)

db.ensureDatabase()

c)

db.newDatabase()

d)

db.createCollection()

24.

What is the default port number for MongoDB?

a)

27017

b)

8080

c)

3000

d)

5432

25.

What happens if you attempt to update a document in MongoDB with the upsert option set to true, but the document does not exist

a)

An error is thrown

b)

A new document is inserted with the specified update.

c)

The existing document is updated.

d)

Nothing happens.

26.

app.use is used for

a)

The middleware function is executed when the base of the requested path matches path.

b)

Routes HTTP GET requests to the specified path with the specified callback functions.

c)

Both mentioned

d)

None mentioned

27.

Identify the last node in the post-order traversal of this binary tree.

a)

8

b)

1

c)

9

d)

5

28.

The minimum number of nodes in a tree with height m is _____

a)

2*m

b)

m-1

c)

m

d)

m+1

29.

In which condition is the React.js Lifecycle method static getDerivedSateFromProps(props, state) is call

a)

When the state of the component is updated

b)

When a component is created for the first time

c)

Both

d)

None of the mentioned

30.

Which of the following is method is not a part of ReactDOM?

a)

ReactDOM.hydrate()

b)

ReactDOM.destroy()

c)

ReactDOM.createPortal()

d)

All of the mentioned

31.

Which of the following is used to pass data to a component from outside in React?

a)

props

b)

render with arguments

c)

setState

d)

PropTypes

32.

What is the output of the given code?

a)

10 20 10

b)

10

c)

20

d)

10 20

33.

What is the output of the given code?

a)

10 20 10 20

b)

10 20 10

c)

10 20 20

d)

Error

34.

Function header in Python contains _________________.

a)

function name

b)

list of parameters

c)

return type

d)

all the above

e)

Only A & B

35.

___________ are the arguments passed to a function in correct positional order.

a)

Keyword arguments

b)

Default arguments

c)

Variable-length arguments

d)

Required arguments

e)

none of the above

36.

times is ________________ type of argument.

a)

default arguments

b)

keyword arguments

c)

positional arguments

d)

arbitrary positional arguments

e)

arbitrary keyword arguments

37.

What is the output of the attached python code?

a)

Take the card out of ATM

Value Error Occurred

Done

b)

Take the card out of ATM

Type Error Occurred

c)

Take the card out of ATM

Some Error Occurred

d)

Take the card out of ATM

Withdraw

Done

38.

What is the output of the attached python code?

a)

100

b)

0

c)

Zero Division Error Occurred

d)

Another error will occur, program will "crash"

39.

What is the output of the attached python code?

a)

Function name error

Sum finally

Invocation finally

b)

Invocation name error

Invocation finally

c)

Sum finally

Invocation name error

Invocation finally

d)

Function name error

Sum finally

40.

Choose the correct function from the following list to get the random integer between 99 to 200, which is divisible by 3.

a)

random.randrange(99, 200, 3)

b)

random.randint(99, 200, 3)

c)

random.random(99, 200, 3)

41.

Which of the following query is correct to get Current Date from Query?

A. SELECT DATE ( NOW() ) as today;

B. SELECT DATE_FORMAT( NOW( ) , '%Y-%m-%d' ) as today;

a)

A. SELECT DATE ( NOW() ) as today;

b)

B. SELECT DATE_FORMAT( NOW( ) , '%Y-%m-%d' ) as today;

c)

Both A and B

d)

None

42.

The _________ statement is used to delete a table.

a)

DROP TABLE

b)

DELETE TABLE

c)

DEL TABLE

d)

REMOVE TABLE

43.

The SQL keyword BETWEEN is used:

a)

For ranges.

b)

To limit the columns displayed.

c)

As a wildcard.

d)

None of the above

44.

Write a query to display first_name and last_name of all employees who have their first_name starting with 'A'.

a)

Select first_name from employess where first_name LIKE '%A';

b)

Select first_name from employess where first_name LIKE "'A'%";

c)

Select first_name from employess where first_name LIKE 'A%';

d)

Select first_name from employess where first_name LIKE '%A%';

45.

Which error occurs while the program is running and cannot be detected by the PL/SQL compiler?

a)

Syntax error

b)

Runtime error

c)

Both A & B

d)

None of the above

46.

Which of the following returns the current error message text?

a)

SQLERRM

b)

SQLCODE

c)

Both A & B

d)

None of the above

47.

Which of the following keywords will you use to display unique values of the column dept_name ?


SELECT ______ dept_name from COMPANY;

a)

All

b)

distinct

c)

from

d)

name

48.

Total number of rows/records/horizontal arrangement in a table is called:

a)

Degree

b)

Records

c)

Integer

d)

Cardinality

49.

Given a sequence of number below:

50,60,40,70,45,55,30,80,65,35,25,75,85


When creating a binary search tree, what is the height of the tree?

a)

3

b)

4

c)

5

d)

6

50.

Given a binary search tree, insert 27, 15, 63, 99, 70 and 85 (in this order) into the binary search tree. What is the post-order traversal?

a)

5,15,27,34,47,54,63,70,72,75,83,85,88,94,99,101

b)

72,54,34,5,27,15,47,63,70,83,75,88,85,101,94,99

c)

15,27,5,47,34,70,63,54,75,85,99,94,101,88,83,72

d)

15,27,5,47,34,63,54,70,75,85,99,94,101,88,83,72

e)

none of the above

51.

Which one of the following is NOT part of SDLC conceptual model?

a)

Requirement Analysis

b)

Design

c)

Testing

d)

Product Bug

52.

Fill in the blank.


We store all these information into something call _________ which has Tables that includes rows and columns.

a)

API

b)

database

c)

client

d)

JSON

53.

The spiral model has two dimensions namely _____________ and ____________

a)

diagonal, angular

b)

radial, perpendicular

c)

radial, angular

d)

diagonal, perpendicular

54.

Which of the following activities of a Generic Process framework provides a feedback report?

a)

Communication

b)

Planning

c)

Modeling & Construction

d)

Deployment

55.
Which of the following is true about Node.js?
a)
It's a compiled language
b)
It's single-threaded and asynchronous
c)
It's primarily used for desktop applications
d)
It's not suitable for web development
56.

What is the HTTP status code for Server Error

a)

200

b)

300

c)

400

d)

500

57.
Which is not an in-build hook?
a)
useEffect
b)
useFetch
c)
useState
d)
useRef
58.
In which phase of lifecycles do the states initialise?
a)
Updating
b)
Mounting
c)
Unmounting
d)
Both 1 and 2
59.

What is the difference between props and state in React?

a)

Props and state are the same thing in React.

b)

Props are used to pass data from a parent component to a child component, while state is used to manage data within a component.

c)

Props are used to manage data within a component, while state is used to pass data from a parent component to a child component.

d)

Props and state are both used to manage data within a component.

60.

Which of the following function is used to change the state of react component?

a)

setState()

b)

state()

c)

setChangeState()

d)

None of the above