Programming with Microsoft Visual Basic 2017
8th Edition
ISBN: 9781337102124
Author: Diane Zak
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
Textbook Question
Chapter 10, Problem 1RQ
The name of a class file ends with which of the following filename extensions?
- a. .cla
- b. .cls
- c. .vb
- d. None of the above.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
The name of a class file ends with which of the following filename extensions? a. .cla b. .cls c. .vb d. None of the above.
A student wants to write into a file called myfile, without deleting its existing content. Which one of the following functions should he or she use?
f = open('myfile', 'r')
f = open('myfile', 'w+b')
f = open('myfile', '+')
f = open('myfile', 'a')
Write an application that displays the name, containing folder, size, and time of last modification for the file FileStatistics.java.
Chapter 10 Solutions
Programming with Microsoft Visual Basic 2017
Ch. 10 - The name of a class file ends with which of the...Ch. 10 - The Inventory class contains a Private variable...Ch. 10 - Prob. 4RQCh. 10 - Which of the following statements is false? a. A...Ch. 10 - A Private variable in a class can be accessed...Ch. 10 - Prob. 7RQCh. 10 - Which of the following is the name of the...Ch. 10 - Prob. 10RQCh. 10 - Prob. 11RQCh. 10 - Prob. 12RQ
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Suppose you have an open file object called infile. Which of the following C++ statements will close the file? A infile.closeFile(); B closeFile("infile"); C close("infile"); D infile.close():arrow_forwardWhich of the following reads a line of text from a sequential access file and assigns the line (excluding the newline character) to the strText variable? a. inFile.Read(strText) b. inFile.ReadLine(strText) c. strText = inFile.ReadLine d. strText = inFile.Read(line)arrow_forwardWhich of the following reads a line of text from a sequential access file and assigns the line (excluding the newline character) to the strLine variable?a. inFile.Read(strLine)b. inFile.ReadLine(strLine) c. strLine = inFile.ReadLined. strLine = inFile.Read(line)arrow_forward
- Which of the following reads a line of text from a sequential access file and assigns the line (excluding the newline character) to the strText variable? inFile.Read(strText) inFile.ReadLine(strText) strText = inFile.ReadLine strText = inFile.Read(line)arrow_forwardCreate a program named FileComparison that compares two files. First, use a text editor such as Notepad to save your favorite movie quote. Next, copy the file contents, and paste them into a word-processing program such as Word. Then, write the file-comparison application that displays the sizes of the two files as well as the ratio of their sizes to each other. To discover a files size, you can create a System. 10. Filelnfo object using statements such as the following, where FILE_NAME is a string that contains the name of the file, and size has been declared as an integer: FileInfo fileInfo = new FileInfo(FILE_NAME); size = fileInfo.Length;arrow_forwardWhich of the following opens the employ.txt file and allows the computer to write new data to the end of the files existing data? a. outFile = I0.File.AddText("employ.txt") b. outFile = I0.File.AppendText("employ.txt") c. outFile = I0.File.InsertText("employ.txt") d. outFile = I0.File.WriteText("employ.txt")arrow_forward
- USE THE SIMPLE PYTHON CODE PLEASE The username code. The company can choose the specific criteria for the username. The criteria is as follows: a minimum length, a minimum number of capital letters, and a minimum number of special characters. Special charters are [$, #, ^, %, . etc]. You will turn in three .py files. The first file called main.py contains your main interface. The second file called functions.py contains all the functions your main code. The third file called parameters.py contains the parameters of the code: the special character list, the minimum length, the minimum number of special characters, the minimum number of capital letters, and the number of tries the user gets to input user name. Your code operates as follows. Display the criteria for the username. Prompt the user to input a username. If the username does not meet criteria, tell the user why and re prompt to enter in a username. Repeat until you reach the maximum number of tries allowed.arrow_forwardOutput to a file can be achieved with a _____ object, which is constructed with a File and has the same methods as System.out (the class name is case sensitive)(Just Words)arrow_forwardThe names Sam, Tom, Bill, and so on are in the same group as you. The permissions column on a file called answer that you created has the value ——r——-. Who has access to the file?arrow_forward
- Which method can be used to write data into a text file? A.close B.print C.exist D.renamearrow_forwardA student launches the Python interpreter from his home directory. His home directory contains another directory called 'mydir', and 'mydir' contains two files called 'foo' and 'bar'. The home directory does not contain any files, only other directories. What will happen when he writes the following code at the Python prompt: >>> import os >>> filenames = os.listdir('mydir') >>> f= open(filenames[0]) ===================================================================================== A variable f representing a file object will be created, and the first file in the directory 'mydir' will be opened for writing in text mode. An error will be produced stating that the file to be opened does not exist. An error will be produced stating that filename is not subscriptable. A variable f representing a file object will be created, and the first file in the directory 'mydir' will be opened.arrow_forwardW rite a function named sum_ints that takes no parameters and returns an integer. The function will read a file named "low.txt". Each line of this file will be a properly written whole number. Your function should return the sum of all of those numbers. f = open("low.txt") (PYTHON) No hand written and fast answer with explanationarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT
- LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.Computer ScienceISBN:9781337569798Author:ECKERTPublisher:CENGAGE L
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:9781337569798
Author:ECKERT
Publisher:CENGAGE L
C - File I/O; Author: Tutorials Point (India) Ltd.;https://www.youtube.com/watch?v=cEfuwpbGi1k;License: Standard YouTube License, CC-BY
file handling functions in c | fprintf, fscanf, fread, fwrite |; Author: Education 4u;https://www.youtube.com/watch?v=aqeXS1bJihA;License: Standard Youtube License