SLR 9 - Advanced Programming Techniques - Part Two

SLR 9 - Advanced Programming Techniques - Part Two

10th Grade

10 Qs

quiz-placeholder

Similar activities

Tugas sistem komputer

Tugas sistem komputer

10th Grade

10 Qs

Simulasi DIgital - Logika Algoritma dan Peta Minda

Simulasi DIgital - Logika Algoritma dan Peta Minda

10th Grade

10 Qs

8.12 C++ Test on Classes

8.12 C++ Test on Classes

9th - 12th Grade

15 Qs

Numpy-1

Numpy-1

9th - 12th Grade

10 Qs

Types of Mass Media

Types of Mass Media

10th Grade - Professional Development

11 Qs

Word 2016 Lesson 1

Word 2016 Lesson 1

9th - 12th Grade

10 Qs

Bài 22-Kiểu dữ liệu danh sách

Bài 22-Kiểu dữ liệu danh sách

10th Grade

15 Qs

Keyboard Shortcuts

Keyboard Shortcuts

9th - 12th Grade

9 Qs

SLR 9 - Advanced Programming Techniques - Part Two

SLR 9 - Advanced Programming Techniques - Part Two

Assessment

Quiz

Computers

10th Grade

Practice Problem

Hard

Created by

Neil Stephens

Used 15+ 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 would be the output of the following:

name = "Mickey Mouse"

print("Character Name:" + name)

Character Name:Mickey Mouse

Character Name: Mickey Mouse

Character Name: name

Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What would be output from the following code?

name = "Mickey Mouse"

position = name.find(" ")

print(position)

Error

7

5

6

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Python code will successfully output the position of the @ sign in this email address?

emailAdd = "mickey@disney.com"

print(emailAdd)

print(emailAdd.find(@))

print(emailAdd.find("@"))

print(find.emailAdd("@"))

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Python code will cast this string into an integer, storing the result in 'numInt'?

number = "1"

numInt = number.int

numInt = int(number)

numInt = number.toInt()

number = numInt.int()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What would the following code output?

num1 = 4

num2 = "5"

print(num1 + num2)

9

45

4"5"

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following will correctly output a random number between 1 and 10?

import random

num = random.randint(1,10)

print(num)

import random

num = random.randint(0,11)

print(num)

import random

num = random(1,10)

print(num)

import random

num = randint(1,10)

print(num)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an example of a procedure?

def adding(num1, num2):

return num1 + num2

def adding(num1, num2):

answer = num1 + num2

return answer

def adding(num1, num2):

print(num1 + num2)

def adding(num1, num2):

answer = num1 + num2

return True

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

Already have an account?