NEW
Font size
WorksheetsKoding dan Kecerdasan Artifisial
Total questions: 10
Worksheet time: 5mins
What is the main purpose of programming?
To create instructions for computers to perform tasks or solve problems.
To manage social media accounts.
To design graphics and images.
To write novels and stories.
Define an algorithm in your own words.
A collection of unrelated data.
A random guess for a solution.
A complex mathematical theorem.
An algorithm is a step-by-step procedure for solving a problem.
What data structure uses a Last In First Out (LIFO) method?
Queue
Stack
Linked List
Array
Which programming language is known for web development?
JavaScript
Java
Python
C++
What is the primary function of a loop in programming?
To create a new function in the program.
To store data in a variable.
To execute a block of code repeatedly based on a condition.
To define the structure of a program.
Name one popular library used for machine learning in Python.
Scikit-learn
Pandas
TensorFlow
NumPy
What is the difference between a compiler and an interpreter?
A compiler translates the whole program at once, while an interpreter translates and executes it line-by-line.
A compiler translates code line-by-line, while an interpreter translates the whole program at once.
A compiler is used for scripting languages, while an interpreter is used for compiled languages.
A compiler executes the program while an interpreter only translates it.
What is the purpose of an API in application development?
To store data in a database
To enhance the user interface
The purpose of an API in application development is to facilitate communication and interaction between different software systems.
To improve application performance
Which framework is commonly used for mobile app development in JavaScript?
React Native
Flutter
Ionic
Xamarin
How does artificial intelligence differ from traditional programming?
Traditional programming can learn from data
AI is always more efficient than traditional programming
Artificial intelligence differs from traditional programming in that AI learns from data and adapts, while traditional programming relies on predefined rules and logic.
AI uses only algorithms without data
