Search Header Logo

Programming and Variables

Authored by Shegaw Demessie

Computers

11th Grade

Used 1+ times

Programming and Variables
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a programming language?

A programming language is a formal language comprising a set of instructions that produce various kinds of output.

A programming language is a spoken language used for communication.

A programming language is a musical instrument used to code.

A programming language is a type of food consumed by developers.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Name three popular programming languages.

Swift

C++

JavaScript, Python, Java

Ruby

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in programming?

A variable in programming is a constant value

A variable in programming is a fixed value that cannot be changed

A variable in programming is a symbolic name given to a value that can be changed during the program's execution.

A variable in programming is a type of function

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Explain the concept of data types in variables.

Variables in programming languages are used to store data values. Data types specify the type of data that can be stored in a variable, such as integers, strings, or booleans. Different programming languages have different data types, and each data type has specific rules for how the data is stored and manipulated.

Data types do not specify the type of data that can be stored in a variable

Variables are not used to store data values in programming languages

All programming languages have the same data types for variables

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between global and local variables?

Global variables are accessible throughout the program, while local variables are limited to the scope of the function in which they are declared.

Global variables are only used in functions, while local variables are used globally.

Local variables can be accessed from any part of the program, while global variables are limited to specific functions.

Global variables are declared within functions, while local variables are declared outside of functions.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare a variable in Python?

value : variable_name

variable_name = value

variable_name : value

value = variable_name

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is variable scope in programming?

Variable scope refers to the color of variables in programming

Variable scope is the speed at which variables are processed in programming

Variable scope is the size of variables in programming

Variable scope in programming refers to the visibility and accessibility of variables within different parts of the code.

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?