Python - Data Types

Quiz
•
Instructional Technology, Education
•
12th Grade - University
•
Hard
Teaching Assistant Ivy
Used 39+ times
FREE Resource
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following are immutable
Number
String
Tuple
All of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is true about complex numbers?
The real and imaginary component can be float
The real part should be an integer
Scientific notation cannot be used in complex number
All of above
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
The int() function can be useful to convert
string to integer
hexadecimal to integer
float to int
complex number to int
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a valid integer in Python?
0o123
123
0123
0x123
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of the following are valid complex number objects?
4+5j
5j+4
0j
5+4
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
An Expression 'str' in 'string' will return
True
False
ValueError
TypeError
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is not a core data type?
List
Tuple
Dictionary
Class
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Sains Komputer T4

Quiz
•
12th Grade
10 questions
Skill #2 - Flow Control with Decisions and Loops

Quiz
•
12th Grade
10 questions
Basic Python

Quiz
•
10th Grade - University
12 questions
JAVA FUNDAMENTALS

Quiz
•
University
10 questions
Module 1-Flow Control_5th_Semseter

Quiz
•
University
9 questions
Java Fundamentals

Quiz
•
12th Grade
12 questions
Nirmala School quiz

Quiz
•
9th - 12th Grade
10 questions
ОГЭ задания 6 и 8

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade