Search Header Logo

Cybernaut Analysis

Authored by Mohammed Anas

Computers

University

Cybernaut Analysis
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of 2 + 3 * 4?

14
20
26
Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is a basic data type in most programming languages?

Boolean
Floating-point
Integer
All of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of an if statement?

To define a function
To create a loop
To make decisions based on conditions
To print output

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is the correct syntax for a function definition?

functionName() { ... }
function functionName() { ... }
def functionName(): ...
All of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of 10 % 3?

3
1
4

6.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of these is a logical operator in most programming languages?

&&
||
and
or

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a for loop?

To repeat a set of statements a fixed number of times
To make decisions based on conditions
To define a function
To print output

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?