CIS 170 Week 1 Quiz

01 August, 2024 | 5 Min Read

Question : ( TCO 1) What does IDE stand for?

Student Answer:	 Interior Design Environment

     Integrated Development Environment

 Integrated Design Environment

 Interior Development Environment

Instructor Explanation: See Week 1 Lecture - Integrated Development Environment (IDE), which is designed to enhance a programmer's productivity

Points Received:	3  of  3  	Comments:

Question 2. Question :

(TCO 1) A program that is a character-based command line program is known as a _____.

Student Answer:	 desktop application

 .Net application

     console application

 GUI application

Instructor 	See Week 1 Lecture - A console application is a character-based command line 

Explanation: program. It provides a text-only interface without any of the graphics capability found in Windows.

Points Received:	3  of  3  	Comments:

Question 3. Question :

(TCO 1) The _____ color codes VB commands to help us identify errors.

Student Answer:	 	 text editor

 compiler

 solution explorer

 properties window

Instructor 	See Week 1 Lecture - Programmers use the Visual Studio text editor to enter and 

Explanation: save source code program files for Visual Studio projects. The extension for VB source code files is .vb.

Points Received:	3  of  3  	Comments:

Question 4. Question :

( TCO 1) Which of the following is a control in VB?

Student Answer:	 	 Button

 Radio

 Title Box

 Text List

Instructor 	See Week 1 Lecture - You are likely familiar with text boxes, buttons, list boxes, and Explanation:	the like. All of these items are known as controls.

Points Received:	3  of  3  	Comments:

Question 5. Question :

(TCO 1) Where can a control’s characteristics can be found?

Student Answer:	 Solution explorer

 Programmatically

 There isn’t a need to do this.

     Properties window

Instructor Explanation:	See Week 1 Lecture - A comprehensive list of supported controls can be found in Visual Studio’s Toolbox window. When the need for a particular control arises, you simply select it from the Toolbox, drag it onto your Form, and then configure its properties using the Properties window.

Points Received: 3 of 3

Comments:

Question 6. Question :

( TCO 1) Which action creates an Event in a VB application?

Student 	 	 Clicking a button

Answer:

 Highlighting code

 Compiling code

 Running a program

Instructor 	See Week 1 Lecture - As a user interacts with an application, ā€œthingsā€ happen in the 

Explanation: background. For example, when a user clicks on a button, processing occurs inside the application that transforms inputs into desired outputs. The code that does this processing is triggered by an event, which is simply an action taken by the user. Events include actions such as clicking on a button or double clicking on an icon.

Points Received:	3  of  3  	Comments:

Question 7. Question :

(TCO 1) _____ is/are used to document what a program, function, or statement accomplishes.

Student Answer:	 Source code

     Comments

 Debugging notes

 Output documentation

Instructor 	See Week 1 Lecture - Comments are notes embedded in a program that remind a Explanation:	programmer what their code is doing and why.

Points Received:	3  of  3  	Comments:

Question 8. Question :

(TCO 1) When creating a VB GUI application, controls such as button and text boxes are placed on what type of container?

Student Answer:	 Application

 Canvas

     Form

 Display

Instructor Explanation:	See Week 1 Lecture - All VB basic GUI programs use Forms to display controls.

Points Received:

Comments:	3  of  3

Question 9. Question :

(TCO 1) _____ have special meaning in VB and are built into the language.

Student Answer:	 Commands

 Proper nouns

     Reserved words

 Logic errors

Instructor See Week 1 Lecture - First, notice the words that have a blue font. Those words have

Explanation: special meaning and special uses in VB. They are examples of key words of the language. Any keyword in VB cannot be used as a variable, method, or class name in your code.

Points Received:	3  of  3  	Comments:

. (TCO 1) VS automatically _____ code, which can help find syntax errors.

Student 	indents

Question 10 Question :

Answer:

 runs

 quality checks  	 	 saves

Instructor 	See Week 1 Lecture - You’ll find that as you create your VB programs, Visual Studio 

Explanation: automatically indents your code for you. This can be extremely helpful in finding syntax errors in your code. If you notice that your lines of code are not indenting as you’d expect, chances are you have an error in your code. That error prevents Visual Studio from knowing how to properly indent your code. When this happens, take a look at the first couple of lines that don’t seem to indent correctly. Chances are you have a typo!

Points Received:	0  of  3  	Comments:

Question 11. Question :

( TCO 1) List and describe two characteristics of a compiler.

Student Answer:	An important part of any compiler is the detection and reporting of errors. Compiler: A program that reads a program written in one language (the source program)and 

translates it into an equivalent program in another language (the target program) Translation process: the compiler reports to its user the presence of errors in the source program program execution is fast

Instructor Explanation:	See the following items below:

• Combines all related project files into one program file, known as an executable file (.exe)

• There are three types of errors that can be in programs: syntax, logic, and runtime errors.

• Similar to the MS Word Spell/Grammar Check, the Visual Studio compiler checks each program to make sure that program does not have errors that are caused when the program code breaks the rules of the programming language, known as syntax errors. Syntax errors reported by the programming language compiler must be resolved in order for the compiler to generate an executable file for your program.

• In order to run any program on computer hardware, you must test the program to see that it actually satisfies the specifications and then validate that the output does not conflict with the expected results (logic errors). The executable file is used to run your program on computer hardware and determine whether the program does what it was designed to do.

• Programming inconsistencies can also give rise to runtime errors, which in general cause abrupt cancellation of the program unless we have built error-handling precautions into our programs (more on this in a future lecture)

Related posts