|
-
Nov 1st, 2005, 10:38 PM
#1
Thread Starter
Hyperactive Member
Verify my test result
I am posting this because it is already my third try for this exam. This exam is from msdn connection, I am trying the site to know my skills on .net.
Can you guys tell me how many questions did I answered correctly, I am asking this to make sure that the result I got is accurate. I also made screenshots because I got suspiscious on my second try. I think for this try I only got 1 incorrect answer, unless you see otherwise.
Also, kindly give a reason on the wrong answers I got.
Thanks in advance!
-
Nov 1st, 2005, 11:28 PM
#2
Re: Verify my test result
#1 is 20. Because the first run its 7 (2+3+2). Then because of the =+ it means to add to its previous value. The second call passing 5 as x adds to the previous values of the variables but because of the Static Dim y As Integer it will retain its previous value. So x = 5, y = 6 (3+3), and z = 2. 7 + 13 = 20.
I'd say #2 and #3 are correct.
#4 is 36 elements.
#7. arrays must contain elements all of the same type.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Nov 1st, 2005, 11:50 PM
#3
Thread Starter
Hyperactive Member
Re: Verify my test result
HI! Thanks for the response.
#3 is about scope type. Based on the article I've read, Class would be "best" choice. If you have other comments/explanation I will be glad to hear it.
#4 why would you say it's 36? isn't it 2*3*2=12
So what would be your comment abour the result? MSDN said that I only got 6 correct answers. There's no problem about that if I could only understand my mistakes.
Thanks
-
Nov 2nd, 2005, 01:51 PM
#4
Re: Verify my test result
#4 is 36, and not 12 because arrays are zero-based in .NET.
Therefore an array defined as (2, 3, 2) has 'dimensions' with a size of:
3 elements (0, 1 and 2)
4 elements (0, 1, 2 and 3)
3 elements (0, 1 and 2)
So the number of elements in total is 3*4*3 = 36.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|