Ch02_Questions

Ch02_Questions - C# Programming: From Problem Analysis to...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
1. d. Web 2. a. /* 3. d. namespace 4. d. namespace 5. b. { } 6. c. using 7. a. Main( ) 8. b. System.Console.Read( ) 9. e. compiler 10. a. prototype 11. d. IntelliSense 12. c. execute 13. b. containing a Main( ) method 14. c. \n 15. d. Console.Write(“ok”); C# Programming: From Problem Analysis to Program Design , 2nd edition ISBN 1423901460 Chapter 2 Doyle: C#, 2nd edition ISBN 1423901460 Page 1-1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
16. Syntax – Semicolon left off of line 2 or line 9. Other potential problems include typing main( ) instead of Main( ) or failing to have a closing curly brace. Logic – Displaying the wrong message or asking for input instead of displaying output. 17. Go Laugh Out Loud Think Happy 18. Replace the WriteLine( ) method on line 11 with a Write( ) method 19. DotGNU Portable.NET at www.southern-storm.com.au/portable_net.html 20. a. Lines 9 through 13 b. defined on Line 3 c. Line 5 d. Lines 9 through 13 e. Line 1 f. Line 3 and 5 contain user defined identifiers 21. Semicolon needed at the end of Line 1 and Line 8; keyword namespace misspelled on line 2; Keyword class missing from Line 4; keyword void
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 6

Ch02_Questions - C# Programming: From Problem Analysis to...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online