Preskoči na glavni sadržaj
Prijava
Sign up for FREE
arrow_back
Biblioteka

Variables and Data

star
star
star
star
star
Posljednje ažuriranje 10 months ago
15
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
Pitanje 1
1.

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

Pitanje 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)

Pitanje 3
3.

What order should these be in to go from smallest to largest?

1. Binary --- 01110111

2. Decimal --- 111

3. Binary --- 01111011

Pitanje 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?

Pitanje 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.

Pitanje 6
6.

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

Pitanje 7
7.

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

Pitanje 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.

Pitanje 9
9.

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

What is the element at index 2

Pitanje 10
10.

nums1 <-- [5, 2, 1, 7, 5]

nums2 <-- nums1

what is

nums2[4]

Pitanje 11
11.

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

Pitanje 12
12.

age = []

age is an empty list

Pitanje 13
13.

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

Pitanje 14
14.

yourList <-- [20, 10, 30]

myList <-- []

yourList <-- myList

myList <-- []

What is the current value of yourList?

Pitanje 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