CCE 170 Exam 2, Python Questions and Answers
In google colab python notebook, you can have text cells/blocks between runnable code true or false - Answer-true in python, the code which dictates how a "text cell" is formatted is also known as - Answer-markdown to use a variable like "x", you must enter this line of code before using the variable equation- dim X as VARIABLE - Answer-false what is an ex. of an integer - Answer-53 which lines of python code will import math library? - Answer--IMPORT math -FROM math IMPORT* how would you compute c=sqrt(a^2+b^2) - Answer-a=1 b=2 c=(a**2+b**2) print(c) or a=1 b=2 c=(a**2+b**2)**0.5 print(c) what is the output? a=32 b=23 c="bob" d=a+b print(d,a) - Answer-55 32 a=32 b=23 c="bob" d=a+b print(d,c) - Answer-55 bob a=32 b=23
Written for
- Institution
- CCE
- Course
- CCE
Document information
- Uploaded on
- March 5, 2024
- Number of pages
- 4
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
cce 170 exam 2 python questions and answers
-
in google colab python notebook you can have text
Also available in package deal