Twa kɔ nsɛm atitiriw so
Log in
Sign up for FREE
arrow_back
Laabri

Variables and Data

star
star
star
star
star
Last updated 10 months ago
15 Nsɛmmisa
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
Asemmisa {{asɛmmisaAhyɛnsode}}
1.

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

Asemmisa {{asɛmmisaAhyɛnsode}}
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)

Asemmisa {{asɛmmisaAhyɛnsode}}
3.

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

1. Binary --- 01110111

2. Decimal --- 111

3. Binary --- 01111011

Asemmisa {{asɛmmisaAhyɛnsode}}
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?

Asemmisa {{asɛmmisaAhyɛnsode}}
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.

Asemmisa {{asɛmmisaAhyɛnsode}}
6.

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

Asemmisa {{asɛmmisaAhyɛnsode}}
7.

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

Asemmisa {{asɛmmisaAhyɛnsode}}
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.

Asemmisa {{asɛmmisaAhyɛnsode}}
9.

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

What is the element at index 2

Asemmisa {{asɛmmisaAhyɛnsode}}
10.

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

nums2 <-- nums1

what is

nums2[4]

Asemmisa {{asɛmmisaAhyɛnsode}}
11.

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

Asemmisa {{asɛmmisaAhyɛnsode}}
12.

age = []

age is an empty list

Asemmisa {{asɛmmisaAhyɛnsode}}
13.

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

Asemmisa {{asɛmmisaAhyɛnsode}}
14.

yourList <-- [20, 10, 30]

myList <-- []

yourList <-- myList

myList <-- []

What is the current value of yourList?

Asemmisa {{asɛmmisaAhyɛnsode}}
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