A: EFS is the security solution that would prevent a user from reading a file that they did not create.
The Encrypting File System (EFS) on Microsoft Windows is a property introduced in version 3.0 of NTFS that offers filesystem-level encryption. The EFS security solution enables files to be transparently encrypted in order to protect confidential data from cyber attackers with physical access to the computer. EFS encryption control technology enables users to have control over who can read the files on their system; thus EFS prevents provides prevention a file from reading by the user who did not create the file.
"
Complete question:
which of the following security solutions would prevent a user from reading a file that she did not create?
EFS
NFS
EBS
S3
"
You can learn more about EFS at
https://brainly.com/question/13343407
#SPJ4
Which functions read from the keyboard or write to the monitor? Choose all correct answers. (Please be advised that there is penalty for incorrect answers) O stdin O stdout O print O fprintf O getchar O getc O putchar
In the question, some functions are used to read data from keyobard or write to monitor.
In the given question, different functions are given such as stdin, stdout, print, fprintf, getchar, putchar and getc either to read the data from keyboard or print/write to monitor.
The detail of each function are given below.
Functions that read data from keyboards are:getchar(): The getchar function read data from keyboard in form of characters.
getc(): it reads a single character from the current stream position and advances the stream position to the next character and it is identical to getchar() but it read one by one character.
However, stdin is not a function, but it is a class that provides methods to read the data such as getchar() and getc() etc.
Functions that print or write to monitor are:print(): this function print or write to monitor.
fprintf(): this function also print or write to monitor but in the formatted way.
putchar(): This function is used to print one charter to monitor or on the screen.
However, stdout is not a function, but it is a class that provides methods to print the data to screen such as print, fprint, putchar() etc.
You can learn more about stdin and stdout at
https://brainly.com/question/14547401
#SPJ4
what is the unit of force
Answer:The SI unit of force is the newton, symbol N. The base units relevant to force are:
The metre, unit of length — symbol m
The kilogram, unit of mass — symbol kg
The second, unit of time — symbol s
Explanation:Force is defined as the rate of change of momentum. For an unchanging mass, this is equivalent to mass x acceleration.
So, 1 N = 1 kg m s-2, or 1 kg m/s2.
To reduce the time it takes to start applications, Microsoft has created ____ files, which contain the DLL pathnames and metadata used by applications.
To reduce the time it takes to start applications, Microsoft has created prefetch files, which contain the DLL pathnames and metadata used by applications.
DLL is a multinational vendor finance firm with assets worth roughly EUR 35 billion. It offers asset-based financial solutions to the agriculture, food, healthcare, clean technology, construction, transportation, industrial, and office technology sectors. The company was established in 1969 and has its headquarters in Eindhoven, The Netherlands. The Rabobank Group's DLL is a completely owned subsidiary. DLL was named first among the Top 25 Vendor Finance firms in the United States in 2014 and placed among the Top 5 European Leasing Companies in 2013. CEO Carlo van Kemenade holds this position. The vendor financing division of Rabobank is called DLL. DLL offers financial solutions across a variety of sectors, including: clean technology, construction, transportation, industrial, office equipment, and agricultural, food, and healthcare.
Learn more about DLL here
https://brainly.com/question/23551323
#SPJ4
which of the following types of software programs would an employee use to prepare a form letter informing the company's clients of a change in product pricing:
Word processing is a software programs would an employee use to prepare a form letter informing the company's clients of a change in product pricing.
Definition of Word Processing SoftwareWord Processor Software is a
document processing program contains text and images that have a lot
privilege and very professional compared to existing text programs.
In a text-based operating system like DOS we can use the copy command
copy con for creating text files, although they are very, very limited. Whereas
in a GUI operating system like Windows, there is actually a notepad or
Wordpad whose ability to process words is quite good. However
because of the demands on the need to work with text and other objects
which are increasingly complex, in the end you have to use software that can actually fulfill it.
Currently there are a lot of word processing software that can
perform a variety of very complex tasks. Examples are
Wordstar, ChiWriter, WordPerfect, MS Work, Microsoft Word, KWriter and AmiPro.
The hallmark of word processing software in general is processing from
characters, words, sentences, which eventually form a paragraph, a group
paragraphs make up a page, and sets of pages make up a page
manuscripts which in this case are referred to as files or documents.
The main capabilities of word processing software include writing, forming (formatting) adding, deleting, saving and printing.
Your question is incomplete but most probably your full question was:
Which of the following types of software programs would an employee use to prepare a form letter informing the company's clients of a change in product pricing:
a. Word processing
b. Spreadsheet
c. Presentation
d. Database
Learn more about word processing at https://brainly.com/question/29762855.
#SPJ4
Identify who, if anyone, is responsible for preventing potentially harmful information from being shared via the Web
Answer:
the website owner
Explanation:
when you own a website it is up to you to change the privacy settings and/or delete private information from your users posts
1. find a procedure for sampling uniformly on the surface of the sphere. a. use computer to generate a thousand points that are random, independent, and uniform on the unit sphere, and print the resulting picture. b. by putting sufficiently many independent uniform points on the surface of the earth (not literally but using a computer model, of course), estimate the areas of antarctica and africa, compare your results with the actual values, and make a few comments (e.g., are the relative errors similar? would you expect them to be similar? if not, which one should be bigger? etc.)
The probability density function (PDF) for uniform density across a unit sphere becomes P = 14 since the surface area of a sphere is [tex]A=4\pi r^{2}[/tex].
How do you sample uniformly from a sphere?The three conventional normally distributed values X, Y, and Z can be used to create a vector, V=[X,Y,Z], which can be used as an alternate technique to create uniformly distributed points on a unit sphere.
V= [tex]4 / 3 \pi r^{3}[/tex]
A spherical sector's total surface area is equal to the sum of the zone's area and the lateral areas of its bordering cones. A spherical sector's volume, whether open or conical, is equal to one-third of the product of the zone's area and sphere's radius.
Additionally, Archimedes demonstrated that a sphere's surface area is [tex]4\pi r^{2}[/tex]. This proof was the crowning achievement of Archimedes' mathematical career, and he requested that it be memorialized on his tombstone as a sphere enclosed in a cylinder. the sphere enclosed by the cylinder.
To learn more about sphere refer to :
https://brainly.com/question/26834556
#SPJ1
Part 2a. Write this definition in Prolog and add it to library.pl : /* getoverdue(Who, Today, ItemList) calculates Itemlist, which is a list of KEYs of all the items Who has borrowed that are overdue as of Today. */ Hint: your answer will look a lot like getBorrowed 's definition. Test your coding on at least these examples: ?- get0verdue('Homer', 25, List). List=[k2,k4]. ?- get0verdue('Lisa', 25, List). List=[]. ?- get0verdue((−,50, List). List=[k2,k4,k3,k0]. Copy your test cases and their outputs into the txt file, library.txt .
Programmation en Logique (Programming in Logic) or Prolog is a high-level programming language that has its roots in first-order logic or first-order predicate calculus.
What is high level programming language?A high-level language (HLL) is a programming language, such as C, FORTRAN, or Pascal, that allows a programmer to write programs that are independent of the type of computer. Such languages are considered high-level because they are more similar to human languages than machine languages.Assembly languages, on the other hand, are considered low-level because they are so close to machine languages.The first high-level programming languages were designed in the 1950s. Now there are dozens of different languages, including Ada, Algol, BASIC, COBOL, C, C++, FORTRAN, LISP, Pascal, and Prolog.To learn more about Assembly languages refer to:
https://brainly.com/question/13171889
#SPJ4
of the following statements, choose the one that most accurately distinguishes social media providers from social media sponsors.
The statement " Social media providers build and host website platform" is one of the most accurately distinguishing social media providers from social media sponsors.
What are web platforms?
The World Wide Web Consortium, as well as other standardization organizations like the Web Hypertext Application Technology Working Group, the Unicode Consortium, the Internet Engineering Task Force, and Ecma International, developed a collection of technologies known as the Web platform as open standards. a general phrase used to describe a website's architecture Website authoring tools like Dreamweaver or WordPress, as well as server software like Microsoft's IIS or Apache, can both be referred to as web platforms. web publishing and web authoring software.
To learn more about web platforms, use the link given
https://brainly.com/question/29481636
#SPJ4
listen to exam instructions you have just installed a video card in a pcie expansion slot in your windows workstation. you have made sure that the card is connected to the power supply using an 8-pin connector. you also have your monitor connected to the video card. however, when you boot your workstation, it displays a blank screen instead of the windows system. which of the following is the most likely cause of the problem?
For those with sophisticated data requirements, including data scientists, CAD experts, researchers, media production teams, graphic designers, and animators, Windows 10 Pro for Windows Workstations is the ideal solution.
What distinguishes a PC from a workstation?A workstation features superior specs than a regular PC, such as a faster CPU and GPU, more memory, more storage, software certification, and the ability to withstand continuous operation. It is also more robust. The CPU does not have to do visual tasks twice because they typically have distinct GPUs.
Which of the following is the main reason why Windows displays are black?We'll examine a few potential causes of a blank or black screen: issues with your screen or monitor's connection. updating display adapter drivers problems. recent system problems.
To know more about Windows Workstations visit:-
https://brainly.com/question/17164100
#SPJ4
you work as the it administrator for a small corporate network. several coworkers in the office need your assistance with their windows systems. in this lab, your task is to com
Configure Windows to your liking. alter the computer's boot sequence. If you're attempting to start your computer from a disc, make the CD, DVD, or disc drive the first boot device.
What is an operating system's configuration?The OS configuration is typically linked to a processor or partition. Different OS configurations can be used simultaneously on each processor. OS configurations come in two different flavors. There may be one or more EDTs present in an MVS OS system.
What does Windows configuration entail?A system for troubleshooting Microsoft Windows is called Microsoft System Configuration, or MSConfig. To help pinpoint the source of the issue with the Windows system, it can re-enable or disable the software, device drivers, and Windows programs that run during startup.
To know more about Configure Windows visit :-
https://brainly.com/question/13518799
#SPJ4
Hadoop is primarily a(n) ________ file system and lacks capabilities we'd associate with a DBMS, such as indexing, random access to data, and support for SQL.
distributed
Hadoop is primarily distributed File systems are used instead of DBMSs, which lack features like indexing, random access to data, as well as support for SQL.
What is SQL?
SQL (Structured Query Language) is a database programming language used to store, manipulate, and query data in a relational database. It is the most widely used programming language for database management systems. SQL consists of commands that are used to perform tasks such as retrieving data from a database, updating data in a database, modifying a database schema, and creating new database objects. It is a powerful language that allows users to quickly and efficiently manage data with minimal effort. SQL can be used in a wide variety of applications, including web development, data analysis, and database administration. It is an essential skill for any database professional, and is a great way to get started in the world of database programming.
To learn more about SQL
https://brainly.com/question/26701098
#SPJ1
Suppose TCP Tahoe is used (instead of TCP Reno), and assume that triple
duplicate ACKs are received at the 16th round. What are the ssthresh and the
congestion window size at the 19th round?
At the 16th round, when the triple duplicate ACKs are received, the ssthresh value is set to half of the current congestion window size.
This means that the ssthresh value at the 16th round is half of the congestion window size at the 16th round (i.e., W16). Thus, ssthresh at the 16th round = W16/2.
Congestion Window Size:
At the 19th round, the congestion window size is set to ssthresh + 3 × MSS, where MSS is the maximum segment size. Therefore, the congestion window size at the 19th round = ssthresh + 3 × MSS.
Thus, the ssthresh and the congestion window size at the 19th round can be calculated as follows:
ssthresh at the 19th round = W16/2
Congestion window size at the 19th round = (W16/2) + 3 × MSS
For more questions like Congestion window click the link below:
brainly.com/question/15098773
#SPJ4
Which of the following will lead to a compile-time error? Mark all that apply.
1
if (a > b) ( c = 0; )
2
if (a > b) { c = 0; }
3
if (a > b) c = 0 else b = 0;
4
if (a > b) c = 0;
5
if (a > b) then c = 0;
6
if a > b { c = 0; }
7
if a > b, then c = 0
All of the following will lead to a compile-time error:
if (a > b) ( c = 0; )if (a > b) then c = 0;if a > b { c = 0; }if a > b, then c = 0Explanation:
In the given examples, 1, 2, 3, and 4 all have syntax errors that would cause a compile-time error. Example 5 has a syntax error because the keyword then is not used in most programming languages. Example 6 has a syntax error because it is missing the opening and closing parentheses around the condition. Example 7 has a syntax error because the , and then keywords are not used in most programming languages.
The statements that will typically lead to a compile-time error are as follows:
if (a > b) ( c = 0; ).if (a > b) then c = 0;if a > b { c = 0; }.if a > b, then c = 0.Thus, the correct options for this question are A, B, E, and G.
What is a compile-time error?A compile-time error may be characterized as those errors that indicate something that we need to fix before compiling the code. A compiler can easily detect these errors. It is the reason why we call them compile-time errors.
The above-mentioned statements contain errors that would cause a compile-time error. Statements 3 and 4 have syntax errors because the keyword then is not used in most programming languages and it is missing the opening and closing parentheses around the condition respectively.
Therefore, the correct options for this question are A, B, E, and G.
To learn more about Compile time errors, refer to the link:
https://brainly.com/question/27296136
#SPJ2
while reviewing video files from your organization's security cameras, you notice a suspicious person using piggybacking to gain access to your building. the individual in question did not have a security badge. which of the following security measures would you most likely implement to keep this from happening in the future?
The security measures would you most likely implement to keep this from happening in the future are Mantraps. The correct option is a.
What are mantraps?A mantrap is an access control device that consists of two interlocking doors and a tiny area. An individual is momentarily "stuck" in the vestibule before passing through the second door because one set of doors must close before the other one can be opened.
The most frequent application of mantraps in physical security is to demarcate non-secure areas from secure ones and to restrict access.
Therefore, the correct option is a, Mantraps.
To learn more about mantraps, refer to the link:
https://brainly.com/question/29744068
#SPJ1
The question is incomplete. Your most probably complete question is given below:
Mantraps
Spam and Phishing.
Malware.
Ransomware.
Which of the following commands allows a standard user to execute a single command as root without actually switching to the root account?Group of answer choicessudoersudosudoas
The correct response is b) sudo. The Linux command sudo, which stands for "super user do," enables the execution of programs as either the super user (also known as the root user) or another user.
Users must by default submit their own password for authentication, not the password of the target user, in contrast to the comparable command su. The system runs the requested command after authentication, if the configuration file (usually /etc/sudoers) grants the user access. The configuration file enables specific access rights, such as allowing commands only from the invoking terminal, needing a password per user or group, requiring a password to be entered each time, or never requiring a password at all for a given command line. Additionally, it can be set up to allow giving parameters or multiple instructions. The program sudo, which stands for superuser do or substitute user do, launches an elevated prompt without requiring you to assume a different identity. You can issue single commands as root or as another user, depending on the settings in the /etc/sudoers file.
Learn more about sudo here
https://brainly.com/question/6437006
#SPJ4
for this question, you will be using the book and shelf classes described in the reading assignment. implement the following method so that it will search through all the books on the given shelf and return the first with an isbn number matching the parameter. all books on a shelf are represented by the list called books. if no book matches the given isbn, this method should return null. as remember that a book provides a getter method called getisbn().
A book's 10 digit ISBN (International Standard Book Number) is used to identify it.
The Title, Publisher, and Group of the book are represented by the first nine digits of the ISBN number, and the final digit is used to determine whether the ISBN is correct or not.
Its first nine digits can have any value between 0 and 9, but its final three digits occasionally have a value of 10, which is indicated by writing it as "X".
Calculate 10 times the first digit, 9 times the second, 8 times the third, and so on, up until we add 1 time the last digit to verify an ISBN.
If dividing the final number by 11 leaves no remnant, the code is a legitimate ISBN.
Know more about ISBN here:
https://brainly.com/question/23944800
#SPJ4
which of the following is not true when editing an existing macro to add a button to the quick access toolbar?
In order to add a button to the fast access toolbar when changing an existing macro on a computer with a touch screen, the Touch/Mouse mode button displays are not always accurate.
An information processing and storing device is a computer. To perform functions like data storage, algorithm computation, and information display, the majority of computers rely on a binary system, which uses the two variables 0 and 1. From portable cellphones to supercomputers weighing more than 300 tonnes, there are numerous diverse shapes and sizes of computers.
Now nearly generally used to describe automated electrical technology, the term "computer" originally referred to a person who performed calculations. The design, construction, and uses of contemporary digital electronic computers are the main topics of the first section of this article. The evolution of computing is discussed in the second part. See computer science for more information on computer theory, software, and architecture.
Learn more about computer here:
https://brainly.com/question/13396316
#SPJ4
refers to a broad class of web sites and services that allow users to connect with friends, family, and colleagues online as well as meet people with similar interests or hobbies.
Social networks refer to a broad class of Web sites and services that allows users to connect with friends, family, and colleagues online as well as meet people with similar interests or hobbies.
In today's Internet-based society and business, social networking is more crucial than ever. By connecting businesses with their target customers through social media, customers can find the goods and services they desire or need.
As an illustration, social networking platforms like enable companies to set up business fan pages, which they can use to post updates, images, locations, and rankings. Customers can submit reviews on the page in addition to rankings, which are visible to anyone who visits the page.
A company might utilize social networking sites because it is incredibly cost-effective, for example, if there aren't enough employees to administer the website at a particular time of day. These sites also offer advertising capabilities to promote your content and special offers and are less expensive. For example, there are several sites that allow you to reach individuals all over the world if you so choose.
To learn more about social networks click here:
brainly.com/question/6886851
#SPJ4
Your laptop's LCD screen is beginning to flicker and dim. You have checked the brightness setting to make sure that it is configured correctly.
Which of the following is the MOST likely cause of your screen issue?
The LCD screen inverter is failing.
Answer:
The LCD screen inverter is failing.
Finding outliers in a data set. Detecting unusual numbers or outliers in a data set is important in many disciplines, because the outliers identify interesting phenomena extreme events, or invalid experimental results. A simple method to check if a data value is an outlier is to see if the value is a significant number of standard deviations away from the mean of the data set. For example, X is an outlier if Xx - wxl > Nox where wx is the data set mean, ox is the data set standard deviation, and is the number of standard deviations deemed significant. Assign outlierData with all values in userData that are numberStd Devs standard deviations from userData's mean. Hint: use logical indexing to return the outlier data values. Ex: If userData is [9.50, 51, 49, 100 ) and numberStd Devs is 1, then outlierData is (9.100) Function Save C Reset D MATLAB Documentation 1 function outlierData = getOutliers(userData, numberStdDevs) 2 % getOutliers: Return all elements of input array data that are more than 3 % numStdDevs standard deviations away from the mean. 4 5 % Inputs: userData - array of input data values 6 % numberStdDevs - threshold number of standard deviations to determine whether a particular data value is an outlier * Outputs: outlierData - array of outlier data values Assign dataMean with the mean of userData dataMean = 0; Assign dataStdDev with userData's standard deviation dataStdDev = 0; % Assign outlierData with Return outliers outlierData = 0; 21 end Code to call your function C Reset 1 getOutliers (19, 50, 51, 49, 100, 1)
To assign outlierData with all values in userData that are numberStd Devs standard deviations from userData's mean, check the given code.
What is standard deviation?A statistic known as the standard deviation, which is calculated as the square root of variance, gauges a dataset's dispersion from its mean. By figuring out how far off from the mean each data point is, the standard deviation can be calculated as the square root of variance.
A higher deviation exists within a data set if the data points are further from the mean; consequently, the higher the standard deviation, the more dispersed the data.
//CODE//
function outlierData = getOutliers(userData, numberStdDevs)
dataMean = mean(userData);
dataStdDev = std(userData);
outlierData=userData(abs(userData-dataMean)>numberStdDevs*dataStdDev);
end
Learn more about standard deviation
https://brainly.com/question/475676
#SPJ4
How many records will the following query in the DOCTORS AND SPECIALTIES database return? SELECT table_name, column_name FROM user_tab_columns; DOCTORS AND SPECIALTIES Observe the DOCTORS AND SPECIALTIES database: DOCTOR DocID DocName 111 Jill 222 Linda 333 Lisa 444 Sue 555 Lola NoOfPatients SpecID 20 SUR 20 SUR 30 RAD 15 ANE 15 ANE SPECIALTY SpecID SpecName SUR Surgery RAD Radiology ANE Anesthesiology a. 2 b. 5 c. 6 d. 7 e. 10
Note that in the absence of database records, we cannot ascertain how many records the above query will return. Note that this query is an SQL QUERY.
What is an SQL Query?An SQL query is a request for data from a database. It is written in a special language called SQL (Structured Query Language) that is designed specifically for accessing and manipulating data in a database. Queries are used to retrieve, add, update, or delete data from a database.
A database is a collection of data that is organized and stored in a way that allows for efficient retrieval and manipulation. It is typically used to store and manage large amounts of structured data, such as information about customers, products, or transactions. Databases are often used in computer applications to store and manage data.
Learn more about Database Records:
https://brainly.com/question/13158607
#SPJ1
Show the stack with all activation record instances, including static and dynamic chains, when execution reaches position 1 in the following skeletal program. Assume bigsub is at level (7 pts)
function bigsub() {
function a() {
var one;
function b(five) {
var six;
var seven;
... <----------------------------1
} // end of b
function c(two,three) {
var four;
...
b(four);
...
} // end of c
...
c(one, one);
...
} // end of a
...
a();
...
} // end of bigsub
The static chain for function b consists of the activation records for functions c and a, and the dynamic chain for function b consists of the activation records for functions c, a, and bigsub.
Assuming execution reaches position 1, the stack contains the following activation record instances:
1.Activation dataset for function b with local variables 5, 6, and 7.
2. Activation record for function c with local variables 2, 3, and 4.
3. An activation record for function a that contains a static link to the local variable one and the activation record for function bigsub .
4. Activation record for feature bigsub with a dynamic link to the activation record for feature a.
The static chain for function b consists of the activation records for functions c and a, and the dynamic chain for function b consists of the activation records for functions c, a, and bigsub.
Read more about this on brainly.com/question/16251498
#SPJ4
Which XXX causes every character in string x to be output? for (XXX) { System.out.println(x.charAt(i)); } i = 0; i <= x.length(); ++i i = 0; i < x.length(); ++i i = 0; i < (x.length() + 1); ++i i = 0; i < (x.length() - 1); ++i
i < inputWord.size(); ++i; I These cause the output of all the characters in string x. A string is a group of sequential characters used to represent text.
Sequential collections of System make up a String object. String-representing Char objects; a System. A UTF-16 code unit is represented by a char object. A string is often regarded as a data type and is frequently implemented as an array data structure made up of bytes (or words) that uses character encoding to hold a sequence of components, typically characters. Additionally, the term "string" can refer to more general arrays or other sequence (or list) data types and structures. String class.
Which XXX causes each character in the string inputWord to be produced for the (XXX) cout input command
for (XXX) {
cout << inputWord.at(i) << endl;
}
i = 0; i < inputWord.size(); ++i.
Learn more about string here
https://brainly.com/question/17238782
#SPJ4
problem 3 given the root of a binary tree, return the level order traversal of its nodes' values, i.e., from left to right, level by level. def levelorder(root: treenode) -> list[list[int]]: example: the returned result of levelorder(root 1) should be a nested list [[5], [4, 8], [11, 13, 4], [7, 2, 5, 1]]. the ith elment of the nested list is a list of tree elements at the ith level of root 1 from left to right. (we had this problem before in assignment 3.) def level order(root: treenode):
The program for the given question is:
class Solution {
public:
vector<vector<int> > levelOrder(TreeNode *root) {
vector<vector<int> > result;
if (!root) return result;
queue<TreeNode*> q;
q.push(root);
q.push(NULL);
vector<int> cur_vec;
while(!q.empty()) {
TreeNode* t = q.front();
q.pop();
if (t==NULL) {
result.push_back(cur_vec);
cur_vec.resize(0);
if (q.size() > 0) {
q.push(NULL);
}
} else {
cur_vec.push_back(t->val);
if (t->left) q.push(t->left);
if (t->right) q.push(t->right);
}
}
return result;
}
};
To know more about the class click on the link below:
https://brainly.com/question/9949128
#SPJ4
this pricing strategy is appropriate for selling the product that cannot be used without a companion product (e.g., computer software
Product line pricing is the pricing for captive products. It alludes to a tactic used to draw customers to the primary item.
What are companion product?Pharmacies seek out companion products—items that meet demands beyond and in addition to those served by the original product—in order to boost non-prescription revenue. tissues might be taken with antibiotics prescribed by a doctor, or tissues could be taken along with cold and flu drugs.Companion selling, also known as cross-selling or suggested selling, is a strategy used by salespeople to combine and sell goods and services across subcategories. As an illustration, work gloves might be offered for sale as a companion item with other personal safety equipment.A person who frequently joins, is associated with, or goes somewhere with another person: my son and his two buddies. a person hired as a helpful buddy to travel with, look after, or live with another.To learn more companion product about refer to:
brainly.com/question/462246
#SPJ1
1. The containers for data and functions in a class definition can be divided into the following two types:
A) Methods and initializers.
B) Methods and access modifiers.
C) Methods and properties.
D) None of the above.
Answer:
C) Methods and properties.
Explanation:
Consider a system for processing student test scores. The StudentAnswerSheet class is given and will be used as part of this system and contains a student's name and the student's answers for a multiple-choice test. Note the class attribute (key) and method (setKey) for the loading and storing the answer key. The answers are represented as "char" with an omitted answer being represented by the question mark '?'. These answers are stored in an array in which the position of the answer corresponds to the question number on the test (question numbers start at zero). A student's score on the test is computed by comparing the student's answers with the corresponding answers in the answer key for the test. One point is awarded for each correct answer and 1/4 point is deducted for each incorrect answer. Omitted answers do not change the student's score.
Write a class GradeStudents with a "main" method only that will read, using Scanner, a filename from the user (assumed to exist and in the correct format). Then read the comma-delimited input file containing the answer key in the first row and student names/answers in other rows, one per line.
First read and load the key. Then read, grade and output each student. Also determine the highest scoring student. If ties for highest scoring save all their names. You do not know how many questions are on the test until you read the first line of the file, which is always the key.
Given class:
public class StudentAnswerSheet {
private String name;
private char [] answers;
private static final char BLANK='?';
private static final String DEFAULT_NAME="Noname";
private static final double CORRECT_POINTS=1., BLANK_POINTS=0., WRONG_POINTS=-.25;
private static char [] key;
public static void setKey(char [] answerKey) {
if (answerKey==null || answerKey.length==0) {
key=new char[] {'?'};
}
else {
key=new char[answerKey.length];
for (int i=0;i
key[i]=answerKey[i];
}
}
}
public StudentAnswerSheet (String n, char [] a) {
if (n==null) {
name=DEFAULT_NAME;
}
else {
name=n;
}
if (a!=null && a.length>0) {
answers=new char[a.length];
for (int i=0;i
answers[i]=a[i];
}
}
else {
answers = new char[] {'?'};
}
}
public String getName() { return name; }
public double getScore () {
double total=0;
if (key!=null && key.length == answers.length) {
for (int i=0;i
if (answers[i]==BLANK) {
total+=BLANK_POINTS;
}
else if (answers[i]==key[i]) {
total+=CORRECT_POINTS;
}
else {
total+=WRONG_POINTS;
}
}
}
else {
total=Double.NEGATIVE_INFINITY;
}
return total;
}
public String toString () {
String temp = name;
for (int i=0; i
temp = temp + ' ' + answers[i];
}
return temp;
}
}
SAMPLE INPUT FILES:
answers1.txt
KEY,e,e,b,b,e,b,c,d,a,e
Matt,a,e,b,b,?,b,c,d,a,e
Cami,e,e,b,b,?,b,c,d,a,e
John,?,?,?,?,?,?,c,d,a,e
Mary,a,a,a,a,a,a,c,d,a,e
Fred,e,e,b,b,?,b,c,d,a,ea
answers2.txt
KEY,e,e,b,b,e,b,c,d,a,e,e,e,b,b,e,b,c,d,a,e
Matt,a,e,b,b,?,b,c,d,a,e,a,a,a,a,a,a,c,d,a,e
Cami,e,e,b,b,?,b,c,d,a,e,?,?,?,?,?,?,c,d,a,e
John,?,?,?,?,?,?,c,d,a,e,a,a,a,a,a,a,c,d,a,e
Mary,a,a,a,a,a,a,c,d,a,e,a,a,a,a,a,a,c,d,a,e
Fred,e,e,b,b,?,b,c,d,a,e,e,e,b,b,?,b,c,d,a,e
To write a class GradeStudents with a "main" method only that will read, using Scanner, a filename from the user (assumed to exist and in the correct format) check the code given below.
What is a filename?The title of a file and its extension are included in its filename. An entire file name is, for instance, "readme.txt."
Additionally, only the first part of a file may be described in the file name. A file with the name "readme" and the file name extension ".txt" is an example.
↓↓//CODE//↓↓
package code;
public class TestResults
{
private StudentAnswerSheet[] students;
private int count = 0;
private static final int DEFAULT_SIZE = 10;
public TestResults(int size)
{
if (size > 0) {
students = new StudentAnswerSheet[size];
}
else {
students = new StudentAnswerSheet[DEFAULT_SIZE];
}
count = 0;
}
public boolean addStudentAnswerSheet(StudentAnswerSheet x) {
boolean inserted = false;
if (x != null && count < students.length) {
students[count] = x;
count++;
inserted = true;
}
return inserted;
}
public String highestScoringStudent(char[] answerKey) {
double maxScore = Double.MIN_VALUE;
double tempScore;
// Finding maximum score
for (StudentAnswerSheet sheet : students) {
tempScore = sheet.getScore(answerKey);
if (tempScore > maxScore) {
maxScore = tempScore;
}
}
// building highest achievers list
StringBuilder res = new StringBuilder();
for (StudentAnswerSheet sheet : students) {
if (sheet.getScore(answerKey) == maxScore) {
res.append(sheet.getName()).append(" ");
}
}
// returning list string
return res.toString().strip();
}
}
Learn more about filename
https://brainly.com/question/28578338
#SPJ4
one of benefits of this type of data entry is that it is easy to determine if the data are complete. a. Big data
b. Structured data
c. Aggregate data
d. Unstructured data
One of the benefits of this type of data entry is that it is easy to determine if the data are complete is structured data
What is a structured data?
Excel spreadsheets and SQL databases are typical instances of structured data. Each of them has structured, sortable rows and columns. A data model, which is a representation of how data can be stored, processed, and accessed, is necessary for the existence of structured data.
A data model, which is a representation of how data can be stored, processed, and accessed, is necessary for the existence of structured data. Each field is discrete and can be accessed independently or in conjunction with data from other fields thanks to a data model. Because it is feasible to swiftly aggregate data from many areas in the database, structured data is incredibly powerful.
Since the first database management systems (DBMS) could store, handle, and access structured data, structured data is regarded as the most "conventional" kind of data storage.
Hence to conclude the structured data is necessary for the data entry if the data is incomplete
To know more on structured data follow this link:
https://brainly.com/question/28583901
#SPJ4
An ANOVA can find significant positive main effects at the same time as a significant negative interaction effect. True False
that is averaged over all other independent variable levels in experimental design and variance analysis.
Is it possible to have a large interaction but no major effect?
When the interaction is there, is it really required to include both main effects? No, you do not always require primary effects when there is an interaction, to put it simply. The interaction term won't, however, signify the same thing as it would if both primary impacts were taken into account.
What connection exists between interactions and major effects?
The impact one independent variable has on the dependent variable without taking into consideration other independent variables is known as a primary effect. The impact of one independent variable on another independent variable and how that impact affects the dependent variable is known as an interaction.
To know more about ANOVA visit ;
https://brainly.com/question/23638404
#SPJ4
While browsing the Internet, You notice that your browser displays pop-ups containing advertisements that are related to recent keywords searches you have performed.
What is this an example of?
Adware.
The advertisements that are related to recent keywords searches that performed before is adware.
What is adware?Adware is a software to create and display the pop-ups advertisement that have potential to carry malware. Adware is capable to tracking your search history and online activity to get the relevant keywords in order to be able to personalize ads that are more relevant to you.
Adware that carries malware hides in your computer system and runs in the background to monitor all your online activity so that it can provide personalized advertisements for you.
Learn more about malware here:
brainly.com/question/29650348
#SPJ4