GFG GEEK IT OUT flashcard

GFG GEEK IT OUT flashcard

Assessment

Flashcard

Computers

University

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

24 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is the data type of 'A'?

Back

char

2.

FLASHCARD QUESTION

Front

What is the output for the following code:
a = 2
a+=3
print(a)

Back

5

3.

FLASHCARD QUESTION

Front

What is the keyword used to define functions?

Back

def

4.

FLASHCARD QUESTION

Front

Which of the following is used to add elements to a list? Options: append(), remove(), insert(), extend()

Back

append()

5.

FLASHCARD QUESTION

Front

What is the output of the following code
a=2.0
print(type(a))

Back

float

6.

FLASHCARD QUESTION

Front

What is the output to the following program:
lis1 = [1,2,3]
lis2=[4,5,6]
a=lis1[2]+lis2[2]
print(a)

Back

9

7.

FLASHCARD QUESTION

Front

Which of the following is the correct way to define a list? Options: list a =[1,2,3], a=<1,2,3>, int a={1,2,3}, a=[1,2,3]

Back

a=[1,2,3]

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?