Python Basics and GitHub Repositories

Python Basics and GitHub Repositories

University

10 Qs

quiz-placeholder

Similar activities

Fellowship program 2021

Fellowship program 2021

University - Professional Development

15 Qs

Web Apps 01 - CLI (Terminal, Git, Meteor)

Web Apps 01 - CLI (Terminal, Git, Meteor)

University

15 Qs

Python Dictionaries

Python Dictionaries

University

10 Qs

Mastering Git Commands

Mastering Git Commands

12th Grade - University

15 Qs

Programación 1 Level 2

Programación 1 Level 2

University

12 Qs

Getting Started with git init

Getting Started with git init

University

10 Qs

Summer Code Camp - Lesson 1

Summer Code Camp - Lesson 1

University

10 Qs

Unit 4 004 Software Development

Unit 4 004 Software Development

12th Grade - University

11 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?