Computers and Technology, 12.11.2021 03:10 hervinlouis014
Question 1
A programmer is writing class scheduling software to be used by a small school. She is deciding what type of variables should be used to store the classroom buildings, which are called A, B, C, and D. This is a question of the of data.
Group of answer choices
storage
security
representation
transmission
Question 2
What is the purpose of \n in this line of code?
flavors. write(item+"\n")
Group of answer choices
It writes each item on a separate line.
It adds the character n to the end of each item.
It prints out a new line on the console.
It opens a new file.
Question 3
Which data type should be used for a variable that will store a student’s grade point average, which includes numbers such as 2.985 and 3.100?
Boolean
float
integer
string
Question 4
Which of these characterizes a procedural program?
print("What is your name?")
class Name:
def __init__(self, name):
self. name = name
name = input("What is your name?")
def inputName():
name = input("What is your name?")
return name
Question 5
The is responsible for allowing or denying access to RAM.
DVD
OS
ROM
USB
Question 6
In Python, the data type of a variable must be declared before the variable is used.
True
False
Question 7
Which of these is the correct first line of code for the creation of a class called Athletes?
class(Athletes)
new Athletes:
create Athletes:
class Athletes:
Question 8
Which of these lines of code is an example of a method?
self. double = double
return Double
class Double:
double()
Question 9
A class called Car has two identical objects called firstTruck and secondTruck but no __eq__ method. What is the output of this line of code?
print(firstTruck == secondTruck)
False
an error message
True
firstTruck == secondTruck
Question 10
A stack overflow occurs when:
too much data is put in a heap.
too many heaps are put in a stack.
too much data is put in a stack.
too many stacks are put in a heap.
Question 11:
Which function is used in every Python class to initialize the attributes of new objects?
__class__
__new__
__init__
__create__
Question 12
Declaring a variable as an object instead of a primitive data type saves space.
True
False
Question 13
Usually, a contains primitive data types, and a contains non-primitive data types.
RAM; ROM
ROM; RAM
stack; heap
heap; stack
Question 14
A(n) is a variable inside of a function or method definition, and a(n) is the variable or data in a function call.
argument; parameter
parameter; argument
return; initializer
initializer; return
Question 15
In Python, when a file is opened using a with statement, the file will be later closed automatically.
False
True
Question 16
Which of these is an example of the content of a CSV file?
“Yellow, Orange, Blue”
yellow, orange, blue
Question One: [yellow], [orange], [blue]
0100 1111 1101
Question 17
Primary memory is known as ROM.
True
False
Question 18
What is the output of this program?
def addFive(a):
a = a + 5
return a
myNum = 10
print(addFive(myNum), myNum)
15 15
10 5
5 10
15 10
Question 19
Which data type should be used for a variable that will store the user’s year of birth?
float
string
object
integer
Question 20
Which of these statements is the correct way to define the method that will compare two instances of a class to see if their attributes are the same?
if self == other:
def __eq__(self, other):
def compare(self, other):
check self == other:
Answers: 1
Computers and Technology, 22.06.2019 21:50
Given int variables k and total that have already been declared, use a while loop to compute the sum of the squares of the first 50 counting numbers, and store this value in total. thus your code should put 11 + 22 + 33 + + 4949 + 50*50 into total. use no variables other than k and total.
Answers: 2
Computers and Technology, 23.06.2019 02:00
Read this excerpt from helen keller’s autobiography, the story of my life. have you ever been at sea in a dense fog, when it seemed as if a tangible white darkness shut you in, and the great ship, tense and anxious, groped her way toward the shore with plummet and sounding-line, and you waited with beating heart for something to happen? i was like that ship before my education began, only i was without compass or sounding-line, and had no way of knowing how near the harbour was. "light! give me light! " was the wordless cry of my soul, and the light of love shone on me in that very hour. . the morning after my teacher came she led me into her room and gave me a doll. the little blind children at the perkins institution had sent it and laura bridgman had dressed it; but i did not know this until afterward. when i had played with it a little while, miss sullivan slowly spelled into my hand the word "d-o-l-l." i was at once interested in this finger play and tried to imitate it. when i finally succeeded in making the letters correctly i was flushed with childish pleasure and pride. running downstairs to my mother i held up my hand and made the letters for doll. i did not know that i was spelling a word or even that words existed; i was simply making my fingers go in monkey-like imitation. in the days that followed i learned to spell in this uncomprehending way a great many words, among them pin, hat, cup and a few verbs like sit, stand and walk. based on this excerpt, which words best describe helen keller?
Answers: 2
Computers and Technology, 24.06.2019 03:00
Click the "draw structure" button to activate the drawing utility. draw two diastereomers of (1z,4r)−1,4−dimethylcyclodecene and name them, including (e)/(z) and (r)/(s) notation. part 1 out of 4 draw the diastereomer containing a chiral center with s configuration here. window open
Answers: 1
Computers and Technology, 24.06.2019 13:50
Write a program that performs a simple n-body simulation, called "jumping leprechauns." this simulation involves n leprechauns, numberd 1 to n. it maintains a gold value g_i for each leprechaun i, which begins with each leprechaun starting out with a million dollars worth of gold, that is, g_i = 1000000 for each i = 1,. in addition, the simulation also maintains, for each leprachaun,i, a place on the horizon, which is represented as a double-precision floating point number, x_i. in each iteration of the simulation, the simulation processes the leprachauns in order. processing a leprachaun i during its iteration begins by computing a new place on the horizon for i, which is determined by the assignment:
Answers: 3
Question 1
A programmer is writing class scheduling software to be used by a small school. She is...
Mathematics, 30.03.2020 20:38
History, 30.03.2020 20:38
Advanced Placement (AP), 30.03.2020 20:38
Mathematics, 30.03.2020 20:38
Mathematics, 30.03.2020 20:38
Social Studies, 30.03.2020 20:38
Geography, 30.03.2020 20:38