Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: MCSD Certification Toolkit (Exam 70-483): Programming in C#
This is the forum to discuss the Wrox book MCSD Certification Toolkit (Exam 70-483): Programming in C# by Tiberiu Covaci, Rod Stephens, Vincent Varallo, Gerry O'Brien; ISBN: 978-1-118-61209-5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: MCSD Certification Toolkit (Exam 70-483): Programming in C# section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 22nd, 2013, 12:22 PM
Registered User
Points: 35, Level: 1
Points: 35, Level: 1 Points: 35, Level: 1 Points: 35, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2013
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Sample Questions Discussion

I found Question 1 for Chapter 2 confusing.

Here is the text: "You want to declare an integer value called myVar and assign it the value 0. How can you accomplish this?

a) declare myVar as 0;
b) myVar = 0;
c) int myVar = 0
d) int myVar = 0;

I have chosen C, but the correct answer according to the book is B. I would understand it if the question was "You want to assign value of 0 to an integer variable called myVar". However, question states that you want to DECLARE it first. So not sure why B is correct answer. Please explain.
Reply With Quote
  #2 (permalink)  
Old June 22nd, 2013, 09:15 PM
Registered User
Points: 18, Level: 1
Points: 18, Level: 1 Points: 18, Level: 1 Points: 18, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2013
Location: Arizona
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Question MCSD Certification Toolkit (Exam 70-483)

oleksiypavlenko,

In my opinion the answer to that question is (D), if (B) is the right answer it is assuming an implicit type without the 'var' in front of it. There must be a Question 1 for Chapter 2 Errata for this.

Regards
Reply With Quote
  #3 (permalink)  
Old July 3rd, 2013, 05:38 AM
Registered User
Points: 30, Level: 1
Points: 30, Level: 1 Points: 30, Level: 1 Points: 30, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2008
Location: Auckland, , New Zealand.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Question1 Chapter 2

oleksiypavlenko, cocis48 is right. D is the correct answer. You were close with your original answer of C, but a simple statement needs to be terminated by a semicolon (;).
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chap 2 additional sample questions rg703 BOOK: MCSD Certification Toolkit (Exam 70-483): Programming in C# 1 May 29th, 2013 01:58 PM
project analysis discussion msman88 ASP.NET 3.5 Professionals 0 March 31st, 2010 12:10 PM
c discussion forum giri_nitr C++ Programming 0 April 30th, 2007 05:44 AM
Discussion: URL Rewriting planoie ASP.NET 1.x and 2.0 Application Design 2 January 25th, 2006 03:38 PM



All times are GMT -4. The time now is 05:01 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.