Finalquiz Logo

Q&A Hero

  • Home
  • Plans
  • Login
  • Register
Finalquiz Logo
  • Home
  • Plans
  • Login
  • Register

Home » Programming Language » Page 17

Programming Language

Q: The Trim method removes characters from the original string.

Q: The StringLength property stores an integer that represents the number of characters contained in a String.

Q: If an application expects the user to enter a seven-digit phone number or a five-digit ZIP code, the application's code should verify that the user entered the required number of characters.

Q: Applications rarely need to manipulate (process) string data.

Q: The syntax of the Peek method is ____. a. streamReaderVariableName.Peekaboo b. Peek.streamReaderVariableName c. streamReaderVariableName.Peek d. Peek(streamReaderVariableName)

Q: A ____ is defined as a sequence (stream) of characters followed by the newline character. a. line b. row c. column d. string

Q: The ____ method can be used to read a file's contents, one line at a time. a. Read b. ReadLine c. ReadInputLine d. ReadInput

Q: The syntax for determining whether a sequential access file exists is ____. a. IO.Exists(fileName) b. IO.(fileName).Exists() c. IO.File.Exists(fileName) d. IO.File(fileName).Exists

Q: The ____ method returns the Boolean value True if the file exists; otherwise, it returns the Boolean value False. a. IsThere b. CanFind c. DoesExist d. Exists

Q: After declaring a StreamReader variable, you can use the ____ method to open a sequential access file for input, which automatically creates a StreamReader object. a. ReadText b. InputText c. GetText d. OpenText

Q: The syntax to close a sequential access file associated with a StreamWriter object is ____. a. streamWriterVariableName.Close() b. streamWriterVariableName.FileClose() c. streamWriterVariableName.CloseFile() d. Close.streamWriterVariableName(data)

Q: If the file to be opened exists, the ____ method writes new data after any existing data in the file. a. InsertText b. AppendText c. CreateText d. AddText

Q: You use the ____ method to create a new, empty sequential access file to which data can be written. a. OpenText b. AppendText c. CreateText d. NewText

Q: The syntax for declaring a streamwriter variable is ____. a. [Dim | Private] streamWriterVariableName As IO.StreamWriter b. {Dim | Private} streamWriterVariableName As IO.StreamWriter c. {Dim | Private} streamWriterVariableName As IO.StreamWriteObject d. Private streamWriterVariableName As IO.StreamWriter

Q: In Visual Basic, you use a ____ object to write a stream of characters to a sequential access file. a. StreamReader b. StreamWriteObject c. StreamWriter d. StreamReadWriteObject

Q: Programmers refer to a sequence of characters as a(n) ____. a. array stream b. bytestream c. flow d. stream of characters

Q: Most input and output files are referred to as ____ files. a. sequential access b. random access c. any access d. serial access

Q: Files that are read by the computer are called ____ files. a. output b. readOnly c. writeOnly d. input

Q: Files to which data is written are called ____ files. a. input b. output c. writeOnly d. readOnly

Q: The Peek method determines whether a file contains another character to read.

Q: In most cases, an application will need to read each line of text contained in a sequential access file, one line at a time.

Q: The ReadLine method requires you to provide the file's name.

Q: In most cases, you assign the string returned by the ReadLine method to a String variable.

Q: The ReadLine method returns a string that contains the sequence of characters in the current line, including the newline character at the end of the line.

Q: You can use the Exists method to avoid the run time error that occurs when the computer cannot locate the file you want opened for input.

Q: After creating the StreamReader object, you declare a variable to store the object in the computer's internal memory.

Q: You can use a text box's Focus method to send the focus to the text box during run time.

Q: When you are writing data to a file, in most cases you will use the Write method.

Q: The "doc" filename extension is commonly used when naming sequential access files.

Q: When you open a file for output, if the file already exists, the computer erases the contents of the file before writing any data to it.

Q: Before you create a StreamWriter object, you first declare a variable to store the object in the computer's internal memory.

Q: An item of datasuch as the string "Taylor"is viewed similarly by a human being and a computer.

Q: Most input and output files are composed of lines of text that are both read and written sequentially.

Q: In addition to getting data from the keyboard and sending data to the computer screen, an application can also get data from and send data to a file on a disk.

Q: To access a member of a structure variable in an array, you use the syntax ____. a. memberVariableName.arrayName(subscript) b. arrayName(subscript).memberVariableName c. arrayName.memberVariableName(subscript) d. memberVariableName(subscript).arrayName

Q: A structure variable can be passed to a procedure or stored in a(n) ____. a. function b. constant c. variable d. array

Q: The dot member access operator is a(n) ____. a. asterisk b. semicolon c. period d. colon

Q: You use the ____ to separate the structure variable's name from the member variable's name. a. dot member access operator b. access operator c. dot member access d. dot access operator

Q: You refer to a member variable by preceding the member's name with the name of the ____ variable. a. member b. object c. module d. structure

Q: You use the ____ keyword to declare a class-level structure variable. a. Public b. Dim c. Private d. Static

Q: You use the ____ keyword to declare a procedure-level structure variable. a. Dim b. Public c. Static d. Internal

