Answer:
The code is given below in Java with appropriate comments
Explanation:
//Import the input.
import java.util.Scanner;
class CensoredWords
{
//Define the main method.
public static void main(String args[ ])
{
//Define the variables.
String userInput="" ;
//Define the scanner object
Scanner scobj = new Scanner(System.in);
//Accept the userInput.
System.out.print("Enter String: ");
userInput=scobj.nextLine();
//Check if the input contains darn.
//Print censored.
if(userInput.toUpperCase().indexOf("DARN") != -1)
System.out.printf("Censored");
//IF the input does not contains darn
//Print userInput.
else
System.out.printf(userInput)
return;
}
}
What term is used to describe the process or mechanism of granting or denying use of a resource, typically applied to users or generic network traffic?
Answer: Access control
Explanation: Access control is the control unit that permits about the usage of the computer environment and its resources.It acts as the security feature that helps in the granting permission or denying the permission in a operating system.
The accessing of the service or resource by the permitted user decreases the risk of the organizations, companies etc.There are three types of the access control named as MAC(mandatory access control),DAC(discretionary access control ) and RBAC(role-based access control).
Computer ______________ concerns itself with instruction sets and formats, operation codes, data types, the number and types of registers, addressing modes, main memory access methods, and various I/O mechanisms.
Answer: architecture
Explanation:
The computer architecture is one of the most important criteria for deciding the instruction sets and formats, operation codes, data types, the number and types of registers, addressing modes, main memory access methods, and various I/O mechanisms. Based on this architecture we have further different types of computer system divided based on their performance and reliability.
The most important architectures is the Von Neumann architecture which laid the first architectural model of the computer system. then based on it we have RISC and CISC architectures we get different systems with different performance ratings. Their instruction sets are different, their datatypes are different and their addressing modes are different. Based on architecture we have different addressing modes such as register addressing mode, direct, indirect addressing modes.
Define a method printfeetinchshort, with int parameters numfeet and numinches, that prints using ' and " shorthand. Ex: printfeetinchshort(5, 8) prints:
Answer:
Following is printfeetinchshort method in Java:
void printfeetinchshort (int numfeet, int numinches)
{
System.out.println (numfeet + "\'"+numinches+"\"");
}
Explanation:
In the above method escape character (\) is used to print single inverted comma (') and double inverted comma (") using \' and \".
Following is the Java program to implement the above method:
public class Main
{
public static void main (String[]args)
{
printfeetinchshort(5,8);
}
public static void printfeetinchshort (int numfeet, int numinches)
{
System.out.println (numfeet + "\'"+numinches+"\"");
}
}
Following will be the output of above program:
5'8"
In the above program the method printfeetinchshort() is made as static so that it can called be by Main method directly and not through any object instantiation.
The function of ______ is to transfer control to a user command-line interpreter, which gives access to any program available on the system with the privileges of the attacked program.
Answer:
The answer to this question is Shell code.
Explanation:
It is the function of shell code(a code that starts a command shell) to transfer the control to user command-line interpreter,that gives access to any program that is present in the system the privileges of the program that is attacked.
Hence we conclude that the answer to this question is Shell code.
Two routers, R1 and R2, connect using an Ethernet over MPLS service The service provides point-to-point service between these two routers only, as Layer 2 Ethernet service. Which of the following are most likely to be true about this WAN? (choose two)a) R1 will connect to a physical Ethernet link, with the other end of the cable connected to R2.b) R1 will connect to a physical Ethernet link, with the other end of the cable connected to a device at the WAN service provider point of presence.c) R1 will forward data link frames to R2 using an HDLC header/trailer.d) R1 will forward data link frames to R2 using an Ethernet header/trailer.
Answer: b) R1 will connect to a physical Ethernet link, with the other end of the cable connected to a device at the WAN service provider point of presence.
.d) R1 will forward data link frames to R2 using an Ethernet header/trailer.
Explanation:
Here we have to understand what is MLPS. MLPS is a protocol which identifies the shortest route for the transfer of messages between routers instead of the longest route.
Here we are given a WAN which is a wide area network. Using layer 2 Ethernet service the frames are transmitted across the routers within the WAN.
Option A is incorrect as as connecting the other end of the cable to the R2 would reduce the functionality of the WAN. Option C is incorrect as HDLC header trailer has no effect.
Option B and D are correct as Ethernet header/ trailer has the same size every frame and to maintain the functionality of the WAN one end must be connected to point of presence(PoP).
Suppose that the code below is the body of some loop. Given variables x and y write some code that reads a value into the variables, respectively, then prints out the value of x divided by y. Use a continue statement to make sure that nothing is written to court when y is 0.
Answer:
I will code in JAVA.
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
float x;
float y;
float result;
Scanner input = new Scanner(System.in);
while(true){ //this is an infinite loop
x = input.nextFloat(); //wait the input for x
y = input.nextFloat(); //wait the input for y
if(y == 0) {
continue; //next iteration without print.
} else{
result = x/y;
System.out.print(result); //print the result.
}
}
}
}
Explanation:
To get the numbers, you need to import Scanner class, and use the method nextFloat() to admit floats and integers.
If y is 0 then, executes the continue statement, if not prints the division between x and y.
Which layer of the OSI model is responsible for ensuring flow control so that the destination station does not receive more packets that it can process at any given time?
a. presentation Layerb. transport Layerc. physical Layerd. session Layere. application Layer
Answer: B) Transport layer
Explanation:
The transport layer is basically responsible for the flow control and detecting the error recovery between the system.
In the open system interconnection, the transport layer are responsible for transferring of data independently along with the congestion control, flow control, segmentation and error control.
And the presentation layer, session layer, physical layer and application layer in the OSI model are nor responsible for the flow control in the network system.
Therefore, option (B) is correct option.
In an airline reservation system, on entering the flight number, the flight schedule and the flight status are displayed. In this scenario, the _____ decision-making analysis has been used to display the desired results on the system.
a. if-else
b. what-is
c. if-continue
d. what-if
Answer:
b. what-is
Explanation:
According to my research on the decision making analysis, I can say that based on the information provided within the question this analysis is called "what-is". This (like described in the question) is the act of providing a specific piece of information in order to receive a set of information in regards to what you provided.
I hope this answered your question. If you have any more questions feel free to ask away at Brainly.
Answer:
b. what-is
Explanation:
In an airline reservation system, on entering the flight number, the flight schedule and the flight status are displayed. In this scenario, the what-is decision-making analysis has been used to display the desired results on the system.
A blog is Group of answer choices a character in Lineage,
a popular on-line game.
a personal journal kept on the Web.
a person who assumes a false identity in a chat room.
a special symbol visible on displays that show Unicode characters.
the Web version of a "couch potato."
Answer: A personal journal kept on the Web.
Explanation:
A blog is another type of journal or diary, however it is one that is advanced and on the Internet. These are frequently alluded to as online journals/diaries or individual sites. They may record our everyday encounters or even social discourse.
A blog is basically known as the online personal journal which contain the different views of the authors and also reflections on the similar topics that all kept on web.
In a _____ feedback loop, output that results from a system acts as input that moves the system in the other direction.In a _____ feedback loop, output that results from a system acts as input that moves the system in the other direction.invertednegativeconvolutedpositive
Answer: Negative
Explanation: A negative feedback loop has the major property of regulating on its own. It also becomes stable at certain point of time which makes it balancing feedback.The increment in the output of this system prevents the future generation of the feedback system.
The output gained as feedback is meant as the input in opposite direction in this system.Other options are incorrect because inverted feedback loop works in the inverted manner, positive feedback loop behaves as unstable system and convoluted feedback loop is not a technical term.
Which of the following statements is true?A)Implicit data type conversion is performed when you mix values of different data types in an expression.B)Every data type can be implicitly converted to every other data type.C)Values are implicitly converted from the data type with higher precedence to the data type with lower precedence.D)You can convert a data type implicitly by using either the CAST or the CONVERT function
Answer: A) Implicit data type conversion is performed when you mix values of different data types in an expression.
Explanation: Implicit data type conversion is the conversion done by mixing up of different types of data types which don't lose their actual significance. The originality remains same while changing the datatype.It is also known as implicit type casting.
Other options are incorrect because implicit data type cannot be implemented on every data type,significance values don't get change while changing data type and implicit casting occur when difference in data types is present.Thus the correct option is option(A).
Implicit type casting means conversion of data types without losing its original meaning. This type of typecasting is essential when you want to change data types without changing the significance of the values stored inside the variable.
Get user input as a boolean and store it in the variable tallEnough. Also, get user input as a boolean and store it in the variable oldEnough. Then, use the two boolean variables to decide whether the user is able to ride the rollercoaster. The only time the user can ride the rollercoaster is if the responses to both answers is true. Use a logical operator to decide whether the user is eligible to ride. Print true or false depending on whether the user can or can’t ride the rollercoaster.
Answer:
I will code in JAVA.
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
boolean tallEnough;
boolean oldEnough;
Scanner input = new Scanner(System.in);
tallEnough = input.nextBoolean(); //wait the input for tallEnough
oldEnough = input.nextBoolean(); //wait the input for OldEnough
if(tallEnough && oldEnough){
System.out.print(true);
} else {
System.out.print(false);
}
}
}
Explanation:
First, to accept user inputs you have to import the class Scanner. Then declare both variables before allowing the user to set input values for both boolean variables.
In the if-else statement checks if both variables are true, then prints true. Another case prints always false.
A Law office has leasing dark fiber from a local telecommunications company to connect a remote office to company headquarters. The telecommunications company has decided to discontinue its dark fiber product and is offering an MPLS connection, which the law office feels is too expensive. Which of the following is the BEST solution for the law office?
Remote access VPN
VLAN
VPN Concentrator
Site-to-site VPN
Answer: Site to site VPN
Explanation:
A site to site VPN is the connection in which it allow offices to establish a secure connection over they public network like internet. It can easily connect multiple network in the office like it connect the various remote office with the company headquarter for communication.
The site to site VPN network is very secure as compared to traditional VPN system. All the traffic are get encrypt in the tunnel from one site to the another site.
And all the other options are not much efficient as they does not provide any high effective VPN system as compared to site to site VPN system.
Therefore, correct option is Site-to-site VPN.
Data are made anonymous by Destroying all identifiers connected to the data. Requiring all members of the research team to sign confidentiality agreements. Reporting data in aggregate form in publications resulting from the research. Keeping the key linking names to responses in a secure location
Answer:
Destroying all identifiers connected to the data.
Explanation:
Identifiers are your virtual location when navigating, if you destroy your 'Virtual ID', nobody could identify you. Also, you could hide your identifiers, in this case, there's a small risk.
Write a sequence of statements that finds the first comma in the string line, and assigns to the variable clause the portion of line up to, but not including the comma. You may assume that an int variable pos, as well as the variables line and clause, have already been declared.
Answer:
I will code in Javascript;
function findFirstComma() {
var pos;
var line = 'Thi,s is a t,est';
var clause;
pos = line.indexOf(','); //set pos in 3.
clause= line.slice(0,pos); // saves in clause the value 'Thi'.
}
Explanation:
The slice(start, end) method extract a part of a string then returns a new string with the extracted part. The end parameter indicates where to end the extraction(up to, but not including).
The includes(value) method determines if a string contains the characters on a specified string, if it doesn't match then returns -1.
While building a high-end gaming system, you are attempting to install the EVGA GeForce GTX 1080 graphics card and discover there is not enough clearance above the motherboard for the card. What is your best solution?
a) Use a different case that allows for the height of the expansion card.
b) Use a riser card to install the card parallel to the motherboard.
c) Use an onboard component rather than the graphics card.
d) Use a conventional PCI graphics card that fits the motherboard and case.
Answer:
I will use a riser card to install the card parallel to the motherboard.
Explanation:
If you attempted to install a GPU like this and it stands tall, then this means that you do not have enough room for the card. Instead of purchasing a new case that will allow the GPU to seat comfortably, you can buy a riser card. A riser card seats at a right angular position and is built to extend a motherboard slot. I expect a motherboard that supports an EVGA GeForce GTX 1080 graphics card to support a riser card because not all boards support a riser card. Once it is installed, the card will rest on the motherboard and will rotate the GPU to seat parallel with the motherboard.
THE BEST Answer:
b) Use a riser card to install the card parallel to the motherboard.
Second Answer:
a) Use a different case that allows for the height of the expansion card.
B. Is the Easiest and best way!
Electronic transmission of information standards, such as transaction and code sets and uniform identifiers, are covered underQuestion options:a) administrative simplification.b) HITECH.
c) CMS.d) OCR
Answer:
option A
Explanation:
Option A.
With the use of Administrative simplification, we can transform all the paper work to electronic media such as electronic receipts or electronic mail. By shifting towards electronic means in Administrative simplification we are actually saving a lot of time by helping the human resource and from the laborious tasks of paper work and data management.
The management of electronic means is very easy and friendly, it is also a reason for implementing administration simplification as well.
What is a type of machine-to-human communication?
A.
biofeedback
B.
Talking face to face
C.
Typing on a computer
D.
Your computer communicating with a server
*I will give brainliest to the first answer*
A. Biofeedback
Its where your body is read by a machine and you read the machine
Answer:
A. Biofeedback
Explanation:
(did this so other person could get brainliest)
Katie's design template includes an indent for the first paragraph of every chapter and first paragraph after any section break in a chapter, To keep these indents visually consistent, she instructs her designers to do which of the following?
A. Specify an indent value in the Paragraph panel
B. Use the Tab key
C. Press [Spacebar] exactly five times to create the
indent
D. Specify an indent value in the Character panel
Answer: A. Specify an indent value in the Paragraph panel
Explanation:
Katie's wants an indent for the first paragraph and for all subsequent paragraphs in case of section breaks in the chapter.
So in this case if we specify an indent value in the paragraph panel then it would appear in all the subsequent paragraph section.
Option b is not correct as using the tab key would be a long process and have to keep a count on the number of times the tab needs to be placed.
Option c is incorrect as pressing the space button would be more longer option and the indent would also be not at the same place where we want it.
The indent value would work for characters and would not work for paragraphs as desired by katie.
What is the correct term for a set of established guidelines for actions (which may be designated by individuals, teams, functions, or capabilities) under various specified conditions?
Answer: Protocol
Explanation: Protocol is the standard that is used in the communication and electronic devices for the communication. Through the mean of the these guidelines the communication is done by the sending and receiving of the data.
This works for the both wired networking and wireless communication which functions under the certain conditions.Examples-TCP(Transmission control protocol), FTP(File transfer protocol) etc.
A technician is building a thick client workstation that would be used to run a database and wants to ensure the best protection against errors. What type of memory would be best suited for this?
Answer: ECC memory
Explanation:Error-correcting code(ECC) memory is used for the detection as well as correction of the internal storage data in the operating system. It is the memory code that cannot tolerated any type of the corruption in the data storage.
The ECC memory is usually found in the fields like financial computing, scientific etc.It is a reliable memory and provides high protection.Thus the technician should put the ECC memory in the workstation.
Yoon, who sells designer jeans, has a mobile app to help women determine what leg style looks best on their body type. What could she do to bring in more prospective customers?
a. Add a mobile-app extension to her ad
b. Use sitelink extensions.
c. Add a call-only extension to her ad
d. Include a link to her mobile website in her ad.
Answer:a)Add a mobile-app extension to her ad
Explanation: A mobile app extension is the tool that extends due to the purpose of any specific function.It creates the extension of the application's function and information towards the users. This creates a interactive environment with the user even when they are accessing other apps.
Other options are incorrect because site link will be for sharing of the link as extension,call only extension is the calling purpose and mobile website link in the ad will only be used while accessing the website. Thus the correct option is option(a).
The IT department sent out a memo stating that it will start delivering desktop computer interfaces through the IT data center via a web browser interface. What technology is the IT department using?
a. Public cloud computingb. Server clusteringc. Directory serverd. Virtual desktop infrastructure
Answer: Virtual desktop infrastructure
Explanation:
The virtual desktop infrastructure is the virtualization technology in which the host desktop OS (operating system) is in the centralized server of the data center. The virtual desktop infrastructure is also known as server based computing as it include the variation in the computing model such as client - server model.
The example of the virtual desktop infrastructure is wallpapers, toolbars, window and folder is the stored in the server remotely.
All the other options does not involve with this technology so that is why option (D) is correct.
Hello, may I please get some help with this assignment?
Make a small speech saying why MP4 player is the best amongst other similar formats. Cite the sources you used to make this argument. Think of this like a campaign ad or advertisement for your format.
You must also include a list of other formats you’d specifically like to target when comparing MP4 to other audio formats
List three key points you’d like to make about MP4 audio format explaining the benefits of the format.
Which value can be entered to cause the following code segment to display the message "That number is acceptable."? ____.
intnumber;
cin>> number;
if (number > 10 && number < 100)
cout << "That number is acceptable.\n";
else
cout << "That number is not acceptable.\n";
a) 0
b) 10
c) 99
d) 100
e) All of these
Answer:
C) 99
Explanation:
This code only displays "That number is acceptable" when such number is higher than 10 and less than 100. This is becasue the conditional sentence if controls which message is going to be displayed based on the abovementioned condition. 0 and 10 are not greater than 10, so they don't pass the condition and 100 is not less than itself, so it does not pass either. The only number among the options greater than 10 and less than 100 is 99.
"Matthew captures traffic on his network and notices connections using ports 20, 22, 23, and 80. Which port normally hosts a protocol that uses secure, ncrypted connection
A. 20
B. 22
C. 23
D. 80 "
Answer:
B.22
Explanation:
I know this because 22 is normally a port that hosts a protocol with an encrypted connection
Declare and initialize the following variables: monthOfYear, initialized to the value 11 companyRevenue, initialized to the value 5666777 firstClassTicketPrice, initialized to the value 6000 totalPopulation, initialized to the value 1222333
Answer:
int monthOfYear=11;
long companyRevenue=5666777;
int firstClassTicketPrice=6000;
long totalPopulation=1222333;
Explanation:
Here we have declared four variable monthOfYear , companyRevenue, firstClassTicketPrice , totalPopulation as int ,long, int and long type .We have declared companyRevenue,totalPopulation as long type because it exceed the range of integer.
Following are the program in c language
#include <stdio.h> // header file
int main() // main function
{
int monthOfYear=11; // variable
long companyRevenue=5666777; //variable
int firstClassTicketPrice=6000;//variable
long totalPopulation=1222333;//variable
printf("%d\n%ld\n%d\n%ld",monthOfYear,companyRevenue,firstClassTicketPrice,totalPopulation); // display value
return 0;
}
Output:
11
5666777
6000
1222333
Final answer:
In programming, variables are initialized by selecting appropriate data types and assigning values. The variables monthOfYear, companyRevenue, firstClassTicketPrice, and totalPopulation would be initialized with the data types int, double, and long, to correspond with their expected value ranges.
Explanation:
Variable Initialization in Programming
To initialize the given variables in programming, you would select the appropriate data types and assign the provided values. Here's how you can declare and initialize the variables:
int monthOfYear = 11; // Assuming months are integer values from 1 to 12
double companyRevenue = 5666777; // Revenue is usually a large number with the potential for decimal points, hence 'double'
double firstClassTicketPrice = 6000; // Similar to revenue, the price could potentially have decimals
long totalPopulation = 1222333; // Population can be a large number, therefore 'long' might be used for larger range
Note that the data types chosen (such as int, double, long) are based on the usual conventions and the expected ranges of the values. For example, 'int' is typically used for whole numbers without decimals, 'double' for numbers with a significant range and potential decimals, and 'long' for very large numbers.
You have been studying processors. Your instructor has asked you to help prepare a lecture for introductory students learning about processors. You explain that when payroll software determines which employees should receive overtime based on hours worked, it is a result of a(n) ______ operation.
Answer:
The correct answer is a comparison operation.
Explanation:
In computing, we can see that the processors have two main functions which are to do arithmetic operations and comparison operations. The comparison operations are those that have binary results such as true or false. In the exercise, the processor has to determine if one person receives overtime based on hours worked (True) or if that person does not receive it (false).
When the computer begins to run a program
1.the program is moved from secondary storage to memory.
2.the program is moved from secondary storage to the network controller.
3.the program is moved from the CPU to memory.
4.the program is moved from the CPU to secondary storage.
Answer:
1.the program is moved from secondary storage to memory.
Explanation:
Secondary storage media generally have greater storage capacity than RAM (random access memory), for this reason the data and program are stored there.
but ram memories are much faster, for example, a solid state disk (SSD) with SATA III connection can have read and write speeds of approximately 500 MB/s, while a DDR III RAM can have speeds between 12 and 18 GB/S, that is, more than 20 times faster.
So that the flow of data at the time of running a program is optimal, the data from the secondary storage unit is copied to the RAM and this ensures that the speed at which the programs run is at least 20 times faster, and our processes run better.
Given an int variable n that has already been initialized to a positive value and, in addition, int variables k and total that have already been declared use a while loop to compute the sum of the cubes of the first n whole numbers.
Answer:
// here is code in C++.
#include <bits/stdc++.h>
using namespace std;
// main function
int main()
{
// variables
int n=5;
int k,total=0;
int copy=n;
// while loop to calculate cubes
while(n)
{
// find cube
k=n*n*n;
// find total
total=total+k;
// decrease n
n--;
}
// print sum of cubes of first n whole numbers
cout<<"Sum of cube of first "<<copy<<" numbers is "<<total<<endl;
return 0;
}
Explanation:
Declare three variables n, k and total. initialize n with 5.In the while loop, calculate cube of n then add it to total.Then decrease the n by 1.While loop run until n becomes 0.After the while loop,total will have the sum of cubes of first n whole numbers.
Output:
Sum of cube of first 5 numbers is 225