Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Dan's question on Thread

 
Ranch Hand
Posts: 504
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Question 14

What are the possible results of attempting to compile and run the program?
a. All of the numbers 0 through 9 must always be printed
b. Some or all of the numbers 0 through 9 could be printed
c. There is no guarantee that anything will be printed
d. Run-time error


I chose c only, and that was wrong. I think, a possible result of the program's running is b indeed, but c is not a result, but rather a conclusion or concept. Anyway, the question itself is terrific , but since the number of correct choices is not shown, it was a bit confusing to me. :roll:
 
Ranch Hand
Posts: 1865
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vad,
Thank you for all of the great feedback that you have been providing.
I agree that C is more of a statement of fact rather than a result. How would you feel about the following wording.


c. Nothing is printed.

 
Vad Fogel
Ranch Hand
Posts: 504
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dan, it looks perfectly valid as a possible result now. At the same time, one could easily overlook the word possible in the question, but, well, the exam is meant to be tricky.
 
    Bookmark Topic Watch Topic
  • New Topic