Answer: True
Explanation:
The definition of minimum spanning tree(MST) says that the graph must be connected and undirected to be considered for MST. It has (V-1) edges where V is the number of vertices. The minimum spanning tree is implemented using Kruskal's algorithm whereby it starts by considering the minimum weighted edge and covers all the edges upto (V-1) edges. So for MST it has to be connected
1. What is theoutput of the following code fragment if the input values are 1 and2?
int x;
int y;
cin>>x;
cin>>y;
cout<
cout<
A. 1
2
B. 1 2
C. 12
D. xy
Answer:
Hi, in the last one a correct way of the code will be:
cout<<x<<y;
or
cout<<x;
cout<<y;
In the first case you get 12, the C.
In the second case you also get the C.
Explanation:
If you want to make a jump line you have to use endl
e.g.
cout<<x<<endl;
cout<<y<<endl;
And after this you get:
1
2
In the other ways, you get the previously result in the output.
I hope it's help you.
An 8x16 font isstored in _________________ bytes.
? 8
? 16
? 4
? 20
Answer:
The answer to this question is 16 bytes.
Explanation:
8x16 font means it contains 16 rows by 8 columns of 1-bit pixel ( picture element ).
rows=16.
columns=8.
8 bit = 1 byte.
8x1 = 1 byte.
8x16 = 16 bytes.
So 8x16 font size requires 16 bytes of data to store a character.Hence we conclude that the answer is 16 bytes.
With few exceptions, ________ are warm-blooded, havelive births, and are suckled with milk from their mother’sbody.
which mammals
mammals
mammals that
mammals, they
Answer:
mammals
Explanation:
With few exceptions, mammals are warm-blooded, have live births, and are suckled with milk from their mother’s body.
Answer:
Just mammals. Hope that helps.
Explanation:
Describe encryption at gateways in thePresentation layer of the OSI Reference Model
Answer:
In the presentation layer of the OSI reference model provides a variety of coding and functions that can be applied in application layer data. Information send by the application layer are ensured by these functions. As, presentation layer is the important layer in the OSI reference model because it is responsible for important services like data compression, data conversion, decryption and encryption.
Encryption at gateway is defined as, when the important data is first encrypted using protocol and then it is transferred in the network. And gateway re-director operates in the presentation layer.
Every call to a recursive function has its own code and its own set of ____ and local variables
A.
headers
B.
parameters
C.
stack
Answer: Parameters
Explanation:
Whenever a call to a recursive function is made, then the function has its own code and its own set of parameters with local variables. These parameters are within the scope of the recursive function. For example while finding the factorial of a number we are given the function with parameter such as int recursive(int n) where int n is a parameter passed into the function.
Is software piracy really a threatfor IT industry ?
Answer: yes,software piracy is a threat for the IT industry.
Explanation: Software piracy is the illegal act of copying,stealing and using of the software and leads to the legal consequences too. This creates severe damage for the software and IT industry because they face a huge loss period and thus they do not gain the expected profit. Piracy of software is also harmful towards the user as well because their stored data is not safe and risky. Therefore, software piracy is a threat for the IT industry.
In Java the ______________are not objects. All of the rest areobjects, or any ___________ is called as object.
generic type , reference type
primitive types , generic type
Reference type , generic type
Reference type , primitive types
Answer:
Reference type,generic type
Explanation:
Reference types are used by a reference that maintains a reference (address) to the object but not the object itself. Because reference kinds reflect the variable's address rather than the data itself, assigning a reference object to another does not copy the information. Instead, it produces a second duplicate of the reference, which relates to the same heap place as the initial value.
Examples of reference types are Classes, Arrays,, Interfaces etc.
A generic type is a generic class or interface that is parameterized over kinds. Essentially, generic types enable you to write a particular, generic class (or method) that operates with distinct kinds, enabling code to be reused.
The class Object describes the conduct of all Java objects. However, it does not describe the conduct of all Java data structures. That's because not all Java data structures are objects. Some of them are primitive values that can be stored in object variables, but they are not objects themselves.
Unlike object types, primitive types are not sub types or super types.
Indicate which of the following substances contain an atom that does or does not follow the octet rule.
A. AlCl3
B. PCl3
C. PCl5
D. SiCl4
AlCl3 does not follow the octet rule because it has only six electrons in its valence shell after bonding. PCl5 also doesn't follow the octet rule as phosphorus extends beyond the octet by forming five covalent bonds using the d-orbitals.
To determine which substances contain an atom that does not follow the octet rule, we can evaluate the compounds listed: AlCl3, PCl3, PCl5, and SiCl4.
AlCl3 (Aluminum chloride): Aluminum has three valence electrons and forms three covalent bonds with chlorine atoms. However, it does not follow the octet rule because it only has six electrons in its valence shell after bonding.PCl3 (Phosphorus trichloride): Phosphorus has five valence electrons and forms three covalent bonds with chlorine atoms, leaving it with a full octet.PCl5 (Phosphorus pentachloride): Phosphorus can expand its valence shell beyond the octet rule, using the d-orbitals, to form five covalent bonds with chlorine atoms.SiCl4 (Silicon tetrachloride): Silicon has four valence electrons and forms four bonds with chlorine atoms, achieving a full octet.Based on this information, AlCl3 and PCl5 are examples where the central atom does not follow the octet rule. In the case of AlCl3, aluminum is electron-deficient with three bonds, whereas in PCl5, phosphorus exceeds the octet rule by forming five bonds.
When you instantiate an object from a class, ____ is reserved for each instance field in the class.
a.
a field name
b.
a constructor
c.
a signature
d.
memory
Answer:
The correct answer is d.Memory
Explanation:
The meaning of instantiating an object is to be able to create an instance of the object by using an object-oriented programming (OOP) language. In Java to instantiate an object from a class is to create a specific class and Memory is reserved for each instance field in the class.
A void function can return any value. TRUE FALSE
Answer:
False
Explanation:
False
A void function does not return anything
Final answer:
A void function cannot return any value, and the claim that it can is false. It performs operations without returning a value. In some languages like Python, a void function implicitly returns 'None', indicating the absence of a value.
Explanation:
The statement that a void function can return any value is FALSE. A void function is a type of function that does not return any value. The keyword void indicates that the function is expected to perform an action without the need to return a value. When a void function is executed, it might perform operations such as displaying content on the screen or modifying a global state, but it cannot return a value to the caller.
Although a void function does not return a value itself, in languages like Python, it may implicitly return a special value called None, which is treated as the absence of a value. This should not be confused with functions that return other types of values, such as Booleans, Integers, Floating point numbers, Strings, Arrays, Objects, or Resources.
Describeat least three applications where re-writeable optical laser diskwould be preferred over hard disks for storage
Answer:
Applications where re-writeable optical laser disk would be preferred over hard disks for storage are:
While storing the data in large amount, the optical disk are more preferred as, for storing the videos, photographs and various types of the images.This optical laser disk are used for transferring the information or data from one computer to another so we can easily modify or re-write the data at any time as, this disk are more convenient than hard disk.The optical laser disk are also helpful for distributing the software to the customers or users by using its large storing capacity features, as compared to hard disks.
Answer:
The following are listed applications or requirements where the re-writable (optical) laser drive is preferred over storage hard drives.
Explanation:
A laser disk is often used to transmit data between one device to the next such that at any moment we could conveniently edit or re-write the details even though this drive is much more versatile than that of the disk.When processing the details in vast numbers, the optical disk is used to store certain photos, snapshots, and different file formats.As compared to hard disks, the optic disk has always been useful in delivering the applications to consumers or clients with its broad storage space functionality.Imagine that 10 int values are labeled byposition: 1, 2, 3, etc. Write a program that reads 10integers and tracks how many of them have the same value as theirposition. That is, ifthe first number read is 1, or the third number is 3, that countsas a match, and the output would be the number of matches (from 0to 10). Use a singleif statement and a loop.
Answer:
#include<iostream>
using namespace std;
//main function
int main(){
//initialization
int count_Number=1,a1,match_Numbers=0;
//loop run 10 times
do{
cout<<"Enter the number: ";
//read the value enter by user
cin>>a1;
//check for match
if(a1==count_Number){
match_Numbers++;
}
count_Number++;
}while(count_Number <= 10);
//display the output
cout<<"The number of matches is: "<<match_Numbers<<endl;
return 0;
}
Explanation:
Include the library iostream for using the input/output instruction.
create the main function and declare the variables.
take the do-while loop which has a special property, the statement in the do-while execute first and then check the condition.
In the do-while, print the message by using the cout instruction and then store the value enter by the user into the variable.
then, check the value enter by the user is match the position or not. If the condition true, then count the matches and also update the position count.
this process continues until the position count is less than or equal 10. if condition false the loop terminates and then, display the output on the screen.
What are the most common MIS (management information systems) used in a business place.
Answer:
MIS (management information systems) is a computer system consist of hardware and a software that together serves as the backbone of operations for an organisation. It is an important tool for any business irrespective of its scale of operation and its size and frequency and usage may be vary with business. As, MIS tools help in move data and manage the information.
The technologies and tools are used in MIS have evolved over the time such as minicomputers, mainframe and server networks.
IRQ 0 interrupt have _______________ priority
? low
? medium
? highest
? lowest
Answer:
Highest
Explanation:
A interrupt request / IRQ is in which instructions are sent to Cpu and uses an interrupt handler to run distinct program . Hardware interrupts are used to manage occurrences such as obtaining modem or network card information, important presses, or mouse motions.
Interrupt request 0. – it is a system timer (can not be altered) Interrupt request 1 – keyboard controller (can not be changed) Interrupt request 2 – cascaded IRQ 8–15 signals (any device configured to use IRQ 2 will genuinely use IRQ 9) Interrupt request 3 – serial port 2 controller Interrupt request 4 – serial port 1 controller Interrupt request 5 –parallel port 2 and 3 Interrupt request 6 - floppy disk controller Interrupt request 7 –parallel port 1. If a printer is not present, it is used for printers or for any parallel port. It can also possibly be shared with a secondary sound card with cautious port management.As interrupt number increases priority level decreases, Priority level 0 is the highest priority level .
The signal(s)that control the direction that data is transferred on its buslines is the _________ signal(s).
Answer:
They are called control signals
Queue is the LIFO structure.
o True
o False
Answer:
The answer is False.
Explanation:
By definition LIFO structure is defined by: Last In, First Out.
By definition FIFO structure is defined by: First In, First Out.
A queue has the basics operations push() and pop() where:
push(element) stores the element at the end of the queue.element = pop() retrieves the element at the beginning of the queue.For example:
If you insert the elements doing the push(e) and q.pop(e) operation:
Queue q;
Element e;
q.push(2); // q ={2};
q.push(5); // q ={2 , 5};
q.push(6); // q = {2, 5, 6};
q.pop(e); // q ={5, 6}; e = 2;
q.push(12); q ={5, 6, 12};
q.pop(e); // q ={6, 12}; e = 5;
Note: A stack is a LIFO structure.
What is Belady in computer language ?
Answer: Belady’s anomaly is a process in which by increase in the number of page frames there is a increase in the number of page faults for memory access pattern.
Explanation: Belady's anomaly was if there is a increment in the number of page frames then it will result in the increment of page faults as well in computer terms. The process was seen usually on the following replacement algorithm:-
FIFO(first-in first-out) Random page replacementT F Overuse of global variables can lead to problems.
Answer:
True
Explanation:
Global Variables
Variables which are declared outside any function. Any function can use these variables,they are automatically initialized to zero(0).They are generally declared before main() function.
Problems
We can modify the global variable in any function as any function can access it. So it is hard to figure out which functions read and write these variables. Various problems are-
No Access Control Concurrency issuesMemory allocation issuesThe ___ of a signal is the range of frequencies that it contains.
a) spectrum b) effective bandwidth c) wavelenghth d) absolute bandwidth
. To allow access to network resources is the function of______________________
a. Application layer
b. Physical layer
c. Network layer
d. logical link layer
I think Network layer is the answer.
what is Software Process Improvement?
Answer:
Software Process Improvement (SPI) methodology is defined as a sequence of tasks, tools, and techniques to plan and implement improvement activities to achieve specific goals such as increasing development speed, achieving higher product quality or reducing costs.
Software Process Improvement (SPI) is the practice of enhancing software development processes to improve quality and efficiency. It often utilizes methods like Six Sigma's DMAIC framework. The goal is to create consistent, high-quality software products.
What is Software Process Improvement?
Software Process Improvement (SPI) is the practice of analyzing and enhancing the software development processes within an organization to improve the quality, efficiency, and overall performance of software delivery.
By identifying inefficiencies and variations in current processes, companies can implement more effective methodologies that lead to higher quality products. One common method used in SPI is Six Sigma, which employs the DMAIC (Define, Measure, Analyze, Improve, Control) framework.To implement Software Process Improvement, follow these steps:
Define: Identify the processes that need improvement and establish goals.Measure: Collect data on current processes to understand existing performance levels.Analyze: Examine the data to identify sources of inefficiencies or defects.Improve: Develop and implement strategies to rectify identified issues.Control: Monitor the improved processes to ensure sustainability and continuous improvement.Quality improvement techniques, such as process mapping and the PDCA (Plan, Do, Check, Act) cycle, can also support SPI efforts. Through these methods, organizations aim to achieve more consistent, reliable, and high-quality software products
What is the value of x after the following statements execute? int x, y, z; y 12; z 3; X= (y*(z+y-10); A. 36 B. 144 C.60 D. None of these
Answer:
60
Explanation:
According to the operator precedence, the bracket comes in the top. So, the program solve expression in the bracket first.
In the code, the value of Y is 12 and z is 3
substitute the value in the formula.
X = (12*(3 + 12 - 10)).
So, the program calculate the value (3 + 12 - 10) first which gives 5.
After that program evaluate (12 * 5) which gives 60.
Therefore, the answer is 60.
What are the advantages of using the internet as theinfrastructure for electronic commerce and electronicbusiness?
Answer and Explanation:
E-commerce and e-business is a major business of the present time using the internet. It is basically defined as the online selling of goods or making any business online. Internet is the basic requirement for the e-commerce or e-business as
it helps in providing the internet connectivity so that the e-business can be displayed online and users can buy goods or interact with seller regarding the business. Due to internet service users get to know about the online business and thus the business attains economic growth and benefit.You use ____ operators to perform calculations with values in your programs.
a.
arithmetic
b.
calculation
c.
integer
d.
precedence
Answer:
arithmetic
Explanation:
Arithmetic operator like + , - , * , / are used to perform calculations with values in programs. For example:
1 + 2 will add 1 and 2 and return the value 3.
1 * 2 will multiply 1 and 2 and return the value 2.
3 - 2 will subtract 2 from 3 and return the value 1.
The values which undergo the operation can be integral or floating point.
Answer:
Option a is the correct answer for the above question.
Explanation:
For any programming language, An arithmetic operator is used to perform the calculation for any set of values. It takes two or more value to perform the calculation. This operation performed by the help of the Arithmetic logic unit which is also called ALU. It lies on the CPU and works for the instruction of the control unit.
The above question scenario states that if there are two or more value then which operator is used to perform calculation then the answer is an arithmetic operator as described above. Hence option a is the right answer. while the other is not because--
Option b states about calculation operator but it is not the defined operator for any programming language. Option c states about integer operator but it is not the defined operator for any programming language. Option d states about precedence operator but it is not the defined operator for any programming language. It tells that which operator is executed first if two or more operators are used for any statement.Explain Software licensing
Answer:
Software Licensing is pretty much allowing another company to use your own product.
Explanation:
For Example:
Company A is working on a face swap application which requires a facial recognition software in order to work. They can either build one from scratch (which can take months) or they can pay someone who already has one in order to be able to use it.
Company B owns a facial recognition software and are asked by Company A to license their software to them. Company A pays Company B, they then draft up a contract for Company A allowing them to use the facial recognition app.
Software licenses are either proprietary, free, or open source. Proprietary is the one used in the example above.
I hope this answered your question. If you have any more questions feel free to ask away at Brainly.
Software licensing is the legal instrument defining how software can be used and distributed. Proprietary software typically restricts access to source code, whereas open source licenses, such as GPL and BSD, facilitate sharing and collaboration, even allowing users to modify and redistribute software under certain conditions.
Explanation:Software licensing refers to the legal framework through which end users are allowed to use and distribute software. Modern software is developed in a human-readable format known as source code and then compiled into machine-readable software. However, converting compiled software back into original source code is not as straightforward. This is why terms set out in software licenses, like the GNU Public License (GPL) or the Berkeley Software Distribution (BSD) license, are crucial for defining how software can be shared and used.
The GNU project's GPL stipulates that anyone can use, modify, and distribute software, so long as the modified source code is also made available under the same GPL terms. This concept is at the core of the 'open source' ethos and encourages the growth and evolution of the software community. In comparison, traditional proprietary software models, like those commonly seen with Windows executables, restrict access to the source code, limiting customization and redistribution.
Many modern software projects, including the Python and R projects, operate under open source licenses, fostering collaboration and innovation. Similarly, Creative Commons licenses permit the use, sharing, and remixing of creative works while maintaining the legal framework to protect such commons.
It is important to note that open source software might not always be free; users can modify and distribute the software, but there can be restrictions on the commercialization of those modified versions.
A computer on a company network was infected with a zero-day exploit after an employee accidently opened an email that contained malicious content. The employee recognized the email as malicious and was attempting to delete it, but accidently opened it. Which of the following should be done to prevent this scenario from occurring again in the future? A. Install host-based firewalls on all computers that have an email client installed B. Set the email program default to open messages in plain text C. Install end-point protection on all computers that access web email D. Create new email spam filters to delete all messages from that sender
Answer:
A. Install host-based firewalls on all computers that have an email client installed
Explanation:
Since the employee accidentally opened the email that contained malicious content and the computer on the company network got infected, it needs to install host-based firewalls on all computers that have an email client installed on the system. A host-based firewall is a type of firewall installed on individual client or server which controls the incoming and outgoing networking data and identifies whether to allow it or not. The host-based firewall can easily identify and block suspected exploits like viruses, worms or trojan horses.
By installing host-based firewalls on all computers that have an email client installed secures the entire network of computers.
Answer:
The answer is C.
Explanation:
To prevent such thing from happening in the future, the employee/company should Install end-point protection on all computers that access web email
For a set of integers stored in an array,calculate the sum of the positive numbers and the sum of the negative numbers. The program should store these numbers in memory variables: positiveSum and negativeSum. Numbers should be read from the array one at a time with a zero value (0) being used to signal the end of data (the zero value is acting as a "sentinel" value).
Answer: The c++ program to implement the given conditions is shown below.
#include <iostream>
using namespace std;
int main()
{
// used as index of array in the loop for calculating the sum
int i=0;
// array contains both negative and positive integers
// 0 is used as the sentinel value
int arr[12]={-9,-8,-3,-12,-78,-10,23,45,67,1,0};
int positiveSum=0, negativeSum=0;
do
{
if(arr[i]<0)
negativeSum = negativeSum + arr[i];
if(arr[i]>0)
positiveSum = positiveSum + arr[i];
// after every element is added, index of array represented by i is incremented
i++;
}while(arr[i]!=0);
// loop continues till end of array is reached
cout<<"Sum of positive integers "<<positiveSum<<" and sum of negative integers "<<negativeSum<<endl;
return 0;
}
OUTPUT
Sum of positive integers 136 and sum of negative integers -120
Explanation: This program declares and initializes an integer array without user input. As mentioned in the question, 0 is taken as the sentinel value which shows the end of data in the array.
int arr[12]={-9,-8,-3,-12,-78,-10,23,45,67,1,0};
All the variables are declared with data type int, not float. Since, integers can yield integer result only.
The do-while loop is used to calculate the sum of both positive and negative integers using int variable i. The variable i is initialized to 0.
This loop will run till it encounters the sentinel value 0 as shown.
while(arr[i]!=0);
Hence, all the integers in the array are read one at a time and sum is calculated irrespective of the element is positive or negative.
if(arr[i]<0)
negativeSum = negativeSum + arr[i];
if(arr[i]>0)
positiveSum = positiveSum + arr[i];
After the element is added, variable i is incremented and loop is continued.
The do-while loop tests positive and negative integers based on the fact whether their value is greater than or less than 0.
The program can be tested using different size and different values of positive and negative integers in the array.
Which one of the following media is most resistant to EMI?
a. coaxial cable
b. UTP cable
c. STP cable
d. fiber-optic cable
e. microwaves
Answer:
D - Fiber-optic Cables
Explanation:
Electromagnetic interference affects cables made from different metals and can corrupt the data running through them. However, Fiber-optic cables are constructed from glass (non-metallic) and transmit pulses of light as signals to transfer data, this means that the cables are most resistant and not susceptible to EMI.
What is a regular expression that would match any digit 1-999?
Answer:
[1-9][0-9]{0,2}
Explanation:
The numbers to be matched consist of three digits with the following requirements:
- Digit 1 can take the values 1-9
- Digit 2 can take the values 0-9
- Digit 3 can take the values 0-9
- Digits 2 and 3 are optional, that is the number may consist of 1,2 or 3 digits in all.
Taking these into account, the overall regular expression can be represented as follows:
[1-9][0-9]{0,2}
Which of the following expression is equivalent to (x >1)?
x >= 1
!(x <= 1)
!(x = 1)
!(x < 1)
None of the above
Please explain so that I can learn from you.
Answer:
!(x <= 1)
Explanation:
The operator '!' comes in the logical operator category and it names is not Operator.
It used with the Boolean value if the Boolean value is TRUE then NOT operator gives output FALSE.
if the Boolean value is FALSE then NOT operator gives output TRUE.
so, consider the expression (x >1).
It means x is greater than 1.
Now, think about when the condition will be false.
So, the condition will be If x is less than or equal to 1.
the option 1 is x >= 1. So, it greater than equal to 1. This is not the correct option
!(x <= 1) it means x is less than equal to 1 and include the NOT operator then it becomes X is greater than 1 (x > 1). So, This is the one possible answer.
!(x = 1): it means x can be greater than or less than 1. so, this is not correct.
!(x < 1): it means x can be greater than or equal to 1. This is also not correct because it includes the equal part as well.