100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CIS 223 CH 3 Practice Questions and Answers $11.49   Add to cart

Exam (elaborations)

CIS 223 CH 3 Practice Questions and Answers

 0 view  0 purchase
  • Course
  • Prep Tests
  • Institution
  • Prep Tests

CIS 223 CH 3 Practice Questions and Answers What is the result of the following statement, given that count = 6? if (count == 6) - ANSWER-True True/False: The result of any test condition is always either true or false. - ANSWER-True Which statement is equivalent to the following? (X > 6) ...

[Show more]

Preview 2 out of 6  pages

  • November 10, 2024
  • 6
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • Prep Tests
  • Prep Tests
avatar-seller
OliviaWest
Copyright © OLIVIAWEST2024/2025 ACADEMIC YEAR. ALL RIGHTS RESERVED




CIS 223 CH 3 Practice Questions and

Answers


What is the result of the following statement, given that count = 6?




if (count == 6) - ANSWER✔✔-True


True/False: The result of any test condition is always either true or false. - ANSWER✔✔-True


Which statement is equivalent to the following?




(X > 6) - ANSWER✔✔-!(x <= 6)


A valid test condition could be (x = 10), assuming x is an integer variable. - ANSWER✔✔-False


A switch structure is a multiple alternative selection structure. - ANSWER✔✔-True


What integer values of y would make the following statement true?




(y >= 4) || (y < 8) - ANSWER✔✔-all integers


Which of the following will set the variable num to the value 8? - ANSWER✔✔-num = Math.sqrt(64);


Which of the following will generate a random number between 0 and 5? - ANSWER✔✔-

Math.floor(Math.random() * 6));

Copyright ©Stuvia International BV 2010-2024 Page 1/6

, Copyright © OLIVIAWEST2024/2025 ACADEMIC YEAR. ALL RIGHTS RESERVED


What will display after the following code is run if name = "Morris"?




if(name > "Joe")


document.write("Morris is a cat.");


else


document.write("Joe rules!"); - ANSWER✔✔-Morris is a cat.


Which of the following will set the variable num to the value of 10 if num = 10.3625? - ANSWER✔✔-num

= Math.floor(num);


In an if... structure, the only possible outcomes are either: a block of statements are executed or nothing

is executed. - ANSWER✔✔-True


What integer values of x would make the following statement true?




(x >= 2) && (x < 6) - ANSWER✔✔-2, 3, 4, 5


Which statement is equivalent to the following:




(x >= 0) && (x <= 100) - ANSWER✔✔-!((x < 0) || (x > 100))


While it is possible to nest an if...else structure within an if... structure, it is not possible to nest an if...

structure inside if...else structure. - ANSWER✔✔-False




Copyright ©Stuvia International BV 2010-2024 Page 2/6

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller OliviaWest. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $11.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

77254 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$11.49
  • (0)
  Add to cart