Fundamentals of Programming Quiz

Fundamentals of Programming Quiz

8th Grade

30 Qs

quiz-placeholder

Similar activities

Ulangan Harian 1 Kelas 8

Ulangan Harian 1 Kelas 8

8th Grade

35 Qs

SOAL INFORMATIKA KELAS 8 GANJIL

SOAL INFORMATIKA KELAS 8 GANJIL

8th Grade

35 Qs

Review Python_G8

Review Python_G8

8th Grade - University

28 Qs

Latihan UTS KKA Kls VIII

Latihan UTS KKA Kls VIII

8th Grade

27 Qs

Python Basics Quiz

Python Basics Quiz

8th Grade

30 Qs

Знатоки информатики

Знатоки информатики

8th Grade

31 Qs

Fun with Computers and Mice

Fun with Computers and Mice

2nd Grade - University

26 Qs

ThunkableBasic

ThunkableBasic

6th - 8th Grade

25 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?