Programming II - Python Basics

Programming II - Python Basics

Assessment

Flashcard

Computers

University

Practice Problem

Medium

Created by

Steffan Limon

Used 1+ times

FREE Resource

Student preview

quiz-placeholder

52 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What are the two main platforms to write Python code?

Back

Jupyter Notebook and Google Colab.

2.

FLASHCARD QUESTION

Front

How do you access Google Drive in Google Colab?

Back

Use the commands: from google.colab import drive, drive.mount('/content/drive'), and %cd /content/drive/MyDrive/.

3.

FLASHCARD QUESTION

Front

What are the basic data types in Python?

Back

int, float, str, bool.

4.

FLASHCARD QUESTION

Front

What does the 'int' data type represent?

Back

Whole numbers.

5.

FLASHCARD QUESTION

Front

How do you create a variable in Python?

Back

Use the syntax: variable_name = value.

6.

FLASHCARD QUESTION

Front

What are the good naming rules for variables in Python?

Back

Don’t start with a number, no spaces, use underscores instead, avoid reserved words, and use clear names.

7.

FLASHCARD QUESTION

Front

What is the result of 'print(a + b)' if a = 10 and b = 3?

Back

It prints 13.

Access all questions and much more by creating a free account

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?

Discover more resources for Computers