Question

In: Computer Science

1.What standard methods can you use when handling file-reading and file-writing operations? a. Java b. Fragment-based...

1.What standard methods can you use when handling file-reading and file-writing operations?

a. Java

b. Fragment-based methods

c. onClick

d. DDMS

2. What would this query return? SELECT * FROM Items WHERE OrderDate >= Date('Now')

a. All items in the database.

b. Nothing

c. Items that were ordered yesterday

d. Items that were ordered today.

3. What can you use to manage files within a desired directory and create subdirectories?

a. Subdirectory objects

b. Directory class

c. File objects

d. Context class

4. What class can you use to access external storage on the device?

a. The Fragment class

b. The Environment class

c. The External class

d. The Log class

Solutions

Expert Solution

  1. The correct answer is a. Java can be used when handling file reading and file writing operations.Fragment based methods are used in the drug analysis. Onclick events are used in javascript and HTML to change the appearance of the text .DDMS is a tool used in Androids as a monitoring tool.it has now deprecated.
  2. 2.The correct option is b. Nothing as it will give syntax error. May be if you are using any other version of sql or my sql the results can differ. Now() attribute shows the time and date right at the time of execution.no option states about the time
  3. 3. The correct option is b . Directory class contains static methods for creating, moving, and enumerating through directories and subdirectories. This class cannot be inherited.File objects is an object that holds methods that affect a particular file or directory. It works as an interface between a program and the functions of the operating system that do the actual file manipulation.The context class is a most important class while working with EF 6 or EF Core. It can perform crud operations ie create,read, update and delete operations.

4.The correct option is b. For external storage "Environment.getExternalStoragePublicDirectory" this parameter is used in Android system for external storage.


Related Solutions

1/ a) What determines whether you should use a loop or recursion when you are writing...
1/ a) What determines whether you should use a loop or recursion when you are writing an algorithm for a tree, and why does it matter? b) Why did we put Head and Tail nodes in our List class?
Design a 4-to-1 multiplexer using VHDL a- use with-select-when statement in writing VHDL file generate timing...
Design a 4-to-1 multiplexer using VHDL a- use with-select-when statement in writing VHDL file generate timing diagram
Task #1 void Methods Copy the file geometry.cpp. This program will compile, but when you run...
Task #1 void Methods Copy the file geometry.cpp. This program will compile, but when you run it , it doesn’t appear to do anything except wait. That is because it is waiting for user input, but the user doesn’t have the menu to choose from yet. We will need to create this. Above the main, write the prototype for a function called PrintMenu that has no parameter list and does not return a value.    Below the main, write the function...
Can you provide source code in Java that 1. accepts a two-way acceptor via file; 2....
Can you provide source code in Java that 1. accepts a two-way acceptor via file; 2. and validate if the input string is part of the language
QUESTION: 1) How can you apply similar professional and focused communication when emailing or writing in...
QUESTION: 1) How can you apply similar professional and focused communication when emailing or writing in the forums? 2) Why is creating a professional image important when calling, emailing, or posting in the forum? 3) What communication requirement from the syllabus will be beneficial for your professional and academic growth during this course? Minimum 100 Words
what does this "->" mean in c? when can you use it?
what does this "->" mean in c? when can you use it?
What are the different approaches and methods you can use to convey your promotional message. .What...
What are the different approaches and methods you can use to convey your promotional message. .What are the key skills involved in personal selling, especially closing the sale. .What are the major approaches to customer retention. .Identify sales forecasting methods. .What are the different approaches and methods you can use to craft your promotional message
Note: You can use only pointer based operations while implementing each of the functionalities below// zero...
Note: You can use only pointer based operations while implementing each of the functionalities below// zero points will be given if pointer operations are not used in implementing // each of the operations below. // Also, use C code only in visual studio or GCC i) Create a 2 - D array of integers using pointers (use dynamic memory allocation) in C. Assume that the array has 4 rows and 5 columns.Then, fill the array with randomly generated int values...
java Programming Problem 1: Reverse Characters Create an application ReverseCharacters in which you use an array-based...
java Programming Problem 1: Reverse Characters Create an application ReverseCharacters in which you use an array-based stack to read a sentence from the keyboard, and reverse the order of the letters in each word. Print the initial sentence, as well as the result of the reversal operation. Your Tasks: Using the information given in your textbook, create a class named ArrayBasedStack, that will help you solve the problem given above by providing the stack operations you need for this application....
1. State the three methods of hypothesis test and explain on how you can use them...
1. State the three methods of hypothesis test and explain on how you can use them to test a given claim. 2. Solve this problem using one of the methods for hypothesis test stated in question 1 above. Show all the steps required for the method you selected. A clinical trial was conducted to test the effectiveness of the drug zopiclone for treating insomnia in older subjects. Before treatment with zopiclone, 16 subjects had a mean wake time of 102.8...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT