Variables and Data
star
star
star
star
star
Last updated 3 months ago
15 questions
1
How many more bits are available if you go from 32-bit computer to 64-bit machine.
How many more bits are available if you go from 32-bit computer to 64-bit machine.
1
Your program is comparing temperatures to determine how many patient's have a fever. Your selection statement's condition is not working correctly when the variable patient_temp is 98.6. What could have been the reason why?
IF (patient_temp = 98.6)
Your program is comparing temperatures to determine how many patient's have a fever. Your selection statement's condition is not working correctly when the variable patient_temp is 98.6. What could have been the reason why?
IF (patient_temp = 98.6)
1
What order should these be in to go from smallest to largest?1. Binary --- 011101112. Decimal --- 1113. Binary --- 01111011
What order should these be in to go from smallest to largest?
1. Binary --- 01110111
2. Decimal --- 111
3. Binary --- 01111011
1
A magnet school wants to advertise its students' success taking AP exams to prospective families. What's the best method to share the summarized data?
A magnet school wants to advertise its students' success taking AP exams to prospective families. What's the best method to share the summarized data?
1
Which topic needs the use of programs the most to analyze the data to identify insights?
Note: They may all require some programs, but which one needs it the most.
Which topic needs the use of programs the most to analyze the data to identify insights?
Note: They may all require some programs, but which one needs it the most.
1
I want to store a birthYear field in my database. What data type should this be, and explain your reasons why?
I want to store a birthYear field in my database. What data type should this be, and explain your reasons why?
1
I want to store a phoneNumber field in my database. What data type should this be, and explain your reasons why?
I want to store a phoneNumber field in my database. What data type should this be, and explain your reasons why?
1
A teacher uses a list to store the score of all his 50 AP CSP students. Which os these would be a valid index for accessing values from the list. Select all that apply. The name of his highest scoring student is peter!
Note: AP CSP syntax does not recognize negative index, but real languages like python would accept it.
A teacher uses a list to store the score of all his 50 AP CSP students. Which os these would be a valid index for accessing values from the list. Select all that apply. The name of his highest scoring student is peter!
Note: AP CSP syntax does not recognize negative index, but real languages like python would accept it.
1
names = ["Maria", "Jose", "Jeff", "Beth", "Sasah"]
What is the element at index 2
names = ["Maria", "Jose", "Jeff", "Beth", "Sasah"]
What is the element at index 2
1
nums1 <-- [5, 2, 1, 7, 5]nums2 <-- nums1what is nums2[4]
nums1 <-- [5, 2, 1, 7, 5]
nums2 <-- nums1
what is
nums2[4]
1
How does lists allow for data abstraction. Choose all that apply.
How does lists allow for data abstraction. Choose all that apply.
1
age = []age is an empty list
age = []
age is an empty list
1
In AP CSP list syntax, the list starts at index 0
In AP CSP list syntax, the list starts at index 0
1
yourList <-- [20, 10, 30]myList <-- []yourList <-- myList
myList <-- []What is the current value of yourList?
yourList <-- [20, 10, 30]
myList <-- []
yourList <-- myList
myList <-- []
What is the current value of yourList?
1
On the X plane of a chart. How do we find the this distance between two point x1 and x2. Write an algorithm you will use to solve the problem.
Test with x1 = -7 x2 = 2, distance is 9x1 = 6 x2 = 10, distance is 4
On the X plane of a chart. How do we find the this distance between two point x1 and x2. Write an algorithm you will use to solve the problem.
Test with
x1 = -7 x2 = 2, distance is 9
x1 = 6 x2 = 10, distance is 4