Basic Programming Concepts Quiz

Basic Programming Concepts Quiz

8th Grade

10 Qs

quiz-placeholder

Similar activities

Evaluare_LOCUINȚA

Evaluare_LOCUINȚA

5th Grade - University

9 Qs

IF FOR WHILE MATLAB

IF FOR WHILE MATLAB

1st Grade - University

8 Qs

1.1 Writing Why Career Investigation Matters

1.1 Writing Why Career Investigation Matters

6th - 8th Grade

10 Qs

Introduction to STEAM and Robotics

Introduction to STEAM and Robotics

1st Grade - University

11 Qs

G2-Tema 2 - Arqui-Comple- Estructura y Funcionamiento de la CPU

G2-Tema 2 - Arqui-Comple- Estructura y Funcionamiento de la CPU

5th Grade - University

10 Qs

Lathes Module 1 - Vocab Check

Lathes Module 1 - Vocab Check

8th Grade

15 Qs

CAD Module 1 - Vocab Check

CAD Module 1 - Vocab Check

8th Grade

14 Qs

DAY 35 WORKSHEET LSGD (Bridge Engineering)

DAY 35 WORKSHEET LSGD (Bridge Engineering)

1st Grade - University

15 Qs

Basic Programming Concepts Quiz

Basic Programming Concepts Quiz

Assessment

Quiz

Engineering

8th Grade

Medium

Created by

Gabriel Silveira

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function is used to convert string values to integers?

int()

str()

float()

bool()

2.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

What sequence is used to create a newline at the end of statements?

3.

OPEN ENDED QUESTION

3 mins • 1 pt

Construct a block of code that asks the user for a number and prints three times that number. There is extra code to watch out for.

Evaluate responses using AI:

OFF

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to convert an integer to a string in Python?

int()

float()

list()

str()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of int('42') in Python?

42

'42'

4.2

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following will raise a ValueError in Python?

int('123')

int('abc')

int(True)

int(5.0)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Why will this code not run?

there has to be a number in the variable

there are supposed to be no spaces in the variable label

there are no caps in variables

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?