Answer:
Carry flag
Explanation:
INC instruction
This Instruction is used to increment the destination operand(register or a memory location) by 1,while maintaining the state of the carry flag CF.
DEC instruction
This instruction is used to decrement the destination operand(register or a memory location) by 1,while maintaining the state of the carry flag CF.
Initially we use Inc and Dec instructions for the loop,many loops include multi precision arithmetic doing.For controlling the loops we use inc and dec instructions by setting the zero flag,but not effecting the carry flag.For multi precision arithmetic operations we use the carry state because it helps in a way that it reduces the complexity of code( without writing tons of code),so it is necessary to preserve carry flag.
What is the most popular service that was supported by almost every early computer networks? In your opinion, what’s the reason for that service to be most popular?
Answer:
The most popular service supported by every early computer networks:-
Telnet
SMTP(Simple Mail Transfer Protocol)
Reason are as following:-
Telnet:-
When there the number of internet using people was very less They used to get connected with LAN and Telnet.
It was very useful for bidirectional interactive text oriented communication.
SMTP:-
SMTP(Simple Mail Transfer Protocol) introduced in 1982 and was one of the most used protocol for e-mails.
It is still used extensively and It was used for very long time to send and receive email messages for a very long time.
Hence, these are the computer network protocols that are being used as the popular devices.
What is the purpose and significanceof the following programming constructs in any programminglanguage
a) Variable
b) Constant
c) Assignment Initialization
Answer:
a) Variable-A variable is a symbolic name (or reference to) data. The name of the variable reflects what data the variable includes.It's purpose is to saving a data on particular point,it is a name of the address we want to operate.
Example-a,a1,a23,abc,abh_tr etc.
It should start with the characters, it may include numbers but not in starting and also the underscore at the starting.
b)Constant-A Constant is a value that we can't change, we stores it like a variable.The significance of constant : it's just a poor style to change the velocity of light, the value of pi, and other things like that. if we assumes some value it may produce an error, so making them constants is a type of defensive programming.
Example- pi=3.14 etc.
c) Assignment Initialization-The process of assigning a specific value to a variable at any point in a program or code because of the program logic requirement is known as an assignment operation.
Initialization-Defines and gives an original value in the same declaration to a stated variable.
Example int x = 7;
In this we can initialize the type of variable like - integer,floating etc.
We can declare the variable value in the same line.So,it helps in removing lines and saves time.
You are required to write a calculator for Geometric shapes(Circle, Square, and Rectangle). The basic idea is that you willprovide the information regarding a geometric shape and yourprogram will calculate the area, circumference and perimeter.
Answer: The c++ program to calculate area and perimeter for different geometric shapes is given below.
#include <iostream>
using namespace std;
void circle();
void square();
void rectangle();
int main() {
string shape;
char choice;
do
{
cout<<"Enter the geometrical shape (circle, square, rectangle)." <<endl;
cin>>shape;
if(shape == "circle")
circle();
if(shape == "square")
square();
if(shape == "rectangle")
rectangle();
cout<<"Do you wish to continue (y/n)"<<endl;
cin>>choice;
if(choice == 'n')
cout<<"quitting..."<<endl;
}while(choice != 'n');
return 0;
}
void circle()
{
float area, circumference;
float r, pi=3.14;
cout<<"Enter the radius of the circle"<<endl;
cin>>r;
circumference = 2*pi*r;
area = pi*r*r;
cout<<"The circumference is "<<circumference<<" and the area of the circle is "<<area<<endl;
}
void square()
{
float area, perimeter;
float s;
cout<<"Enter the side of the square"<<endl;
cin>>s;
perimeter = 4*s;
area = s*s;
cout<<"The perimeter is "<<perimeter<< " and the area of the square is "<<area<<endl;
}
void rectangle()
{
float area, perimeter;
float b, h;
cout<<"Enter the breadth of the rectangle"<<endl;
cin>>b;
cout<<"Enter the height of the rectangle"<<endl;
cin>>h;
perimeter = 2*(b+h);
area = b*h;
cout<<"The perimeter is "<<perimeter<< " and the area of the rectangle is "<<area<<endl;
}
OUTPUT
Enter the geometrical shape (circle, square, rectangle).
circle
Enter the radius of the circle
3.56
The circumference is 22.3568 and the area of the circle is 39.7951
Do you wish to continue (y/n)
n
quitting...
Explanation:
The program performs for circle, square and rectangle.
A method is defined for every shape. Their respective method contains the logic for user input, computation and output.
Every method consists of the variables needed to store the dimensions entered by the user. All the variables are declared as float to ease the computation as the user can input decimal values also.
No parameters are taken in any of the methods since input is taken in the method itself.
The ____ algorithm tries to extend a partial solution toward completion
A.
backtracking
B.
recursive
C.
backordering
Answer: Backtracking
Explanation:
Backtracking algorithm approaches a solution in a recursive fashion whereby it tries to build answers and modify them in time intervals as we progress through the solution. One such backtracking algorithm is the N Queen problem whereby we place N Queen in a chessboard of size NxN such that no two queens attack each other. So we place a queen and backtrack if there is a possibility that the queen is under attack from other queen. This process continues with time and thereby it tends to extend a partial solution towards the completion.
when organizations request for bids for contracts on their own website procurement, such business is classified as an
A. sell-side marketplace
B. none of these
C. buy-side marketplace
D. electronic exchange
Answer:
When organizations request for bids for contracts on their own website procurement, such business is classified as an sell-side marketplace -A.
When organizations request for bids for contracts on their own website procurement, such business is classified as an sell-side marketplace sell-side marketplace.
What is the difference between“Internetwork and the Internet”?
Answer: Inter-network-It is the network that gets created joining of many networks together and form a individual large network .
Internet- it is the global network that contains that contains the collection of all the networks.
Explanation:
Internet is the network at a global level which has the access to connect the various computer network together and inter-network is the network having the combination of many network together to form a single unit of network .Internet usually forms the connection using routers , servers etc and inter-network uses LAN's ,PAN's etc. to form the connection
what impact did the technical standard have on software development?
Answer:
The technical standard had a huge impact on the world of software development.
Explanation:
In the world of software development and coding in general, every coder has a specific style. Which can cause confusion when working with other coders, which in term causes errors. The Technical Standard allows Everyone to communicate with one another in a way that everyone will understand. Thus allowing for smoother development and less errors.
I hope this answered your question. If you have any more questions feel free to ask away at Brainly.
Write a do-while loop that asks the user to enter two numbers. The numbers should be added and the sum displayed. The user should be asked if he or she wishes to per- form the operation again. If so, the loop should repeat; otherwise it should terminate.
The do-while loop for the given problem is shown below.
do
{
// user asked to enter two numbers
cout<<"Enter two numbers to be added."<<endl;
cin>>num1;
cin>>num2;
sum = num1 + num2;
// sum of the numbers is displayed
cout<<"Sum of the two numbers is "<<sum<<endl;
// user asked whether to perform the operation again
cout<<"Do you wish to continue (y/n) ?"<<endl;
cin>>choice;
}while(choice != 'n');
The variables to hold the two numbers and their sum are declared as float so that the program should work well for both integers and floating numbers.
float num1, num2, sum;
The char variable is taken since it holds only a single-character input from the user, 'y' or 'n'.
char choice;
The whole program is given below.
#include <iostream>
using namespace std;
int main() {
float num1, num2, sum;
char choice;
do
{
// user asked to enter two numbers
cout<<"Enter two numbers to be added."<<endl;
cin>>num1;
cin>>num2;
sum = num1 + num2;
// sum of the numbers is displayed
cout<<"Sum of the two numbers is "<<sum<<endl;
// user asked whether to perform the operation again
cout<<"Do you wish to continue (y/n) ?"<<endl;
cin>>choice;
}while(choice != 'n');
cout<<"Quitting..."<<endl;
}
In Java a sub class of a/an______ can override a method of itssuper class and declare it ___________ . In that case the subclassmust be declared abstract.
Abstract class, non abstract class
non abstract class, abstract
non abstract class , reference data type
overloaded class, private
Answer:
non abstract class,abstract
Explanation:
In java a sub class of a concrete class or non abstract class can override a method of its upper class and declare it abstract . This is because it does not happen very often, but it is useful when the implementation of the method in the upper class is not valid in the subclass .
You may not use the break statement in a nested loop
True False
Answer:
You may not use the break statement in a nested loop - False
what is last mile in VOIP
Answer: Last mile is specific phrase that is referred to the customer in a technological field. VoIP(Voice over internet protocol) processes used to connect the customer through the voice communication with the help of internet protocol.
Explanation:
Voice over internet protocol is the protocol which uses voice communication to communicate by the help of internet as transmission medium .The terms last mile can be termed as 'last" -final layer and "mile"- length or distance of the total voice communication .
Last mile of the internet field in VoIP is the reaching of service to customer or the end user which is the last layer . The quality of service cannot be assured for the last mile and the speed , bandwidth etc factors also get effected in the communication. Therefore the last mile in the VoIP basically establishes the connection of the first mile to last mile that is the voice communication from service sender to the user .
Which of the following is used to verify a user's identity? A) Identification B) Authentication C) Validation D) Authorisation E) Accountability
Answer:
A? "A means of proving a person identity"
Explanation:
Write a "while" loop equivalentto the following "for" loop: (2Points)
int i,tt = 0;for (i = 0; i < 12; i += 3){t = t + i;cout << t;}cout << endl;
Answer:
int i,t = 0;
i=0; //initialize
while(i<22){
t = t + i;
cout << t;
i += 3; //increment
}
cout << endl;
Explanation:
Loops are used to execute the part of the code again and again until the condition is not true.
In the programming, there are three loop
1. for loop
2. while loop
3. do-while loop
The syntax of for loop:
for(initialize; condition; increment/decrement){
statement;
}
The syntax of while loop:
initialize;
while(condition){
increment/decrement;
}
In the while, we change the location of initializing which comes before the start of while loop, then condition and inside the loop increment/decrement.
Every object in asequence container has a specific position.
a. True
b. False
Answer: a)True
Explanation: A sequence container is a class which has the sequence of the objects present in it .By having the objects in a sequence it has a specific position that is given to the objects to keep them in a particular order .the sequence of objects can be like first object, second object , third object ...etc. Therefore the statement given is true that every object in a sequence container has a specific position.
In its entirety, the CCM process reduces the risk that ANY modifications made to a system result in a compromise to system or data confidentiality, integrity or availability. TRUE or FALSE
Answer: True
Explanation: CCM process is the process which basically watches over any change or modification that is being made in the data and it will only be implemented when there is no adverse effect of the change.It procedure helps in reducing the risk due to any modification made in data of a system. CCM process also take care of the confidentiality of data and integrity as well and helps inn maintaining it.Therefore the given statement is true.
The process of acquiring data for a program to use is called:
Select one:
a. data entry
b. graphical user interface
c. input
d. display
e. concatenation
Answer:
a. Data Entry
Explanation:
Great Question, it is always good to ask away and get rid of any doubts you may be having.
The process described in the question is called Data Entry and/or Data Acquisition. Data is gathered and stored in the computers memory to then be used by a specific program or function. Without this data being gathered the program or function cannot complete its task. Therefore Data Entry is extremely needed for the correct and healthy function of a program.
I hope this answered your question. If you have any more questions feel free to ask away at Brainly.
Convert the following decimal numb er (450)m into octal number system ? Convert the following binary number 1101100000110 into itsoctalequivalent ? Describe the function table of AND, OR, and NAND ?
Answer:
450 =(702)₈
1101100000110=(15406)₈
Refer to the images for the Truth tables for the AND , OR , NAND gates.
The output of OR gate is High when either of the inputs is 1.It is 0 only when both the outputs are 0.
The output of AND gate is 1 only when both the inputs are 1.If either of the input is 0 output is 0.
The NAND gate is Not AND gate So we have to just reverse the output of AND Gate.Replace 0's to 1's and vice-versa.
This loop is a good choice when you know how many times you want the loop to iterate in advance of entering the loop.
1. do-while
2. while
3. for
4. infinite
5. None of these
Answer:
This loop is a good choice when you know how many times you want the loop to iterate in advance of entering the loop.: for - 3.
Array of array in ________is not fixed but in ____it is in arectangle.
C# , Java
C++ , C#
Java , C++
C++ , Java
Answer: C# , Java
Explanation:
In C# we have an array of array but it is not fixed as it can have different dimensions. Its elements are interface type and are initialized to null.
In java the elements of an array can be any type of object we want such as it can be a rectangle.
In java we can use
String[ ][ ] arrays = { array1, array2, array3, };
Here the string array consist of arrays 1,2,3.
Answer: C# , Java
Explanation:
In C# we have an array of array but it is not fixed as it can have different dimensions. Its elements are interface type and are initialized to null.
In java the elements of an array can be any type of object we want such as it can be a rectangle.
In java we can use
String[ ][ ] arrays = { array1, array2, array3, };
Here the string array consist of arrays 1,2,3.
The relational database model was created by E.F. Codd.
A.
True
B.
False
A is the smallest unit of application data recognized bysystem software.
1 Row
2 Field
3 Record
4 Table
Answer:
A FIELD is recognized as the smallest unit of application data by system software.
Explanation:
Field is recognized as the smallest unit of application data by any system software. The data in relational data base management system ( RDBMS ) is stored as rows also called as database records or simply records. Each record is a row in database and each record contains fields. Columns in data base are nothing but the fields of all the records. They types of fields are fixed length and variable length.
Write a program in which you input three numbers they canhave decimals so float values and the program gives you the minvalue out of the three. Please need asap thank you
Answer:
Following is the c++ code:-
#include <bits/stdc++.h>
using namespace std;
int main() {
float a,b,c;//declaring three float variables..
cout<<"enter values"<<endl;
cin>>a>>b>>c;//taking input..
float mi=min(a,b);//finding minimum in a and b..
mi=min(mi,c);// finding minimum from mi and c.
cout<<mi<<endl;//printing the answer.
return 0;
}
Explanation:
I have taken three float variables to hold the values.
then I am finding the minimum in a and b and storing it in mi.
Then finding minimum from mi and c so we will get our final minimum number.
Given an array of integers an). The array is already NOT write C++ statements to fill the array eye write C++ statements that print to the screen how many values in the how many values are odd. In addition, the statements output to the scre the array that are even. s
Answer:
#include<iostream>
using namespace std;
int main () {
int n;
int odd=0,even=0;
cout<<"Enter the number of element store in the array: ";
cin>>n;
int arr[n];
for(int i=0;i<n;i++){
cin>>arr[i];
}
for(int i=0;i<n;i++){
if(arr[i]%2==1){
odd++;
}else{
even++;
}
}
cout<<"The number of odd values is: "<<odd<<endl;
cout<<"The number of even values is: "<<even<<endl;
}
Explanation:
Include the library iostream for input/output.
Create the main function and declare the variables.
Then, print the message on the screen and store the value enter by the user for the size of the array. After that, take a for loop and store the values in the array enter by the user.
then, take a for loop for traversing to the array and check the condition for odd and even by using if-else statement.
for odd: If odd values divided by 2 it gives 1 remainder.
for even: If even values divided by 2 it gives zero remainder.
if condition true, then update the counter.
finally, print the result.
Some misconceptionsabout communication are:
o Communication solves all problems.
o Communication physically breaks down.
o The meaning we attach to a word will be themeaning everyone else attaches to
the word.
o All of the given options
Answer:
All of the given options
Explanation:
Great question, it is always good to ask away and get rid of any doubts that you may be having.
Communication is an insanely important and useful, but there are a lot of misconceptions about communication. Based on the answers given in the question, the correct answer would be "All of the Given Options"
Communication can solve many problems but the statement that it can solve all problems is not completely accurate. Whether communication can solve a specific problem depends varies from person to person.
Communication can physically break down since not everyone speaks the same language not everyone can understand each other. Also another physical way is that certain dialogue choices can lead to physical confrontation.
Lastly, the meaning of a word can mean different things to different people. For example, "Happiness" every single person has a unique definition of happiness while others simply say it doesn't exist.
I hope this answered your question. If you have any more questions feel free to ask away at Brainly.
Write a program that will prompt the user to input ten student scores to an array. The score value is between 0 –100. The program will display the smallest and greatest of those values. It also displays the average score.
Answer:
#include <iostream>
using namespace std;
int main()
{
float arr[10];
float sum=0.0;
for(int i=0;i<10;i++){
cout<<"enter the 10 student record (0-100): ";
cin>>arr[i];
}
float min=arr[0];
float max=arr[0];
for(int i=0;i<10;i++){
if(arr[i]<min){
min=arr[i];
}
if(arr[i]>max){
max=arr[i];
}
sum = sum+arr[i];
}
float avg = sum/10;
cout<<"Smallest score: "<<min<<endl;
cout<<"Largest score: "<<max<<endl;
cout<<"Average score: "<<avg<<endl;
return 0;
}
Explanation:
Create the main function in the c++ programming and declare the variables.
Then, use the for loop to enter the scores 10 times in the array.
another for loop is used to traversing the array and check for smallest and largest and also calculate the sum of all element in the array.
for check smallest, define the temporary variable min with first element of array.
then, if statement check each element with the min and update the min if condition true.
similarly for largest.
after that, take the average by dividing the sum with total number of element in array.
finally print the output.
After inserting (or deleting) a node from an AVL tree, the resulting binary tree does not have to be an AVL tree.
True
False
True,After inserting (or deleting) a node from an AVL tree, the resulting binary tree does not have to be an AVL tree.
After inserting or deleting a node from an AVL tree, the resulting binary tree does not necessarily have to be an AVL tree. Here's a detailed explanation:
An AVL tree is a self-balancing binary search tree where the heights of the two child subtrees of any node differ by at most one. When performing operations such as insertion or deletion in an AVL tree, it is crucial to maintain this balancing property to ensure that the tree remains an AVL tree.
However, during the process of insertion or deletion, the balance factor of nodes may become violated, causing the tree to lose its balance. This imbalance can occur due to various factors such as rotations, double rotations, or node restructuring.
In some cases, after inserting or deleting a node, the resulting binary tree may still satisfy the AVL tree property without requiring any additional adjustments. In these cases, the tree remains an AVL tree.
However, there are scenarios where the resulting tree violates the AVL property and becomes unbalanced. In such cases, it is necessary to perform rebalancing operations to restore the AVL property. These operations typically involve rotations or restructuring of nodes to ensure that the heights of the subtrees remain balanced.
Therefore, it is true that after inserting or deleting a node from an AVL tree, the resulting binary tree does not have to be an AVL tree. Maintaining the AVL property may require additional adjustments to restore balance, making it possible for the resulting tree to deviate from the AVL tree structure initially.
how to write a function "void funct()" which will accept a string from the user as input and will then display the string backward.
Answer:
#include <bits/stdc++.h>
using namespace std;
void funct(){
string name;
cout<<"enter the string: ";
cin>>name;
reverse(name.begin(), name.end());
cout<<"The string is : "<<name<<endl;
}
int main()
{
funct();
return 0;
}
Explanation:
create the function funct() with return type void and declare the variable type string and print a message for asking to used enter the string.
The string enter by user is store in the variable using cin instruction.
after that, we use a inbuilt function reverse() which takes two argument.
firs argument tell the starting point and second index tell the ending point. then, the reverse function reverse the string.
name.begin() it is a function which return the pointer of first character of string.
name.end() it is a function which return the pointer of last character of the string.
finally, print the reverse string.
for calling the function, we have to create the main function and then call the function.
What are the light sources offiber optics?
Answer:
Light sources of fiber optics are used to inject light into a fiber optic cable. There are two varieties of light sources: laser diodes and light emitting diodes (LEDs) . They’re further differentiated by the wavelength and the type of cable.
LEDs are economical, slow in speed, easy to handle, multi mode-only, and have a wide output pattern.
Laser diodes are of expensive and faster than LED's, allow single-mode or multi mode both , and have a narrow output pattern.
__________ is a mathematical model of a real system in the form of a computer program.
(A) Transmitter
(B) Spreadsheet
(C) Simulation
(D) Modulation
Simulation is a mathematical model of a real system in the form of a computer program.
Answer is Simulation- (C)
Answer:
The correct answer is letter "C": Simulation.
Explanation:
A computer simulation is an algorithm, computer software or a network of servers that have the goal of creating a simulation of an abstract model of a given system. The model is made up of equations that replicate the functional relationships that the real system could have.
The ____ operation on a queue returns the last element in the queue, but does not remove the element from the queue
A.
front
B.
back
C.
pop
D.
push
Answer:
back
Explanation:
queue is the data structure which perform operation in particular order. the order is first in first out (FIFO).
it means the element which comes first, remove first.
front: it is used to fetch the first element or oldest element in the queue.
back: it is used to fetch the last element or newest element in the queue.
pop: it is used to remove the first element or oldest element in the queue.
push: it is used to insert the element at the back in the queue.
Therefore, the back is the correct option.
Final answer:
The operation that returns the last element in a queue without removing it is known as the 'back' operation.
Explanation:
The front operation on a queue returns the last element in the queue but does not remove the element from the queue.
The operation on a queue that returns the last element in the queue, but does not remove the element, is known as the back operation. Unlike the pop operation, which removes the element from the queue, the back operation simply allows us to see what the last element is without altering the queue's content. This is particularly useful in scenarios where you need to make a decision based on the last element without actually consuming it.