Python Programming Chapter 2 Advanced Test 2024.
Python Programming Chapter 2 Advanced Test 2024. Which of the following is not true? - ANSWER An algorithm allows ambiguity. QUESTION 2: The programmer solves the problems of a user by expressing an algorithm in a programming language to make a program that can run on a computer. The purpose of testing a program with different combinations of data is to expose run-time and errors. - ANSWER logical Write a String constant consisting of exactly 5 exclamation marks. - ANSWER '!!!!!' Write a String constant that is the empty string. - ANSWER ' ' Assign 7 to a variable named seven. - ANSWER seven=7 Write a single print statement that displays the value of variable num1 followed immediately (i.e., with no white space) by the value of variable num2. For example, if num1 has the value 123 and num2 has the value 456, your statement should result in the output 123456. - ANSWER print(str(num1)+str(num2)) Define a variable precise and make it refer to 1. - ANSWER precise=1. Assign 8 to a variable named eight. - ANSWER eight=8 Define a variable temperature and make it refer to 98.6. - ANSWER temperature=98.6 Define two variables , one named length making it refer to 3.5 and the other named width making it refer to 1.55. - ANSWER length=3.5 width=1.55 Given two variables matric_age and grad_age, write a statement that makes the associated value of grad_age 4 more than that of matric_age. - ANSWER grad_age=(4+matric_age) A location in memory used for storing data and given a name in a computer program is called a because the data in the location can be changed. - ANSWER variable Which of the following names in a program is equivalent to the name int? - ANSWER Int INT All of the above
Escuela, estudio y materia
- Institución
- Python programming
- Grado
- Python programming
Información del documento
- Subido en
- 12 de enero de 2024
- Número de páginas
- 7
- Escrito en
- 2023/2024
- Tipo
- Examen
- Contiene
- Preguntas y respuestas
Temas
-
define two
-
python programming chapter 2 advanced test 2024
-
which of the following is not true an algorithm a
-
assign 7 to a variable named seven seven7
-
define a variable precise and make it refer to 10