Search Header Logo

BASIC STATMENT AND BUILT-IN FUNCTION

Authored by Nnamdi Uche

Computers

8th Grade

Used 1+ times

BASIC STATMENT AND BUILT-IN FUNCTION
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of an assignment statement in programming?

Print output to the screen
Assign a value to a variable
Receive input from the user
Perform arithmetic calculations

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of basic statement allows the program to execute a block of code only if a specified condition is true?

Assignment statement
Function statement
Conditional statement
Loop statement

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'input()' function in programming?

Assign a value to a variable
Perform arithmetic calculations
Print output to the screen
Receive input from the user

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which built-in function allows the program to receive input from the user?

write()
print()
input()
read()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of basic statement is used to execute a block of code repeatedly as long as a specified condition is true?

Loop statement
Conditional statement
Assignment statement
Function statement

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which built-in function is used to write output to the screen?

input()
read()
write()
print()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the statement 'x = 5', what is '5'?

A value
A function
A loop
A variable

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?