Python Basics

Python Basics

University

9 Qs

quiz-placeholder

Similar activities

Информатика 11 сынып

Информатика 11 сынып

3rd Grade - University

6 Qs

Quiz Pemanasan BI

Quiz Pemanasan BI

University

10 Qs

Kiểm tra 15p

Kiểm tra 15p

University

10 Qs

Quiz 10

Quiz 10

University

10 Qs

Postęp i rozwój technologii i nauki w Europie

Postęp i rozwój technologii i nauki w Europie

KG - Professional Development

11 Qs

Boolean Algebra

Boolean Algebra

9th Grade - University

10 Qs

PREDICATE LOGIC

PREDICATE LOGIC

University

10 Qs

C++ 1st ONLINE QUIZ

C++ 1st ONLINE QUIZ

University

13 Qs

Python Basics

Python Basics

Assessment

Quiz

Computers

University

Medium

Created by

Josan Tamayo

Used 14+ times

FREE Resource

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Insert the missing part of the code below to output "Hello World".

____________("Hello World!")

print

x=

raw_input

input

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Create a variable named carname and assign the value Volvo to it.

carname = "Volvo"

carname = Volvo

Volvo="carname"

Volvo=carname

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Create a variable named x and assign the value 50 to it.

x=50

x="50"

50=x

"50"=x

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Create a variable called z, assign x + y to it.

x = 5

y = 10

_______

z=x+y

sum=x+y

x+y=sum

x+y=z

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Command to input a text or string?

raw_input

raw-input

input

print

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following lines has error?

  1. fname="josan"
  2. mi="d"
  3. age=30
  4. print("you are " +age + " years old")

4

1

2

3

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following lines has error?

  1. x=15
  2. y=10
  3. difference=x-y
  4. print(diff)

4

1

2

3

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following declares a variable x and assigned a value josan?

x="josan"

x=josan

print("josan")

input("josan")

9.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of the following are correct? Select two.

x="10"

x=10

x=input

x=sum=x