

GFG GEEK IT OUT flashcard
Flashcard
•
Computers
•
University
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

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]
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?