Log in
Sign up for FREE
arrow_back
Library

Variables and Data

star
star
star
star
star
Last updated 5 months ago
15 questions
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
Question 1
1.

How many more bits are available if you go from 32-bit computer to 64-bit machine.

Question 2
2.

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)

Question 3
3.

What order should these be in to go from smallest to largest?
1. Binary --- 01110111
2. Decimal --- 111
3. Binary --- 01111011

Question 4
4.

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?

Question 5
5.

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.

Question 6
6.

I want to store a birthYear field in my database. What data type should this be, and explain your reasons why?

Question 7
7.

I want to store a phoneNumber field in my database. What data type should this be, and explain your reasons why?

Question 8
8.

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.

Question 9
9.

names = ["Maria", "Jose", "Jeff", "Beth", "Sasah"]

What is the element at index 2

Question 10
10.

nums1 <-- [5, 2, 1, 7, 5]
nums2 <-- nums1
what is
nums2[4]

Question 11
11.

How does lists allow for data abstraction. Choose all that apply.

Question 12
12.

age = []
age is an empty list

Question 13
13.

In AP CSP list syntax, the list starts at index 0

Question 14
14.

yourList <-- [20, 10, 30]
myList <-- []
yourList <-- myList

myList <-- []
What is the current value of yourList?

Question 15
15.

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