Computer Science > EXAM > Comp 230 Quiz Week 2 (GRADED A) Questions and Answers | Download To Score An A (All)
Comp 230 Quiz Week 2 1. Question : (TCO 2) What is the problem with the following statement? lastName = "smith Student Answer: There is nothing wrong with this statemen ... t. lastName is not a descriptive variable name. Smith should be in double quotes. The value on the left must be a variable name. Instructor Explanation: See the Week 2 Lecture, Doc Sharing files, and textbook references to Chapters 1, 2, 5, 6, 7, and 8. Points Received: 2 of 2 Comments: Question 2 Question : . (TCO 2) An English-like statement used to describe the logic of a program is known as . Student Answer: desk-checking pseudocode flowchart code map Instructor Explanation: See the Week 2 Lecture, Doc Sharing files, and textbook references to Chapters 1, 2, 5, 6, 7, and 8. Points Received: 2 of 2 Comments: Question 3 Question : . (TCO 2) Variable names should typically be . Student Answer: multiple words with spaces multiple words without spaces only a single letter uppercase letters only Instructor Explanation: See the Week 2 Lecture, Doc Sharing files, and textbook references to Chapters 1, 2, 5, 6, 7, and 8. Points Received: 2 of 2 Comments: Question 4 Question : . (TCO 2) What is the best choice for a variable name representing a bank balance? Student Answer: bankBalance balance bb b Instructor Explanation: See the Week 2 Lecture, Doc Sharing files, and textbook references to Chapters 1, 2, 5, 6, 7, and 8. Points Received: 2 of 2 Comments: Question 5 Question : . (TCO 2) What is the best choice for a variable name representing a hard drive size? Student Answer: hds drive size hardDriveSize Instructor Explanation: See the Week 2 Lecture, Doc Sharing files, and textbook references to Chapters 1, 2, 5, 6, 7, and 8 Points Received: 2 of 2 Comments: Question 6 Question : . (TCO 2) String constants and refer to the same concept. Student Answer: variables string literals numbers numeric identifiers Instructor Explanation: See the Week 2 Lecture, Doc Sharing files, and textbook references to Chapters 1, 2, 5, 6, 7, and 8 Points Received: 2 of 2 Comments: Question 7 Question : . (TCO 2) The value of a string constant will always . Student Answer: change during the execution of a program remain the same until assigned a valid value be on the left side of an assignment operation retain the same value during program execution Instructor Explanation: See the Week 2 Lecture, Doc Sharing files, and textbook references to Chapters 1, 2, 5, 6, 7, and 8 Points Received: 2 of 2 Comments: Question 8 Question : . (TCO 2) If a variable held the value 12345, what would be its data type? Student Answer: Text Integer Floating point String Instructor Explanation: See the Week 2 Lecture, Doc Sharing files, and textbook references to Chapters 1, 2, 5, 6, 7, and 8 Points Received: 2 of 2 Comments: Question 9 Question : . (TCO 2) Which one of the following VBScript Output Methods will keep the cursor on the same line as the displayed text? Student Answer: WScript.StdOut.Write( ) WScript.Write( ) WScript.Echo WScript.StdOut.WriteLine( ) Instructor Explanation: See the Week 2 Lecture, Doc Sharing files, and textbook references to Chapters 1, 2, 5, 6, 7, and 8. Points Received: 2 of 2 Comments: Question 10 Question : . (TCO 2) Which one of the following VBScript Input Methods will allow the user to type data terminated by the <Enter> key into a VBScript program from the Windows CLI when prompted by the program? Student Answer: WScript.StdIn.Read( ) WScript.StdIn.ReadLine( ) WScript.Input( ) WScript.Keyboard.In( ) Instructor Explanation: See the Week 2 Lecture, Doc Sharing files, and textbook references to Chapters 1, 2, 5, 6, 7, and 8. Points Received: 2 of 2 Comments: [Show More]
Last updated: 3 years ago
Preview 1 out of 6 pages
Buy this document to get the full access instantly
Instant Download Access after purchase
Buy NowInstant download
We Accept:
COMP 230 Week 1 Lab: Windows CLI Commands Lab Report COMP-230 Week 1 Quiz (View Questions) COMP 230 Week 2 Lab: VBScript IPO Lab Report COMP-230 Week 2 Quiz (View Questions) COMP 230 Week 3 Co...
By Prof. Goodluck 3 years ago
$14.5
19
Can't find what you want? Try our AI powered Search
Connected school, study & course
About the document
Uploaded On
May 04, 2022
Number of pages
6
Written in
All
This document has been written for:
Uploaded
May 04, 2022
Downloads
0
Views
109
Scholarfriends.com Online Platform by Browsegrades Inc. 651N South Broad St, Middletown DE. United States.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Scholarfriends · High quality services·