Computer Science
- Subject
- Computer Science
Study related questions
- Design a program in pseudocode that opens an output file with the external name my_name.dat, writes your name to the file, and then closes the file.Answers
- Design a program that opens an output file with the external name my_name.dat, writes your name to the file, and then closes the file.Answers
- What is the error in this code? Module readFile(String filename) // Declare an input file. Declare InputFile file // A variable to hold an item that is read from the file. Declare String item // Open the file using the filename. Open file filename // Read all the items in the file and display them. While eof(file) Read file item Display item End While End ModuleAnswers
- Module readFile(String filename) // Declare an input file. Declare InputFile file // A variable to hold an item that is read from the file. Declare String item // Open the file using the filename. Open file filename // Read all the items in the file and display them. While eof(file) Read file item Display item End While End ModuleAnswers
- In your implementation of the ALU there is no need to detect or handle overflow. However, it's a good mental exercise to think about when/how an overflow might occur. When adding numbers with different signs, overflow cannot occur because the sum must be no larger than one of the numbers. What happens when the signs of the numbers are the same? What happens in the case of subtraction? How do we detect when an overflow does occur?Answers
- Question 1: You have been tasked with leading an IT project to design a new website for a local bakery. The project aims to create an online presence for the bakery, increase customer engagement, and showcase its products and services. Your task is to use any tool to develop a Work Breakdown Structure (WBS) for this project. Try to identify all the major components and provide three levels of detail. A screenshot of your WBS is needed. This screenshot must show the date and time from the task bar of your PC or LaptopAnswers
- In your response, compare your thoughts with your peers: "While access to data is vital for legal proceedings, safeguarding privacy rights is equally important. International agreements and technological solutions like encryption can help achieve this balance by providing clear guidelines for cross-border data access and enhancing data security. "Answers
- In your response posts, compare your thoughts with those of your peers. "when it comes to data privacy, there should be some flexibility if the data in question is key evidence in an investigation. This is a tough decision to make. On the one side, I am an advocate of defending privacy and data security, but if it means solving an investigation I essentially do a 180 on it. Though, I am not saying that our privacy should be invaded at all times for the sake of justice. "Answers
- What is the output of the following code snippet? class MyClass { static int count = 0; public MyClass() { count++; } public static int getCount() { return count; } } public class Main { public static void main(String[] args) { MyClass obj1 = new MyClass(); MyClass obj2 = new MyClass(); System.out.println(MyClass.getCount()); } } Question 1Answer a. 0 b. 1 c. 2 d. Compilation errorAnswers
- Individuals looking for internet connectivity when they are in various locations may choose to connect to any available wireless networks that are within range and do not require a wireless network key. Just because a wireless network is within range and does not require a wireless network key, is it okay to connect to that network? Why or why not?Answers
- The template prefix is not the same for functions and classes. true or falseAnswers
- All compilers support templates without any issues. true or false Your type parameter can be used for an array in the parameter list. true or falseAnswers
- You can have multiple type parameters for a function. true or false A function template can still use non-template types, both in the body and in the parameter list. true or falseAnswers
- The keyword class in the template prefix can be replaced with Blank 1. The type parameter can only be named "T". true or falseAnswers
- To declare a function or class as a template, we need a Blank 1.Answers
- Compute the CVSS score for the following vector: (AV:A/AC:L/Au:N/C:P/I:P/A:P) For CVSS 2.0 use the following link: https://nvd.nist.gov/vuln-metrics/cvss/v2-calculator 9.0 5.8 6.3 7.3Answers
- 8.9 LAB: Car value (classes) Complete the Car class by creating an attribute purchase_price (type int) and the method print_info() that outputs the car's information. Ex: If the input is: 2011 18000 2018 where 2011 is the car's model year, 18000 is the purchase price, and 2018 is the current year, then print_info() outputs: Car's information: Model year: 2011 Purchase price: 18000 Current value: 5770 Note: print_info() should use three spaces for indentation.Answers
- What is a Surrounding Virus? Show it diagrammatically. How would such virus be detected and removed?Answers
- What is another benefit of virtualization outside of testing?Answers
- What is targeted malware? Group of answer choices Requires advanced analysis Tailored to a specific target All the choices provided Very difficult to detect, prevent, and removeAnswers