Quiz 03 (Part 2)_ CSE 205_ H-T-CSE205-SP24
.pdf
keyboard_arrow_up
School
Arizona State University *
*We aren’t endorsed by this school
Course
205
Subject
Computer Science
Date
Feb 20, 2024
Type
Pages
7
Uploaded by BarristerFlag12929
2/18/24, 4:53 PM
Quiz 03 (Part 2): CSE 205: H-T-CSE205-SP24
https://canvas.asu.edu/courses/175602/quizzes/1321125?module_item_id=12557618
1/7
Quiz 03 (Part 2) Due Feb 11 at 11:59pm
Points 100
Questions 20
Available until Apr 28 at 11:59pm
Time Limit 20 Minutes
Allowed Attempts 3
Instructions
You may take this quiz 3 times before the due date passes
The questions will be different each time you take it
Your highest score will be recorded in the Canvas Grades
No extensions of the due date will be granted for any missed quiz
This quiz has a 30 minute time limit
If you are not able to successfully answer all questions within the time limit, then you may need more
study and practice
This quiz covers the following topics:
Arrays
OOP
UML
IMPORTANT: This assignment is due before the Due
date listed on this page. The Available until
date
is not the due date. No points may be awarded for any work that is submitted after the Due date. As
stated in the syllabus due dates will not be extended or excused.
2/18/24, 4:53 PM
Quiz 03 (Part 2): CSE 205: H-T-CSE205-SP24
https://canvas.asu.edu/courses/175602/quizzes/1321125?module_item_id=12557618
2/7
Attempt History
Attempt
Time
Score
KEPT
Attempt 3
20 minutes
90 out of 100
LATEST
Attempt 3
20 minutes
90 out of 100
Attempt 2
18 minutes
90 out of 100
Attempt 1
15 minutes
80 out of 100
Correct answers are hidden.
Score for this attempt: 90 out of 100
Submitted Feb 11 at 5:22pm
This attempt took 20 minutes.
Question 1
5 / 5 pts
True
False
Question 2
5 / 5 pts
my_array = int[];
int[] my_array;
my_array[] = int[];
none of these
int my_array;
Question 3
5 / 5 pts
curly brace
parenthesis
period
none of these
In Java, arrays can only store primitive types.
Which of the following would declare an array of integers in Java? Choose all that apply.
Java statements generally end with a _____.
2/18/24, 4:53 PM
Quiz 03 (Part 2): CSE 205: H-T-CSE205-SP24
https://canvas.asu.edu/courses/175602/quizzes/1321125?module_item_id=12557618
3/7
colon
Question 4
5 / 5 pts
end
retrieve
eval
none of these
send
Question 5
5 / 5 pts
True
False
Question 6
5 / 5 pts
static
void
local
global
Question 7
5 / 5 pts
True
False
Question 8
5 / 5 pts
True
Java uses the keyword _____ to return a value from a method.
In Java all variables must be declared with their data type.
In Java class members are declared with the keyword _____.
Objects encapsulate state.
We can more easily debug a program when the responsibilities are well encapsulated.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
SUPPLIER
PRODUCT
ProductCode
ProductnName
unitPrice
SupCode
supCode
(Number, 3)
SupName
(text, 20)
АВC LLC
(Number, 10)
[Char(10)]
(>0)
1111111
Calculator
10
111
111
2222222
Notebook
2.5
777
222
ХҮX LLC
3333333
Book-AI
20
222
3333
PQR LLC
4444444
Pen
-2.0
222
222
AXL LLC
5555555
Pencil
.500
111
Eraser
.500
222
arrow_forward
4:04
l LTE
4:04
i LTE
DB Quiz No.5 (12:30@ULJI selga)
DB Quiz No.5 (12:30@ouI selga)
CREATE TABLE Institution (name
VARCHAR(50),country VARCHAR(50).year
CREATE TABLE HighDegree
(professorID INT REFERENCES
Professor(ID).projectID INT REFERENCES
Project(ID),schoolName
VARCHAR(50),institutionName
VARCHAR(50), FOREIGN KEY
(schoolName,institutionName)
REFERENCES
School(name.,insitutionName), PRIMARY
KEY (professorID, studentID, schoolName,
institutionName);
O Number
INT,
(name, country):
PRIMARY KEY
O
Name and Num
WA
The following is an instance of the relation:
CREATE TABLE Author (researcherlD INT
REFERENCES Researcher(ID),.paperID INT
REFERENCES Paper(ID).PRIMARY KEY
(researcherlD, paperID));
O Name
Based on the above, indicate for each of the
following sets of attributes whether it is a
key for Articles Table?
CREATE TABLE PartOf (professorID INT
REFERENCES Professor(ID), studentID INT
REFERENCES Researcher(ID),PRIMARY
KEY (professorID, projectID);
Indicate which one of the following…
arrow_forward
There are multiple publicly accessible web and application servers in the CSM Tech group. All of your publicly available resources are served through DNS servers. Your public DNS servers, however, are being used to perform recursive lookups for clients that are not part of your business. Recursive requests from internal clients should only be handled by your public DNS servers; iterative inquiries from external sources should be handled by the servers. Are there any more ideas that you'd want to share? Is there anything else I need to know about the solution?
arrow_forward
Set up
Order
[ single order )
Assign
seats
[ subscription )
Assign
chairs
Award bonus
Debit
Account
charge
credit card
Mail
packet
arrow_forward
BbPython Online - 2022 Fall ET 574 X
= CO
Bing
Links
H
Remaining Time: 1 hour, 42 minutes, 51 seconds.
Question Completion Status:
P
Online Python - IDE, Editor, Con X Bb Take Test: ET574 Coding Final Ex
bbhosted.cuny.edu/webapps/assessment/take/launch.jsp?course_assessment_id=_2271631_1&course_ic
QUESTION 7
Implement the following:
1) Write a function randFive() with one parameter n.
2) randFive() create five random integers in the range (1, n) inclusive.
3) Five numbers should be stored in a list as the return value.
Call the function, randFive() with the argument, 100.
5) Print the result of the function call.
randFive() can generate any five numbers.
Make sure to precisely match the output format below.
Write your code in the ANSWER area provided below (must include comments if using code is not covered in the course).
Example Output
[1, 20, 9, 84, 46]
For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac).
BIUS Paragraph V Arial
0
P
QUESTION 8
4
Click Save and Submit to save and…
arrow_forward
Write ARM Assembly program to do:
- ISBN Checksum Validator
Use Keil uvision software to write and simulate an ARM assembly program that checks the validity
of a given ISBN by verifying the checksum
Helping Information to solve program :
1. An ISBN consists of nine digits plus a validation digit.
2. The digits are numbered from right to left as d1, d2 .. d10, with d1 being the validation digit.
3. You can define the ISBN number in a 10-byte array in the memory. Each digit is stored in a
byte.
4. To check whether the ISBN is valid or not, the following calculations are performed:
Result = (10 x d10 + 9 x d9 + ... + ix di + ... + 2 x d2) % 11
Calculate d1 11 - Result
If the calculated d1 equal to the d1 in the input ISBN then it is valid
If d1 = 10, it is written 'X'
For example, given the following ISBN:
ISBN = 5123487654
ISBN= 5 1 2 3 487654 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1
Result = x 10 + x 9 + x 8 + x 7 + x 6 + x 5 + x 4 + x 3 + x 2 mod 11
= 216 mod 11
=7
d1 = 11 - Result
= 11 -7
=4
,…
arrow_forward
There have been several actors who have played the titular character in the British sci-fi series Doctor Who
since the show began in the early 1960s. In 2005 the series was rebooted and Christopher Eccleston, David
Tennant, Matt Smith, Peter Capaldi, and Jodie Whittaker have all played the Doctor since. Several Whovians
(fans of the show) were asked to rank the actors of the Doctor from their favorite to their least favorite. The
results are in the preference schedule below using the initials of each actor (so CE = Christopher Eccleston;
DT = David Tennant; etc.).
6.
8
12
16
17
18
23
20
1st Choice
DT
DT
DT
MS
MS
PC
JW
CE
2nd Choice
CE
PC
PC
JW
CE
JW
CE
MS
3rd Choice
JW
СЕ
JW
CE
DT
DT
PC
DT
4th Choice
PC
MS
JW
MS
PC
PC
DT
PC
MS
CE
DT
JW
MS
MS
5th
Choice
JW
a. Is there a Condorcet winner?
Answer:
Explain:
b. Do any of the voting methods Plurality Method, Instant Runoff Voting Method, Borda Count Method,
Copeland's Method violate the Majority Criterion?
Answer:
Explain:
arrow_forward
There have been several actors who have played the titular character in the British sci-fi series Doctor Who since the show began in the early 1960s. In 2005 the series was rebooted and Christopher Eccleston, David Tennant, Matt Smith, Peter Capaldi, and Jodie Whittaker have all played the Doctor since. Several Whovians (fans of the show) were asked to rank the actors of the Doctor from their favorite to their least favorite. The results are in the preference schedule below using the initials of each actor (so CE = Christopher Eccleston; DT = David Tennant; etc.).
6
8
12
16
17
18
23
20
1st Choice
CE
DT
DT
DT
MS
MS
PC
JW
2nd Choice
MS
CE
PC
PC
JW
CE
JW
CE
3rd Choice
DT
JW
CE
JW
CE
DT
DT
PC
4th Choice
PC
MS
JW
MS
PC
PC
CE
DT
5th Choice
JW
PC
MS
CE
DT
JW
MS
MS
Is there a Condorcet winner?Answer: Explain:
Do any of the voting methodsPlurality Method, Instant…
arrow_forward
true/false
Both professor and assistant can create a new course (use case Create course) ( )
arrow_forward
Instruction to delete the dynArray.
arrow_forward
Detailed answer
arrow_forward
Below is a data file named as "mydata.txt":
northwest NW Charles Main
western
WE Sharon Gray
southwest SW
Lewis Dalsass
southern
southeast SE
eastern
northeast
SO Suan Chin
Patricia Hemenway
EA TB Savage
NE
AM Main Jr.
NO Ann Stephens
north
AB, ABB, ABBB, ABBBB,
ABC,ABCABC, ABCABCABC,
AAA,AAAA, AAAAA
300000.00
53000.89
290000.73
54500.10
400000.00
440500.45
57800.10
455000.50
AAB,AABB,AABBB, etc.
Write egrep and regular expressions to accomplish the following pattern searches:
a) search all the lines that contain "ABC", "ABCABC" and "ABCABCABC"
b) search all the lines that contain "north"
c) search all the lines that contain ".50" or ".00"
arrow_forward
7
arrow_forward
PLEASE HELP ME NORMALISE THIS TABLE
User_ID
User_Name
MSE_ID
Rec_Date
Subject
Text
Srvr_ID
Server_Name
2301
Smith
54101
05/07
Meeting Today
There is...
3786
IMAP05
2301
Smith
54098
07/12
Promotions
I like to...
3786
IMAP05
2301
Smith
54445
10/06
Next Assignment
Your next...
3786
IMAP05
5607
Jones
54101
05/07
Meeting Today
There is...
6001
IMAP08
5607
Jones
54512
06/07
Lunch?
Can you...
6001
IMAP08
5607
Jones
54660
12/01
Jogging Today?
Can you...
6001
IMAP08
7773
Walsh
54101
05/07
Meeting Today
There is...
9988
EMEA01
7773
Walsh
54554
03/17
Stock Quote
The latest...
9988
EMEA01
22
Patel
54101
05/07
Meeting Today
There is...
2201
EMEA09
22
Patel
54512
06/07
Lunch?
Can we...
2201
EMEA09
arrow_forward
The Department of Academic Affairs for a faculty has decided to develop a Web-based student
registration system. The system will enable the students to add courses. A drop course option should
be enabled. Student may view registered courses either by display or print. Student can send
notification to make appointment with the lecturer. Lecturer can view student registration whereby
he/she can view only his/her own taught course. Lecturer can have option to print the student
registration list. Lecturer can make announcement and have the option to acknowledge appointment
to the student. Nevertheless, lecturers neither create nor remove courses. This job is under the
responsibility of the administrator who can create a new semester. Administrator should provide
option to remove courses. From the system described,
a) Draw the UML use case diagram for student registration system described above.
b) Perform requirement modelling with a detailed user stories (practices in Extreme
Programming…
arrow_forward
Web Technologies
Write the HTML code to output the following using TABLE tag
arrow_forward
PDA DESIGN THAT ACCEPT.
arrow_forward
Write a servlet to display a table that contains factorials for thenumbers from 0 to 10, as shown in Figure .
arrow_forward
The owner of KFC wants to use a system to record the orders for the hamburgers. KFC accept the orders via phone calls. When registered customers call KFC on the phone, they are asked their phone number. If the customer is not a registered customer, then a new record is created for the customer. When the phone number is typed into a computer, the name, the email address and the address of customer are automatically brought up on the screen. After taking the order, the total, including tax is calculated. Then the order is given to the cook. A receipt is printed. Sometimes, discount coupons are printed so the customer can get a discount. Carriers who make deliveries give customers a copy of the receipt and a coupon (if there is any). Weekly totals are kept for comparison with last month’s performance.
1.Write a summary of business activities for taking an order..
2. Draw a context-level data flow diagram..
3. Draw a level-0 data flow diagram..
arrow_forward
Downloads/
E ID-21201491;name-Nuzhat Taba: X
+
English
O localhost:8888/notebooks/Downloads/ID-21201491%3Bname-Nuzhat%20Tabassum%3B%20sec%20-%2017%3B%20CSE110%3B%20Lab%20assignment%2004.ipynb
Cjupyter ID-21201491;name-Nuzhat Tabassum; sec - 17; CSE110;... Last Checkpoint: Last Tuesday at 10:45 PM (unsaved changes)
Logout
File
Edit
View
Insert
Cell
Kernel
Widgets
Help
Trusted
Python 3 O
+
> Run
Code
=========
===== ===== ==
In [7]: #to do
Task 13
Write a Python program that reads 5 numbers into a list and prints the smallest and largest number and their locations in the list. [You are not allowed to use
the max(), min(), sort(), sorted() functions here]
Hint: You may assume the first input to be the largest value initially and the largest value's location to be 0. Similarly, you can assume the first input to be the
smallest value initially and the smallest value's location to be 0.
Note: You may need to be careful while printing the output. Depending on your code, you might need data…
arrow_forward
Order Number: 5678
Customer Number: 9123
Customer Name: Thomas
Customer Address: 51 Samora Machel Street
City- Country: Durban, South Africa
ProductNo
A 123
B 234
C 345
Description
A4 Paper
Order Form
Toner
Staples
Normal Form
Quantity
100
200
1000
Date: 25/12/2020
Unit Price
R1.00
R150.00
R5.00
1.1 Using normalization principles, depict the ONF, 1NF, 2nd NF and 3rd NF of the data
above.
Example:
Below is an example of the table information converted to zero normal form, read
chapter five in your module guide and convert the table to first, second and third normal
form.
The format of your answer must be as depicted below:
• ORDER( order number, customer number, name, address, order date(product number,
description, quantity, unit price))
arrow_forward
Ans p please question as code.
arrow_forward
look at the table;
how many students are taking biology class?
arrow_forward
Create a Vaccination System using PHP that has the following features:1. Add client record(such as firstname, lastname, middlename, category, address, date of first dose, date of second dose)
Please provide code and output if its working
Please put some design on it don't answer some answer that you find on chegg don't repeat the same wrong answer you give it doesn't even run you don't put the output of that
arrow_forward
Which of FSK's parameters has been changed as a result of this change?
arrow_forward
For this assignment I need to perform the instructions below and enter the code you get from the instructions below here (Hint: starts with 143)
arrow_forward
in Hack ALU context, what happens when a NOP (no operation) slide occurs?
arrow_forward
Relatioal algebra:
Get the Student Number and Nationality of the senior students who have failed (based only on the final grade) the course entitled "Intro into CS II"
arrow_forward
sql query
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
Related Questions
- SUPPLIER PRODUCT ProductCode ProductnName unitPrice SupCode supCode (Number, 3) SupName (text, 20) АВC LLC (Number, 10) [Char(10)] (>0) 1111111 Calculator 10 111 111 2222222 Notebook 2.5 777 222 ХҮX LLC 3333333 Book-AI 20 222 3333 PQR LLC 4444444 Pen -2.0 222 222 AXL LLC 5555555 Pencil .500 111 Eraser .500 222arrow_forward4:04 l LTE 4:04 i LTE DB Quiz No.5 (12:30@ULJI selga) DB Quiz No.5 (12:30@ouI selga) CREATE TABLE Institution (name VARCHAR(50),country VARCHAR(50).year CREATE TABLE HighDegree (professorID INT REFERENCES Professor(ID).projectID INT REFERENCES Project(ID),schoolName VARCHAR(50),institutionName VARCHAR(50), FOREIGN KEY (schoolName,institutionName) REFERENCES School(name.,insitutionName), PRIMARY KEY (professorID, studentID, schoolName, institutionName); O Number INT, (name, country): PRIMARY KEY O Name and Num WA The following is an instance of the relation: CREATE TABLE Author (researcherlD INT REFERENCES Researcher(ID),.paperID INT REFERENCES Paper(ID).PRIMARY KEY (researcherlD, paperID)); O Name Based on the above, indicate for each of the following sets of attributes whether it is a key for Articles Table? CREATE TABLE PartOf (professorID INT REFERENCES Professor(ID), studentID INT REFERENCES Researcher(ID),PRIMARY KEY (professorID, projectID); Indicate which one of the following…arrow_forwardThere are multiple publicly accessible web and application servers in the CSM Tech group. All of your publicly available resources are served through DNS servers. Your public DNS servers, however, are being used to perform recursive lookups for clients that are not part of your business. Recursive requests from internal clients should only be handled by your public DNS servers; iterative inquiries from external sources should be handled by the servers. Are there any more ideas that you'd want to share? Is there anything else I need to know about the solution?arrow_forward
- Set up Order [ single order ) Assign seats [ subscription ) Assign chairs Award bonus Debit Account charge credit card Mail packetarrow_forwardBbPython Online - 2022 Fall ET 574 X = CO Bing Links H Remaining Time: 1 hour, 42 minutes, 51 seconds. Question Completion Status: P Online Python - IDE, Editor, Con X Bb Take Test: ET574 Coding Final Ex bbhosted.cuny.edu/webapps/assessment/take/launch.jsp?course_assessment_id=_2271631_1&course_ic QUESTION 7 Implement the following: 1) Write a function randFive() with one parameter n. 2) randFive() create five random integers in the range (1, n) inclusive. 3) Five numbers should be stored in a list as the return value. Call the function, randFive() with the argument, 100. 5) Print the result of the function call. randFive() can generate any five numbers. Make sure to precisely match the output format below. Write your code in the ANSWER area provided below (must include comments if using code is not covered in the course). Example Output [1, 20, 9, 84, 46] For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac). BIUS Paragraph V Arial 0 P QUESTION 8 4 Click Save and Submit to save and…arrow_forwardWrite ARM Assembly program to do: - ISBN Checksum Validator Use Keil uvision software to write and simulate an ARM assembly program that checks the validity of a given ISBN by verifying the checksum Helping Information to solve program : 1. An ISBN consists of nine digits plus a validation digit. 2. The digits are numbered from right to left as d1, d2 .. d10, with d1 being the validation digit. 3. You can define the ISBN number in a 10-byte array in the memory. Each digit is stored in a byte. 4. To check whether the ISBN is valid or not, the following calculations are performed: Result = (10 x d10 + 9 x d9 + ... + ix di + ... + 2 x d2) % 11 Calculate d1 11 - Result If the calculated d1 equal to the d1 in the input ISBN then it is valid If d1 = 10, it is written 'X' For example, given the following ISBN: ISBN = 5123487654 ISBN= 5 1 2 3 487654 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 Result = x 10 + x 9 + x 8 + x 7 + x 6 + x 5 + x 4 + x 3 + x 2 mod 11 = 216 mod 11 =7 d1 = 11 - Result = 11 -7 =4 ,…arrow_forward
- There have been several actors who have played the titular character in the British sci-fi series Doctor Who since the show began in the early 1960s. In 2005 the series was rebooted and Christopher Eccleston, David Tennant, Matt Smith, Peter Capaldi, and Jodie Whittaker have all played the Doctor since. Several Whovians (fans of the show) were asked to rank the actors of the Doctor from their favorite to their least favorite. The results are in the preference schedule below using the initials of each actor (so CE = Christopher Eccleston; DT = David Tennant; etc.). 6. 8 12 16 17 18 23 20 1st Choice DT DT DT MS MS PC JW CE 2nd Choice CE PC PC JW CE JW CE MS 3rd Choice JW СЕ JW CE DT DT PC DT 4th Choice PC MS JW MS PC PC DT PC MS CE DT JW MS MS 5th Choice JW a. Is there a Condorcet winner? Answer: Explain: b. Do any of the voting methods Plurality Method, Instant Runoff Voting Method, Borda Count Method, Copeland's Method violate the Majority Criterion? Answer: Explain:arrow_forwardThere have been several actors who have played the titular character in the British sci-fi series Doctor Who since the show began in the early 1960s. In 2005 the series was rebooted and Christopher Eccleston, David Tennant, Matt Smith, Peter Capaldi, and Jodie Whittaker have all played the Doctor since. Several Whovians (fans of the show) were asked to rank the actors of the Doctor from their favorite to their least favorite. The results are in the preference schedule below using the initials of each actor (so CE = Christopher Eccleston; DT = David Tennant; etc.). 6 8 12 16 17 18 23 20 1st Choice CE DT DT DT MS MS PC JW 2nd Choice MS CE PC PC JW CE JW CE 3rd Choice DT JW CE JW CE DT DT PC 4th Choice PC MS JW MS PC PC CE DT 5th Choice JW PC MS CE DT JW MS MS Is there a Condorcet winner?Answer: Explain: Do any of the voting methodsPlurality Method, Instant…arrow_forwardtrue/false Both professor and assistant can create a new course (use case Create course) ( )arrow_forward
- Instruction to delete the dynArray.arrow_forwardDetailed answerarrow_forwardBelow is a data file named as "mydata.txt": northwest NW Charles Main western WE Sharon Gray southwest SW Lewis Dalsass southern southeast SE eastern northeast SO Suan Chin Patricia Hemenway EA TB Savage NE AM Main Jr. NO Ann Stephens north AB, ABB, ABBB, ABBBB, ABC,ABCABC, ABCABCABC, AAA,AAAA, AAAAA 300000.00 53000.89 290000.73 54500.10 400000.00 440500.45 57800.10 455000.50 AAB,AABB,AABBB, etc. Write egrep and regular expressions to accomplish the following pattern searches: a) search all the lines that contain "ABC", "ABCABC" and "ABCABCABC" b) search all the lines that contain "north" c) search all the lines that contain ".50" or ".00"arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Np Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:Cengage
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage