wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Koding dan Kecerdasan Artifisial

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What is the main purpose of programming?

a)

To create instructions for computers to perform tasks or solve problems.

b)

To manage social media accounts.

c)

To design graphics and images.

d)

To write novels and stories.

2.

Define an algorithm in your own words.

a)

A collection of unrelated data.

b)

A random guess for a solution.

c)

A complex mathematical theorem.

d)

An algorithm is a step-by-step procedure for solving a problem.

3.

What data structure uses a Last In First Out (LIFO) method?

a)

Queue

b)

Stack

c)

Linked List

d)

Array

4.

Which programming language is known for web development?

a)

JavaScript

b)

Java

c)

Python

d)

C++

5.

What is the primary function of a loop in programming?

a)

To create a new function in the program.

b)

To store data in a variable.

c)

To execute a block of code repeatedly based on a condition.

d)

To define the structure of a program.

6.

Name one popular library used for machine learning in Python.

a)

Scikit-learn

b)

Pandas

c)

TensorFlow

d)

NumPy

7.

What is the difference between a compiler and an interpreter?

a)

A compiler translates the whole program at once, while an interpreter translates and executes it line-by-line.

b)

A compiler translates code line-by-line, while an interpreter translates the whole program at once.

c)

A compiler is used for scripting languages, while an interpreter is used for compiled languages.

d)

A compiler executes the program while an interpreter only translates it.

8.

What is the purpose of an API in application development?

a)

To store data in a database

b)

To enhance the user interface

c)

The purpose of an API in application development is to facilitate communication and interaction between different software systems.

d)

To improve application performance

9.

Which framework is commonly used for mobile app development in JavaScript?

a)

React Native

b)

Flutter

c)

Ionic

d)

Xamarin

10.

How does artificial intelligence differ from traditional programming?

a)

Traditional programming can learn from data

b)

AI is always more efficient than traditional programming

c)

Artificial intelligence differs from traditional programming in that AI learns from data and adapts, while traditional programming relies on predefined rules and logic.

d)

AI uses only algorithms without data