• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 7 pages
Exam (elaborations)

ISDS 505 Midterm Study Guide|Complete Questions with Correct Answers Graded A+

Document preview thumbnail
Preview 2 out of 7 pages

ISDS 505 Midterm Study Guide|Complete Questions with Correct Answers Graded A+ In Object-oriented programming language, the ability to create methods that act appropriately depending on the context is called _________. inheritance instance encapsulation polymorphism polymorphism in "using System;", what is "System" referring to? variable class namespace method namespace Which of the following is NOT a valid C# identifier this _order a1 a this Which of the following pairs is an example of a class and an object, in that order? car and vehicle cup and glass CSUF and university animal and bear animal and bear What is NOT considered a keyword by the C# language? catch global implicit static global Which of the following expression is equivalent to x || y && w || z? x && y || w && z two of these x || (y && w) || z (x || y) && (w || z) x || (y && w) || z What is the value of the variable named counter after the following statements are executed? double percent = 0.54; bool valid = true; int counter = 1; if ((percent 0.50) && (valid == true)) { counter += 2; if (valid == true) counter++; else if (percent = 0.50) counter += 3; } else counter++; 2 4 7 3 4 Which value of x would make the following condition true: (x=5) && (x=6) both B and C A. x=7 B. x=5 C. x=5.001 both B and C If orderTotal has a value of 50 and quantity has a value of 10, what is the value of discount after these statements are executed? if (quantity == 1 || quantity == 2) discount = 0; else if (quantity = 3 && quantity 10) discount = orderTotal * .1; else if (quantity 10 && quantity = 25) discount = orderTotal * .2; else discount = orderTotal * .3; 15 10 0 5 15 If quantity has a value of 2, what is the value of discount after these statements are executed? switch (quantity) { case 1: discount = 0; break; case 2: case 3: discount = .1; break; default: discount = .2; break; } 0 .2 .1 2 .1 What is the value of sum after the following code is executed? int sum = 0; for (int i = 2; i 10; i += 2) { sum += i; } 54 30


Document information

Uploaded on
April 29, 2024
Number of pages
7
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers
$11.50

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

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.
QUICKEXAMINER
3.6
(15)
Sold
92
Followers
44
Items
5368
Last sold
5 months ago



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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions

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