Python Basics and GitHub Repositories

Python Basics and GitHub Repositories

University

10 Qs

quiz-placeholder

Similar activities

Q1 - Comp Vision

Q1 - Comp Vision

University

10 Qs

Py-Hackathon - Week 2 - Day 2

Py-Hackathon - Week 2 - Day 2

University

15 Qs

Introducción a Python - Clase 8

Introducción a Python - Clase 8

University

10 Qs

Python Quiz 2: Lists, Sets and Dictionary

Python Quiz 2: Lists, Sets and Dictionary

University

15 Qs

15-mavzu. Sun’iy intellekt asosida ishlovchi bulutli texnologiya

15-mavzu. Sun’iy intellekt asosida ishlovchi bulutli texnologiya

University

15 Qs

workshop

workshop

University

10 Qs

MP Pertemuan 01

MP Pertemuan 01

University

10 Qs

Git & GitHub

Git & GitHub

University

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