Programming Technologies: Java and Visual Basic

Quiz covering Java programming fundamentals (RMI, applets, threads, compiler) and Microsoft Visual Basic 6 to VB.NET migration topics including LINQ, object-oriented programming, and upgrade wizards.

19 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

If you know you want to migrate your Visual Basic 6 application to VB.NET, what is the first thing you should do?

  1. Open the Visual Basic Upgrade Wizard, get a cup of coffee and watch it run.
  2. Assess the VB 6 application; find out what controls it uses, what projects are in there and so on.
  3. Cancel all social plans for the next couple months and start rewriting the app in .NET.
  4. Schedule meetings with end users to see what features they want to add to the app.
Question 2 Multiple Choice (Single Answer)

Some bits of a Visual Basic 6 application, like most APIs, can be easily migrated to VB.NET; other parts are not so straightforward. Which of the following will NOT have to be re-architected during a VB 6-to-VB.NET migration?

  1. DHTML pages
  2. ActiveX documents
  3. OLE controls
  4. ADO to ADO via Interop
Question 3 True/False

True or False: The Visual Basic Upgrade Wizard will convert all the code in your VB 6 application to VB.NET code for you.

  1. True
  2. False
Question 4 Multiple Choice (Single Answer)

Does the Visual Basic Upgrade Wizard support ASP to ASP.NET migrations?

  1. Yes, in all cases.
  2. Yes, in some cases.
  3. No, not at all.
  4. Don't Know
Question 5 Multiple Choice (Single Answer)

Which of the following is the LEAST compelling reason to migrate an application from Visual Basic 6 to Visual Basic .NET?

  1. You want to take advantage of ASP.NET features such as its caching abilities.
  2. The application relies heavily on third-party controls or dynamic link libraries (DLLs).
  3. The application's original developers were new to Visual Basic and/or used some "out of the box" development approaches.
  4. Your company's business processes do not change all that often.
  5. The application uses COM+ components in a high-traffic Web environment.
Question 6 Multiple Choice (Single Answer)

This programming language model is used sparingly in VB 6 but is one of the cornerstones of VB.NET. Knowing the ins and outs of it will make an application migration project easier and also prepare you for additional work in VB.NET. What is the model?

  1. Modular programming
  2. Aspect-oriented programming
  3. Object-oriented programming
  4. Reflective programming
Question 7 Multiple Choice (Single Answer)

As expected, Visual Basic 2005 comes with lots and lots of improvements over VB 6 and VB 2003. Which of the following is NOT out-of-the-box functionality in Visual Basic 2005?

  1. Refactoring
  2. Debugger ToolTips
  3. Code snippets
  4. Snap lines for graphical form-building For the answer
Question 8 Multiple Choice (Single Answer)

Data query building can sometimes be a bone of contention for VB 6 developers, since it involves SQL or XQuery. Microsoft is introducing a series of changes to the .NET Framework, such as a unified programming model for querying objects, databases and XML, that should make data queries much easier. What is the name for this set of technologies?

  1. Rosario
  2. Orcas
  3. Yukon
  4. LINQ
Question 9 Multiple Choice (Single Answer)

When Visual Studio 2005 and SQL Server 2005 were introduced to the world, Microsoft decided to revamp its certification process. Once Windows Vista is released, the titles of Microsoft Certified Professional (MCP), Microsoft Certified Application Developer (MCAD), and Microsoft Certified Solution Developer (MCSD) will no longer apply. Which of the following titles is NOT a category in Microsoft's new three-tiered certification framework?

  1. Microsoft Certified Application Developer
  2. Microsoft Certified Technology Specialist
  3. Microsoft Certified Architect
  4. Microsoft Certified IT Professional
Question 10 True/False

You and a friend from college, who works at a company across town, get together for dinner. You explain that you are in the middle of a VB 6-to-VB.NET migration and indicate that it is a bit of a challenge. Your friend says, "You should've just migrated to C#. It's cheaper and easier." Is your friend right?

  1. True
  2. False
Question 11 Multiple Choice (Single Answer)

A Java program typically runs

  1. Faster than a program written in a shell script language, but slower than a program in a native language such as C
  2. Slower than programs in shell script languages, but with modern computers that isn't a problem
  3. About the same speed as a program written in a native language such as C, and much faster than a shell script
  4. Faster than anything else on the same computer
Question 12 Multiple Choice (Single Answer)

Java is:

  1. A widget set for programmers
  2. A programming language
  3. A set of programmer's libraries
  4. A network service
Question 13 Multiple Choice (Single Answer)

Java was written by:

  1. Larry Wall
  2. SUN
  3. Microsoft
  4. Netscape
Question 14 Multiple Choice (Single Answer)

If you write a piece of Java ...

  1. Java automatically works both within a web page and stand-alone.
  2. You have to write separate pieces of Java if you want to run them in both a web page and stand-alone, although many
  3. If you're careful, the same piece of Java can be used both as a stand-alone program and within a web page.
  4. You run your Java first in a web page. A button then lets you save a local copy which you can run stand-alone
Question 15 Multiple Choice (Single Answer)

The acronym "JAVA" stands for:

  1. John's Advanced Visual Application
  2. Just Another Virtual Analyser
  3. Nothing
  4. Joint Academic Virtual Application
Question 16 Multiple Choice (Single Answer)

Which of these products always produces pure Java output?

  1. Recent Netscape and Internet Explorer browsers which include JavaScript
  2. The Java compiler from Sun's Java Development Kit
  3. Borland's C++ compiler
  4. Microsoft's Visual J++
Question 17 Multiple Choice (Single Answer)

Threads are used:

  1. To maintain multiple contexts
  2. To allow a Java program to do several things at the same time
  3. Only to hold the seams in the programmer's trousers.
  4. As a debugging tool to allow the programmer to trace back once a Java program has completed its operation
Question 18 Multiple Choice (Single Answer)

In order to distribute Java applets, you require

  1. A Unix or Linux workstation which (in practice) would have a permanent link to the internet.
  2. The applet in .class format
  3. A licensed copy of the Java Development Kit, which comes with the appropriate rights for any programs you create
  4. A Java-enabled web server
Question 19 Multiple Choice (Single Answer)

RMI is

  1. A Java application for remote access to Microsoft servers via the Internet
  2. The recommended way of having multiple invocations of the same program running on a single system
  3. The pre-cursor of Java, now largely superceded
  4. A way of having a Java program or applet on one computer use Java methods and objects that are residing on another