wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

eInfochips

Total questions: 71

Worksheet time: 1hrs 11mins

Name
Class
Date
1.

Enter Your Name

4 lines
2.

Enter Your Enrolment No

4 lines
3.

Enter Your Branch(AIML, DS, CSE)

4 lines
4.

Enter Your Email ID(xxxxxxxxxxx@acropolis.in)

4 lines
5.

What are the three main programming structures?

a)

Sequence, selection, iteration

b)

Structured, object-oriented, procedural

c)

Java, Python, Visual Basic

d)

Machine, assembly, high-level

6.
What is the Output if the user enters:
Yes
a)
Leave umbrella at home
b)
Take an umbrella
7.

In a Python program , a control structure:

a)

directs the order of execution of the statements in the program

b)

dictates what happens before te program starts and after it terminates

c)

defines program-specific data structures

d)

manages the input and output of control characters

8.

What is the output of the above program ?

a)

Am I here?

b)

Or here ?

c)

Am I here ? Or here ?

d)

Or here ? Or over here ?

9.

If the user inputs : 2<Enter> , what does the following code snippet print ?

a)

Yes

b)

No

c)

May be

d)

Nothing printed

e)

Error

10.

Function range(3) is equivalent to "

a)

range(1,3)

b)

range(0,3)

c)

range(0,3,1)

d)

range(1,3,0)

11.
This operator means that one value is not equal to another value
a)
==
b)
<=
c)
>=
d)
!=
12.

What is the output?

a)

condition

b)

True

c)

Program has a syntax error.

d)

3 > 2

13.

What is the output?

a)

more than 7

b)

more than 23

c)

spam

d)

7

14.

What is the output?

a)

3

b)

3

7

c)

3

5

7

d)

7

15.

What is the output?

a)

True

b)

NIL

c)

True

NIL

d)

True

NIL

NIL

16.

What is the output?

a)

level 3

b)

level 3

level 1

c)

level 3

level 1

NIL

d)

level 3

level 2

level 1

NIL

17.

An If statement can be executed multiple times

a)

FALSE

b)

TRUE

18.

The ‘else’ statement is optional in Python

a)

TRUE

b)

FALSE

19.

It is possible to execute both the statements under if and else at the same time.

a)

TRUE

b)

FALSE

20.

There can be an else statement without an if statement

a)

FALSE

b)

TRUE

21.

The program generates an error message if the "else" statement is not defined

a)

FALSE

b)

TRUE

22.

Python supports (a)   types of loops

23.

What is the output?

a)
Hello world!
b)
Hello world
c)
Hello world!
Hello world!
Hello world!
Hello world!
Hello world!
Hello world!
......(repeated continuously)
d)
Error
24.

What is the output if the user types "Python"?

a)
Welcome
b)
Try again!
c)
Error
d)
Enter your password
25.

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

26.

Which of the following is a valid data type in MongoDB?

a)

String

b)

Float

c)

Date

d)

All of the options

27.

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

28.

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

29.

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()

30.

What is the default port number for MongoDB?

a)

27017

b)

8080

c)

3000

d)

5432

31.

Which MongoDB operation is used to insert a new document into a collection?

a)

db.collection.create()

b)

db.collection.add()

c)

db.collection.insertOne()

d)

db.collection.updateOne()

32.

Which MongoDB update method updates a single document matching the specified criteria

a)

updateOne()

b)

updateMany()

c)

update()

d)

findOneAndUpdate()

33.

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.

34.

Which MongoDB method is used to remove a single document from a collection that matches a specified query?

a)

db.collection.delete()

b)

db.collection.removeOne()

c)

db.collection.deleteOne()

d)

db.collection.remove()

35.

Which module provides a powerful expression language for querying and manipulating an object graph at runtime?

a)

JDBC

b)

Expression Language

c)

ORM

d)

AOP

36.

Which module provides an abstraction layer that supports Object/XML mapping implementations for JAXB, Castor, XMLBeans, JiBX and XStream?

