Search Header Logo

Python El Grand Revision!

Authored by Piotr B

Computers

University

Used 6+ times

Python El Grand Revision!
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

47 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

We use "git ____" command to upload the content of local repository to the remote repository

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

We use "git ___" command to stage changes by adding new or modified files to the staging area

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In order to update the content of the local repository with that from the remote repository, we use:

git push

git commit

git pull

git add

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

We want to build a program to accept a number, check if it's divisible by 7 and print suitable message. What would the main condition have to be?

if num %7 == 0:

if num %7 == 7:

if num ** 7:

if 7 == num:

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

To generate even numbers between 19 and 34 (inclusive) we would call:

range(19,34)

range(19,34,2)

range(19,35,2)

range(18,35,2)

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is NOT a valid way of importing functions/modules?

from tui import *

import * from tui

import func

from tui import func

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Let x = ("pear", "apple", "orange", "raspberry")

What does print(x[-2]) achieve?

"orange" is printed on the console

Error is generated

"x[-2]" is printed on the console

"apple" is printed on the console

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?