Results 1 to 4 of 4

Thread: Verify my test result

  1. #1

    Thread Starter
    Hyperactive Member dRAMmer's Avatar
    Join Date
    Oct 2001
    Location
    strangelans
    Posts
    463

    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!
    Attached Images Attached Images      
    live, code and die...

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  3. #3

    Thread Starter
    Hyperactive Member dRAMmer's Avatar
    Join Date
    Oct 2001
    Location
    strangelans
    Posts
    463

    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
    live, code and die...

  4. #4
    Fanatic Member Andy_P's Avatar
    Join Date
    May 2005
    Location
    Dunstable, England
    Posts
    669

    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.
    Using Windows XP Home sp3
    Mucking around with C# 2008 Express
    while ( this.deadHorse ) { flog( ); }


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width