a)

OXM

b)

Transaction

c)

Web

d)

JMS

37.

Which module provides consistent loading of Spring ApplicationContexts and caching of those contexts for testing Spring components with JUnit or TestNG?

a)

AOP

b)

Web

c)

Test

d)

Instrumentation

38.

Which module contains Spring's model-view-controller (MVC) implementation for web applications?

a)

Web-Portlet

b)

Web

c)

Web-Servlet

d)

Web-Struts

39.

Which module provides the MVC implementation to be used in a portlet environment and mirrors the functionality of Web-Servlet module?

a)

Web

b)

Web-Servlet

c)

Web-Portlet

d)

Web-Struts

40.

Which module provides basic web-oriented integration features such as multipart file-upload functionality and the initialization of the IoC container using servlet listeners and a web-oriented application context?

a)

Web-Portlet

b)

Web-Servlet

c)

Web

d)

Web-Struts

41.

Which module builds on the solid base provided by the Core and Beans modules and is a means to access objects in a framework-style manner that is similar to a JNDI registry?

a)

Core

b)

Beans

c)

Context

d)

Expression Language

42.

Which module provides integration layers for popular object-relational mapping APIs, including JPA, JDO, Hibernate, and iBatis?

a)

OXM

b)

ORM

c)

JDBC

d)

JMS

43.

Which module supports programmatic and declarative transaction management for classes that implement special interfaces and for all your POJOs (plain old Java objects)?

a)

Transaction

b)

OXM

c)

ORM

d)

JDBC

44.

Which module contains features for producing and consuming messages?

a)

ORM

b)

OXM

c)

JMS

d)

JDBC

45.

Which Azure Service provides dedicated hardware security modules for cryptographic key management?

a)

Azure Monitor

b)

Azure Dedicated HSM

c)

Azure Bastion

d)

Azure ATP

46.

Which Azure Service provides protection for data in use through hardware-based trusted execution environments?

a)

Azure DDoS Protection

b)

Azure Firewall

c)

Azure Confidential Computing

d)

Azure Defender

47.

Which Azure Service provides unified security management and threat protection for cloud resources?

a)

Azure Active Directory ( Azure AD )

b)

Azure Security Center

c)

Azure Sentinel

d)

Azure Key Vault

48.

Which Azure service provides a web-based interface for no-code machine learning model development?

a)

Azure OpenAI Service

b)

Azure Applied AI Services

c)

Azure Machine Learning Studio

d)

Azure Anomaly Detector

49.

a)

Azure Machine Learning

b)

Azure Cognitive Services

c)

Azure Bot Service

d)

Azure Cognitive Services

50.

a)

Azure Cache for Redis

b)

Azure Database Migration Service

c)

Azure Synapse Analytics

d)

Azure HDInsight

51.
a)

Azure SQL Database

b)

Azure SQL Managed Instance

c)

Azure Database for MySQL

d)

Azure Database for PostegreSQL

52.

What kind of NoSQL database MongoDB is?

a)

Document Oriented

b)

Key Value

c)

Graph

d)

Column Oriented

53.

Which of the following is a valid MongoDB JSON document:

a)

{}

b)

{ "user_id"=1, "user_name"="Joe Sanders", "occupation"=["engineer","writer"] }

c)

{ "user_id":1; "user_name":"Joe Sanders"; "occupation":["engineer","writer"] }

d)

{ "user_id":1, "user_name":"Joe Sanders", "occupation":[ "occupation1":"engineer", "occupation2":"writer" ] }

54.

What does the output x of the following MongoDB aggregation query result into:

db.posts.aggregate( [ { $group: { _id: "$author", x: { $sum: $likes } } } ] )

a)

Average of likes on all the posts of an author, grouped by author

b)

Number of posts by an author

c)

Sum of likes on all the posts by an author, grouped by author

d)

Sum of likes on all the posts by all the authors

55.

Consider that you have the following two documents in the products collection:

