MTA 98-381 Quiz

MTA 98-381 Quiz

8th Grade

10 Qs

quiz-placeholder

Similar activities

Python

Python

8th - 9th Grade

10 Qs

Robotics 03

Robotics 03

6th - 8th Grade

9 Qs

'PYTHON _WORLD'

'PYTHON _WORLD'

6th - 8th Grade

12 Qs

Tynker Programming 301 Lesson 3: Actor Positioning

Tynker Programming 301 Lesson 3: Actor Positioning

7th - 8th Grade

15 Qs

Intro to Python Programming Quiz 9D

Intro to Python Programming Quiz 9D

1st Grade - University

14 Qs

Vex VR - Basics 004

Vex VR - Basics 004

6th - 8th Grade

10 Qs

PLTW AR 1.1-1.3 Vocab

PLTW AR 1.1-1.3 Vocab

6th - 8th Grade

15 Qs

Game Lab and Computer Science

Game Lab and Computer Science

8th Grade

10 Qs

MTA 98-381 Quiz

MTA 98-381 Quiz

Assessment

Quiz

Other

8th Grade

Hard

Created by

John Khoury

Used 3+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in programming?

A variable is a mathematical equation.

A variable is a type of loop in programming.

A variable is a named storage location that holds a value.

A variable is a function in programming.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the different data types in Python?

int, float, str, bool, list, tuple, dict, set, array

int, float, str, bool, list, tuple, dict, set, char

int, float, str, bool, list, tuple, dict, set

int, float, str, bool, list, tuple, dict, set, object

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of operators in programming?

Operators in programming are used to perform various operations on data.

Operators in programming are used to manipulate data.

Operators in programming are used to store data.

Operators in programming are used to display data.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax for error handling in Python?

try-catch

if-else

switch-case

try-except

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between local and global variables?

Local variables are declared outside of any function or block of code, while global variables are declared within a specific function or block of code.

Local variables can be accessed from anywhere in the program, while global variables can only be accessed within a specific function or block of code.

Local variables have a wider scope than global variables, allowing them to be used in multiple functions or blocks of code.

Local variables are declared within a specific function or block of code, while global variables are declared outside of any function or block of code.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the data type of the result when adding an integer and a float in Python?

float

boolean

integer

string

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'try-except' statement in error handling?

To catch and handle exceptions

To ignore exceptions and continue execution.

To display error messages to the user.

To prevent exceptions from occurring.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?