NEW
Font size
WorksheetsLecture-3
Total questions: 23
Worksheet time: 12mins
What is the primary purpose of application development?
To manage network security
To conduct market research
To design hardware components
To create and maintain computer programs
Which of the following is NOT a stage in the application development process?
Marketing
Deployment
Testing
Design
What is an algorithm?
A hardware component
A programming language
A step-by-step set of instructions
A type of software application
Which characteristic of an algorithm ensures it has a clear meaning?
Well-defined inputs
Finite-ness
Language independent
Clear and unambiguous
What is the output of an algorithm?
The input data
The steps taken
The result or decision generated
The programming language used
Which type of algorithm is used for optimization problems?
Sorting Algorithm
Search Engine Algorithm
Greedy Algorithm
Recursive Algorithm
What is a program?
A software development kit
A hardware device
A type of algorithm
A set of instructions in a programming language
What is the main difference between an algorithm and a program?
A program is written in a programming language, while an algorithm is not
An algorithm can be executed, while a program cannot
An algorithm is more complex than a program
A program is a theoretical concept, while an algorithm is practical
What is the purpose of functions in programming?
To compile code
To create user interfaces
To encapsulate specific tasks
To manage memory
Which of the following is an example of a library in programming?
C++
Python
NumPy
Java
What is a framework in programming?
A collection of algorithms
A hardware component
A complete structure for building applications
A type of programming language
Which of the following is a key advantage of using libraries in development?
They require extensive coding
They are always free to use
They are only for web development
They provide pre-written, reusable code
What is the role of machine learning algorithms in application development?
To design hardware
To manage databases
To learn patterns from data
To create user interfaces
Which algorithm is used for predicting outcomes based on input data?
Decision Trees
Sorting Algorithms
Hashing Algorithms
Brute-Force Algorithms
What is the purpose of encapsulating logic in functions?
To limit code readability
To make the code more complex
To increase execution time
To avoid code duplication
Which of the following is a characteristic of a well-defined algorithm?
It must be executed in real-time
It must be complex
It must be language-dependent
It must have well-defined outputs
What is the main function of a module in programming?
To compile programs
To manage user input
To group related functions and logic
To execute code
What is the significance of using pre-trained models in AI applications?
They require no data
They are always accurate
They are only for academic use
They speed up development
Which of the following is an example of a dynamic programming algorithm?
Sorting Algorithm
Greedy Algorithm
Divide-and-Conquer Algorithm
Backtracking Algorithm
What is the purpose of the return statement in a function?
To define the function
To end the program
To specify the output value
To call another function
Which of the following best describes a package in programming?
A programming language
A type of algorithm
A single module
A collection of related modules
What is the main advantage of using functions in AI and ML?
They are only used for data visualization
They eliminate the need for algorithms
They increase code complexity
They allow for code reusability
What is the role of the operating system in program execution?
To manage hardware resources
To compile the program
To write the code
To design the user interface
