Python Basics and GitHub Repositories

Python Basics and GitHub Repositories

University

10 Qs

quiz-placeholder

Similar activities

Git Bash

Git Bash

University

15 Qs

DevNet Express

DevNet Express

10th Grade - Professional Development

11 Qs

Quiz - Version Control with Git and GitHub

Quiz - Version Control with Git and GitHub

University

10 Qs

GitThat30Bro

GitThat30Bro

University

15 Qs

Github Quiz

Github Quiz

University

10 Qs

Git

Git

University

15 Qs

IOTA : Web Development Bootcamp Quiz 5

IOTA : Web Development Bootcamp Quiz 5

University

10 Qs

Got Git?

Got Git?

University

15 Qs

Python Basics and GitHub Repositories

Python Basics and GitHub Repositories

Assessment

Quiz

Computers

University

Medium

Created by

Roger Holden

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct data type in Python for storing a sequence of characters?

Integer

String

List

Boolean

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a mutable data type in Python?

Tuple

String

List

Integer

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following Python code snippet? ```python for i in range(3): print(i) ```

0 1 2

1 2 3

0 1 2 3

1 2 3 4

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to clone a remote repository from GitHub?

`git push`

`git clone`

`git commit`

`git init`

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, which loop is used to iterate over a sequence (such as a list, tuple, or string)?

while loop

for loop

do-while loop

until loop

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to create a dictionary in Python?

`my_dict = {1, 2, 3}`

`my_dict = [1, 2, 3]`

`my_dict = {'key1': 'value1', 'key2': 'value2'}`

`my_dict = (1, 2, 3)`

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following commands is used to check the status of a Git repository?

`git status`

`git log`

`git diff`

`git fetch`

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?