Fundamentals of Programming Quiz

Fundamentals of Programming Quiz

8th Grade

30 Qs

quiz-placeholder

Similar activities

Quiz Berpikir Komputasi 8th

Quiz Berpikir Komputasi 8th

8th Grade

30 Qs

SAS2 Informatika 7 2425

SAS2 Informatika 7 2425

8th Grade - University

35 Qs

Quiz sobre Programación en Python

Quiz sobre Programación en Python

8th Grade

26 Qs

Quiz Aplikasi Perkantoran

Quiz Aplikasi Perkantoran

8th Grade

25 Qs

8кл-18

8кл-18

8th Grade

35 Qs

Unit 1: Being Social Online - TEST

Unit 1: Being Social Online - TEST

8th Grade

25 Qs

Year 8 ICT Summative Assessment - Term 3.1 - 2024-2025

Year 8 ICT Summative Assessment - Term 3.1 - 2024-2025

8th Grade

30 Qs

Ch. 11 Exam Review

Ch. 11 Exam Review

8th Grade

26 Qs

Fundamentals of Programming Quiz

Fundamentals of Programming Quiz

Assessment

Quiz

Information Technology (IT)

8th Grade

Hard

Created by

J Blakley

Used 1+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid variable name in Python?

2ndNumber

number_2

number-2

number 2

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type would you use to store the value "Hello, World!" in Python?

Integer

String

Boolean

Float

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a control structure used to repeat a block of code?

if statement

for loop

variable assignment

function definition

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code? ```python x = 5 print(x * 2) ```

7

10

25

52

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a valid data type in Python?

float

string

letter

boolean

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to define a function in Python?

function myFunction():

def myFunction():

define myFunction():

func myFunction():

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following lists contains only integers?

[1, 2, 3, 4]

[1, "2", 3, 4]

[1.0, 2, 3, 4]

["one", "two", "three", "four"]

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?

Discover more resources for Information Technology (IT)