100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

CSE 3901 - Midterm 2 Questions with 100% Actual correct answers | verified | latest update | Graded A+ | Already Passed | Complete Solution

Rating
-
Sold
1
Pages
6
Grade
A
Uploaded on
26-06-2024
Written in
2023/2024

CSE 3901 - Midterm 2 Questions with 100% Actual correct answers | verified | latest update | Graded A+ | Already Passed | Complete Solution

Institution
Course









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Study
Course

Document information

Uploaded on
June 26, 2024
Number of pages
6
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

CSE 3901 - Midterm 2
"34", true, false - ANS-javascript: what are the results of the following statements?
3 + "4"
3 == "3"
3 === "3"

"make" in myCar - ANS-javascript: var myCar = {make: "Ford",
year: 2006, state: "OH"}
write a statement to check of the property make exists in myCar

"NKR4621996", 2340 - ANS-javascript:
function report() {
return this.plate + this.year;
}
myCar = {plate: "NKR462", year: 1996};
yourCar = {plate: 340, year: 2000};
myCar.register = report;
yourCar.info = report;
myCar.register();
yourCar.info();

what is the output of myCar.regiter() and yourCar.info()?

25 - ANS-javascript: what is the result of the last function call?
function apply(x, a) {
return x(a);
}
function square(i) {
return i*i;
}
apply(square, 5)

document.writeln("<ol><li>");
document.writeln(
roster.filter(function (e, i, a) {
return e.gpa > 3.0;
}).sort(function (a, b) {
return b.midterm - a.midterm;
}).map(function (e, i, a) {
return e.name + " ("
+ e.midterm + ")";

, }).join("</li><li>"));
document.writeln("</li></ol>"); - ANS-Given: roster of students (an array)
var roster =
[ { name: "Mary Smith",
gpa: 3.7,
midterm: 80 },
{ name: "Xi Chen",
gpa: 3.5,
midterm: 85 },
{ name: "Alessandro Reis",
gpa: 3.2,
midterm: 74 },
{ name: "Erin Senda",
gpa: 3.0,
midterm: 68 } ];

Write a JavaScript program that outputs
an html list of students (name and
midterm score) whose gpa is > 3.0, such
that the list is sorted by midterm score

1.Xi Chen (85)
2.Mary Smith (80)
3.Alessandro Reis (74)

Dr. Turing - ANS-javascript: what does prof() return?
function grantDegree(a) {
var prefix = "Dr. ";
function add() {
return prefix + a;
}
return add;
}
var prof = grantDegree("Turing");
prof()

f is ["beluga", "blue", "killer"]
n is [300, 5, 90] - ANS-javascript: what is n and f?
var n = [5, 300, 90];
var f = ["blue", "beluga","killer"];
n.sort();
f.sort();

false - ANS-javascript:
$7.99
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached


Also available in package deal

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
DoctorHkane Havard School
Follow You need to be logged in order to follow users or courses
Sold
732
Member since
4 year
Number of followers
168
Documents
22476
Last sold
1 week ago

Explore my Stuvia collection for essential study aids: test banks, exams, summaries, and cases. With five years of expertise as an academic writer, I have honed my skills in crafting top-notch essays, exams, and research dissertations. My proficiency lies in producing well-structured and thoroughly researched content that meets academic standards. I am adept at handling various subjects and ensuring a seamless flow of ideas. Whether it's delivering compelling arguments in essays, creating challenging yet fair exam questions, or delving into in-depth research for dissertations, my experience equips me to excel in diverse academic writing tasks. I pride myself on meeting deadlines and maintaining the highest quality in every piece I produce. REACH ON iamnjokikelvin1@gmail

Read more Read less
4.6

386 reviews

5
308
4
29
3
21
2
10
1
18

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions