wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Lecture-3

Total questions: 23

Worksheet time: 12mins

Name
Class
Date
1.

What is the primary purpose of application development?

a)

To manage network security

b)

To conduct market research

c)

To design hardware components

d)

To create and maintain computer programs

2.

Which of the following is NOT a stage in the application development process?

a)

Marketing

b)

Deployment

c)

Testing

d)

Design

3.

What is an algorithm?

a)

A hardware component

b)

A programming language

c)

A step-by-step set of instructions

d)

A type of software application

4.

Which characteristic of an algorithm ensures it has a clear meaning?

a)

Well-defined inputs

b)

Finite-ness

c)

Language independent

d)

Clear and unambiguous

5.

What is the output of an algorithm?

a)

The input data

b)

The steps taken

c)

The result or decision generated

d)

The programming language used

6.

Which type of algorithm is used for optimization problems?

a)

Sorting Algorithm

b)

Search Engine Algorithm

c)

Greedy Algorithm

d)

Recursive Algorithm

7.

What is a program?

a)

A software development kit

b)

A hardware device

c)

A type of algorithm

d)

A set of instructions in a programming language

8.

What is the main difference between an algorithm and a program?

a)

A program is written in a programming language, while an algorithm is not

b)

An algorithm can be executed, while a program cannot

c)

An algorithm is more complex than a program

d)

A program is a theoretical concept, while an algorithm is practical

9.

What is the purpose of functions in programming?

a)

To compile code

b)

To create user interfaces

c)

To encapsulate specific tasks

d)

To manage memory

10.

Which of the following is an example of a library in programming?

a)

C++

b)

Python

c)

NumPy

d)

Java

11.

What is a framework in programming?

a)

A collection of algorithms

b)

A hardware component

c)

A complete structure for building applications

d)

A type of programming language

12.

Which of the following is a key advantage of using libraries in development?

a)

They require extensive coding

b)

They are always free to use

c)

They are only for web development

d)

They provide pre-written, reusable code

13.

What is the role of machine learning algorithms in application development?

a)

To design hardware

b)

To manage databases

c)

To learn patterns from data

d)

To create user interfaces

14.

Which algorithm is used for predicting outcomes based on input data?

a)

Decision Trees

b)

Sorting Algorithms

c)

Hashing Algorithms

d)

Brute-Force Algorithms

15.

What is the purpose of encapsulating logic in functions?

a)

To limit code readability

b)

To make the code more complex

c)

To increase execution time

d)

To avoid code duplication

16.

Which of the following is a characteristic of a well-defined algorithm?

a)

It must be executed in real-time

b)

It must be complex

c)

It must be language-dependent

d)

It must have well-defined outputs

17.

What is the main function of a module in programming?

a)

To compile programs

b)

To manage user input

c)

To group related functions and logic

d)

To execute code

18.

What is the significance of using pre-trained models in AI applications?

a)

They require no data

b)

They are always accurate

c)

They are only for academic use

d)

They speed up development

19.

Which of the following is an example of a dynamic programming algorithm?

a)

Sorting Algorithm

b)

Greedy Algorithm

c)

Divide-and-Conquer Algorithm

d)

Backtracking Algorithm

20.

What is the purpose of the return statement in a function?

a)

To define the function

b)

To end the program

c)

To specify the output value

d)

To call another function

21.

Which of the following best describes a package in programming?

a)

A programming language

b)

A type of algorithm

c)

A single module

d)

A collection of related modules

22.

What is the main advantage of using functions in AI and ML?

a)

They are only used for data visualization

b)

They eliminate the need for algorithms

c)

They increase code complexity

d)

They allow for code reusability

23.

What is the role of the operating system in program execution?

a)

To manage hardware resources

b)

To compile the program

c)

To write the code

d)

To design the user interface