Q: Variables declared using a structure as their data type are often referred to as ____ variables. a. object b. structure c. static d. internal

Q: In most structures, the member variables are defined using the keyword ____ followed by the variable's name, the keyword As, and the variable's data type. a. Private b. Static c. Dim d. Public

Q: The members of a structure can be ____. a. variables only b. procedures only c. variables or procedures d. neither variables nor procedures

Q: Between the Structure and End Structure clauses, you define the ____ included in the structure. a. members b. objects c. parameters d. structs

Q: The convention with structure statements is to enter structure names using ____ case. a. LISP b. Pascal c. COBOL d. FORTRAN

Q: Data types created using the Structure statement are referred to as ____. a. structures b. objects c. object structures d. data objects

Q: You can create your own data types in Visual Basic using the ____ statement. a. UserType b. UserStructure c. DateType d. Structure

Q: A structure variable can be stored in an array only when its members have the same data type.

Q: The ability to pass a structure variable and its members as one unit is the not an advantage of using a structure.

Q: When you pass a structure variable to a procedure, all of its members are passed automatically.

Q: You can use a structure to group together related items.

Q: The member variables in a structure variable cannot be used just like any other variables.

Q: In most applications, you enter the Structure statement in the form's Declarations section.

Q: In a structure, you can group together items having the String data type along with items having a numeric data type.

Q: The items in a structure must have the same data type.

Q: The Structure statement provides the pattern for a data type that can be used to reserve a memory location.

Q: The Structure statement itself reserves locations in the computer's internal memory.

Q: The variables defined in a structure are referred to as member variables.

Q: Most programmers use the Structure statement to create data types that contain procedures.

Q: Between the Structure and End Structure clauses, you define the members included in the structure.

Q: Pascal case means capitalizing the first letter in the name and the first letter of each subsequent word in the name.

Q: When GetUpperBound is used with a two-dimensional array, the ____ in the dimension argument represents the column dimension. a. 0 b. 1 c. col d. horz

Q: When GetUpperBound is used with a two-dimensional array, the ____ in the dimension argument represents the row dimension. a. 0 b. 1 c. row d. vert

Q: When GetUpperBound is used with a one-dimensional array, the dimension argument will always be ____. a. 0 b. 1 c. 2 d. 3

Q: In the GetUpperBound syntax, ____ is an integer that specifies the dimension whose upper or lower bound you want to retrieve. a. initialValue b. dimension c. rowValue d. columnValue

Q: An array's ____ method returns an integer that indicates the highest subscript in the specified dimension in the array. a. GetGreatestBound b. GetHighestBound c. GetUpperBound d. GetUpper

Q: If the outer loop of a nested loop controls the ____ subscript in a two-dimensional array, the array is filled with data row by row. a. column b. row c. outer d. nested

Q: Within the individual ____ sections of a two-dimensional array, you enter one or more values separated by commas. a. dimension b. typeValue c. initialValues d. defaultValues

Q: The first row subscript in a two-dimensional array is ____. a. 0 b. 1 c. 2 d. 3

Q: In a two-dimensional array, the variable's row and column subscripts are specified in a set of ____ immediately following the array name. a. square brackets b. braces c. slashes d. parentheses

Q: In a two-dimensional array, the variable's row and column subscripts are separated by a ____. a. semicolon b. comma c. period d. dash

Q: Elements located in the first row in a two-dimensional array are assigned a row subscript of ____. a. 0 b. 1 c. 2 d. 3

Q: The ____ in a two-dimensional array specify the variable's row and column positions in the array. a. array scripts b. array pointers c. subscripts d. superscripts

Q: A ____-dimensional array resembles a table in that the variables (elements) are in rows and columns. a. one b. two c. three d. four

Q: To accumulate the values stored in an array, you need to access each array element.

Q: You can only use the GetUpperBound method with two-dimensional arrays.

Q: If the outer loop of a nested loop controls the row subscript in a two-dimensional array, the array is filled with data column by column.

Q: If you need to access each element in a two-dimensional array, you typically do so using an outer loop and a nested loop.

Q: The variables (elements) in a two-dimensional array can be used just like any other variables.

1 2 3 … 30 Next »

Subjects

Accounting Anthropology Archaeology Art History Banking Biology & Life Science Business Business Communication Business Development Business Ethics Business Law Chemistry Communication Computer Science Counseling Criminal Law Curriculum & Instruction Design Earth Science Economic Education Engineering Finance History & Theory Humanities Human Resource International Business Investments & Securities Journalism Law Management Marketing Medicine Medicine & Health Science Nursing Philosophy Physic Psychology Real Estate Science Social Science Sociology Special Education Speech Visual Arts
Links
  • Contact Us
  • Privacy
  • Term of Service
  • Copyright Inquiry
  • Sitemap
Business
  • Finance
  • Accounting
  • Marketing
  • Human Resource
  • Marketing
Education
  • Mathematic
  • Engineering
  • Nursing
  • Nursing
  • Tax Law
Social Science
  • Criminal Law
  • Philosophy
  • Psychology
  • Humanities
  • Speech

Copyright 2025 FinalQuiz.com. All Rights Reserved