알파카징징이 알파카징징이 코딩하는 알파카

데이터 구조 및 분석 ch_1_12 Quiz 1

» writing

KAIST 산업및시스템공학과 문일철_ 데이터 구조 및 분석 수업을 참고하여 작성하였습니다

ch_1_12 Quiz 1

정의


Quiz 1

1. Python has a dynamic type of variables
-> T

2. 

lstTest = list(range(1,19,3))
print(lstTest)

[1, 4, 7, 10, 13, 16, 19]

-> F

3. Tuple allows value changes.
-> F

4. statements "continue" is only working at for loop.
-> F

5. Deconstructor is called when a class is instantiated.
-> F

6. When the string A is ‘IE260_QUIZ1’ (i.e. A=‘IE260_QUIZ1’ in python code), what is the value of len(A)
-> 11

7.  Command symbol for making single-line comments in Python.
-> #

8. We are going to write the code based on if statement. Fill in the blank.

if boolean:
  Statements for True
____ boolean:
  Statements for True
else:
  Statements for False

--> ____ = elif

9. Fill in the blank with a proper word.(단답형, 1점)

x=[1,2,3]
y=[100,x,120]
print(y)

print(y)

--> [100, [1,2,3],120]

10. Fill in the blank with a proper word.(단답형, 1점)
what is the data type of 1.23 or 7.8e-28 in python?
--> float
</pre>
</body>
</html>