H SDD - Pre-defined functions (revision)

H SDD - Pre-defined functions (revision)

10th Grade

9 Qs

quiz-placeholder

Similar activities

Advanced Python Iteration Quiz

Advanced Python Iteration Quiz

10th Grade

10 Qs

Python Level 2- Lesson 2

Python Level 2- Lesson 2

10th Grade

10 Qs

Python Basics - A level

Python Basics - A level

10th - 12th Grade

10 Qs

Intro to Python

Intro to Python

9th - 12th Grade

10 Qs

CodeHS Python Variables

CodeHS Python Variables

7th - 12th Grade

10 Qs

Fundamentals of Python

Fundamentals of Python

9th - 12th Grade

13 Qs

Kuis Analisis Data Bahasa Python

Kuis Analisis Data Bahasa Python

10th Grade

9 Qs

Basics of Python

Basics of Python

9th - 12th Grade

12 Qs

H SDD - Pre-defined functions (revision)

H SDD - Pre-defined functions (revision)

Assessment

Quiz

Computers

10th Grade

Medium

Created by

G Alexander-Doyle

Used 20+ times

FREE Resource

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following Python pre-defined functions could be used to return the ASCII value of a character?

ORD

LEN

CHR

ROUND

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following Python pre-defined functions could be used to return the character which matches an ASCII value?

ORD

LEN

CHR

ROUND

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following Python pre-defined functions could be used to return the number of characters in a string

ORD

LEN

CHR

ROUND

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which of the following is the correct output from the following code:

21th Mar 2022

21th Ma 22

21st Mar 22

21th Mar 22

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What would the correct output for the following code be?

String = "Falkirk High School"

print(String[8:10] + " " + String[0:7])

Hi Falkirk

Hi School

Fa High Sc

Hi kirk H

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following Python pre-defined functions could be used to convert a floating point number to a whole number?

ORD

LEN

INT

ROUND

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following Python pre-defined functions could be used to convert a floating point number to a whole number?

ORD

LEN

INT

ROUND

8.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following pieces of code would return the output 2?

print(ord("!"))

print(int(2.34543))

print(14%7)

print(14%6)

9.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following pieces of code would return the output 5?

print(12%9)

print(14%8)

print(14%9)

print(12%6)