Programming II - Python Basics

Programming II - Python Basics

Assessment

Flashcard

Computers

University

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.

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?