{ "_id" : 1, "prices" : [ 60, 100, 200 ] }

{ "_id" : 2, "prices" : [ 20, 90, 150 ] }

What will the following query result into:

db.products.update( { _id: 1, prices: 100 }, { $set: { "prices.$" : 111 } } )

a)

Updates 60 to 100

b)

Updates 100 to 111

c)

Updates 60,100 and 200 to 111

d)

Removes the three elements of the prices array and replaces it only a single element 111

56.

Which of the following aggregation query will sort the posts collection with author key ascending:

a)

db.posts.aggregate([ {$sort:{ author:1 } } ])

b)

db.posts.aggregate([ {$sort:{ author:-1 } } ])

c)

db.posts.aggregate([ {author: {$sort: 1} } ])

d)

You need to first use $group or $project or $match command before $sort in the pipeline

57.

Which of the following commands create an unique index on author field of the posts collection?

a)

db.posts.createIndex({"author":1 }, {"unique": true});

b)

db.posts.createIndex({"author": unique });

c)

db.posts.createIndex({"author": {$unique:1} });

d)

db.posts.createIndexUnique({"author":1 });

58.

In a collection that contains 100 post documents, what does the following command do?

db.posts.find().skip(5).limit(5)

a)

Skip and limit nullify each other. Hence returning the first five documents.

b)

Skips the first five documents and returns the sixth document five times

c)

Skips the first five documents and returns the next five

d)

Limits the first five documents and then return them in reverse order

59.

Consider a collection posts which has fields: id, posttext, post_author, post_timestamp, post_tags etc. Which of the following query retrieves ONLY the key named post_text from the first document retrieved?

a)

db.posts.find({},{_id:0, post_text:1})

b)

db.posts.findOne({post_text:1})

c)

db.posts.finOne({},{post_text:1})

d)

db.posts.findOne({},{_id:0, post_text:1})

60.

A collection and a document in MongoDB is equivalent to which of the SQL concepts respectively?

a)

Table and Row

b)

Table and Column

c)

Column and Row

d)

Database and Table

61.

Which of the following MongoDB query is equivalent to the following SQL query:

UPDATE users SET status = "C" WHERE age > 25

a)

db.users.update( { age: { $gt: 25 } }, { status: "C" })

b)

db.users.update( { age: { $gt: 25 } }, { $set: { status: "C" } })

c)

db.users.update( { age: { $gt: 25 } }, { $set: { status: "C" } }, { multi: true })

d)

db.users.update( { age: { $gt: 25 } }, { status: "C" }, { multi: true })

62.

Which of the following is true about ng-app directive?

a)

ng-app directive defines and links an AngularJS application to HTML

b)

ng-app directive indicates the start of the application.

c)

Both

d)

None

63.

AngularJS is perfect for _______

a)

Create Single Page Applications

b)

Creating a Desktop Application

c)

Create Web Services

d)

None

64.

AngularJS is a _____.

a)

HTML Framework

b)

.Net Framework

c)

JavaScript framework

d)

Oracle Framework

65.

AngularJS is distributed as a _______.

a)

JavaScript file

b)

PHP file

c)

HTML file

d)

Java file

66.

Who developed AngularJS?

a)

Jesse James Garrett

b)

Douglas Crockford

c)

Miško Hevery

d)

Brendan Eich

67.

AngularJS expressions are written inside _____.

a)

{ expression }

b)

[{ expression }]

c)

_expression

d)

{{ expression }}

68.

Which directive can be used to write AngularJS expressions?

a)

ng-expression

b)

ng-bind

c)

ng-statement

d)

ng-bindexpression

69.

An AngularJS module defines an ______.

a)

expression

b)

application

c)

element

d)

None

70.

Which prefix is used with the AngularJS directives?

a)

ng-

b)

ag-

c)

ang-

d)

js-

71.

Which directive initializes an AngularJS application?

a)

ng-app

b)

ng-init

c)

ng-model

d)

ng-application