. If you executean infinite recursive function on a computer it will executeforever.
a. True
b.False

Answers

Answer 1

Answer:

b. False

Explanation:

If you execute an infinite recursive function on a computer it will NOT execute forever.


Related Questions

In a well-designed detail report, a field called a(n) ____ field controls the output.
Answer
break
indexed
dominant
control

Answers

Answer:

Control

Explanation:

True of False - use T or F An interface is compiled into a separate bytecode file (.class).

Answers

Answer:

T

Explanation:

An interface is compiled to a separate bytecode class file.

For example of out application has a class myClass.java and an interface myInterface.java:

class myClass{

   String name;

   int age;

}

interface myInterface{

  public String getName();

  public int getAge();

}

Both of these are compiled to their own respective class files by the compiler,namely, myClass.class and myInterface.class.

True / False
In general,

embedded system processors are more powerful than general-purpose processors.

Answers

Answer: True

Explanation:

Embedded system processor are more powerful than general purpose processor because the embedded  processors are designed to work in a particular machine for which they get the right amount of RAM and hardware however general purpose processors are to work in every machine which makes them little slow in some machine as they do not get the proper hardware and RAM and have to cope with much more demanding situations.

Write a C++ code that will read a line of text convert it to all lower case and print it in the reverse order. Assume the maximum length of the text is 80 characters. Example input/output is shown below:

Input:

Hello sir

Output:

ris olleh

Answers

C++ program for converting it into lower case and printing in reverse order

#include <iostream>

#include <string>

#include <cctype>

using namespace std;

//driver function

int main()

{

// Declaring two string Variables

//strin to store Input string

//low_string to store the string in Lower Case

string strin, low_string;

int i=0;

cout<<"Input string: "<<endl;

/*getline()method is used to store the characters from Input stream to strin string */

getline(cin,strin);

//size()method returns the length of the string.

int length=strin.size();

//tolower() method changes the case of a single character at a time.

// loop is used to convert the entire Input string to lowercase.

while (strin[i])

{

  char c=strin[i];

  low_string[i]=tolower(c);

   i++;

}

//Checking the length of characters is less than 80

if(length<80)

 {

    cout<<"Output string: "<<endl;

   //Printing the Input string in reverse order, character by character.

    for(int i=length-1;i>=0;i--)

   {

    cout<<low_string[i];

   }

cout<<endl;

}

else

    {

       cout<<"string Length Exceeds 80(Max character Limit)"<<endl;

    }

return 0;

}

Output-

Input string:

Hello sir

Output string:

ris olleh

What error occurs in the following program? #include using namespace std; int main() { int number1, number2, sum; cout << "Enter number 1:"; cin >> number1; cout << "Enter number 2:"; cin >> number2; number1 + number2 = sum; cout << "The sum of number 1 and number 2 is " << sum; return 0; }

Answers

Answer:

1. ‘cout’ was not declared in this scope.

2. ‘cin’ was not declared in this scope.

3. lvalue required as left operand of assignment.

Explanation:

The code gives the error cout and cin was not declare. This error means, we not include the library where they define.

cout and cin is the input/output instruction and they include in the library iostream file.

the last error is lvalue required as left operand of assignment.

lvalue means the assignable value, we actually do the wrong assignment.

number1 + number2 = sum;

here, sum is is the assignment variable. so, it must be in the right side of the '=' operator.

sum = number1 + number2 ;

Now, the above is correct. the value number1 plus number2 is assign to sum.

In the MOV instruction both operands i.e. source andthe destination cannot be

_______________ operands.

Answers

Answer:

an immediate.

Explanation:

It is because of the instruction encoding and decoding.Intel which make these instructions decided not include instructions which provide no real advantage. MOV segment register is one of them because segment register need not to be changed very often.This saves the space in instruction encoding.

Answer: In the MOV instruction both operands i.e., source and the destination cannot be immediate operands.

Explanation:

The destination operand must be in data alterable mode and it cannot be an an immediate operand, or a segment register. Basically, the mov operation are used to copy the values stored in one registers to another registers. It can be used to load a small integer in the register.

Kindly guide me How can I get the easy examples and tutorialsregarding:
a) Finite Automata
b) Transition Graph
c) Generalized Transition Graph
d) Kleen's Theorem

Answers

I thing it’s c but I’m not positive

Write a programe to add two numbers using function with return type"void".

Answers

Answer:

#include<iostream>

using namespace std;

//create the function which add two number

void addTwoNumber(int num_1,int num_2)

{

   int result = num_1 + num_2;  //adding

   

   cout<<"The output is:"<<result<<endl;  //display on the screen

}

//main function

int main(){

   //calling the function

   addTwoNumber(3,6);

   return 0;

}

Explanation:

First, include the library iostream for using the input/output instructions.

then, create the function which adds two numbers. Its return type is void, it means the function return nothing and the function takes two integer parameters.

then, use the addition operation '+' in the programming to add the numbers and store the result in the variable and display the result.

create the main function for testing the function.

call the function with two arguments 3 and 6.

then, the program copies the argument value into the define function parameters and then the program start executing the function.

Windows XPProfessional and Windows Vista Both have same devicedrivers.
True
False

Answers

Answer: False

Explanation:

 Windows XP Professional and Windows Vista, both does not have same device drivers because they both have different structural modules. Both windows XP and windows Vista are different in terms of their security architecture, mobile computing and networking technologies.

As, windows XP has suffered from security problems or issues with the performance. Vista has received issue with product activation and performance. Another common problem of Vista is that integration of new form of DRM in the operating system and security technology.

This is a form of load balancing where larger workloads are issued to IT resources with higher processing capacities

a. Pay-Per-Use Monitor

b. Asymmetric Distribution

c. SLA Monitor

d. Workload Prioritization

Answers

Answer:

The correct answer is b. Asymmetric Distribution.

Explanation:

Asymmetric Distribution has to do with those larger workloads which are issued to IT resources with higher processing capacities. The Pay-Per-Use Monitor is where the billing system relies on. The Workload Prioritization is where workloads are prioritized according to their level. And the SLA monitor is a contract between a service provider and the customer. So, the most correct answer is b.Asymmetric Distribution.

What is the analysis and complexity of a shell sortalgorithms?

Answers

Answer: The shell sort is based on insertion sort. Here the list of elements are divided into smaller sub list which are sorted based on insertion sort.

Its best case time complexity is O(n* logn) and worst case is O(n* log^2 n)

Explanation:

Shell sort is an inplace sorting here we begin by dividing the list into sublist and sorting the list with insertion sort. We create interval for dividing the list into sub list until we reach the smallest interval of 1.

The best case is O(n* logn).

What is meant when it is said that an exception is thrown?

Answers

Answer:

It is an error in the program that warns the users that something is wrong in the data they have entered

Explanation:

Null pointer exception, ArrayIndexOutOfBounds and arithmetic exception are some of the exception which can be thrown in a code segment. example if we use divide by zero then the exception to be used is arithmetic exception. Similarly we can also define our own conditions for throwing an exception using the keyword throw. Example throw exception class("error message"),

Point out any special purpose programminglanguage and also for what purpose it wasdeveloped.

Answers

Answer: Lisp which is the short for list processing is a special purpose programming language and it was developed for processing strings which is being exploited in the field of artificial intelligence.

Explanation:

Lisp is used for artificial intelligence as it can compute symbolic expressions, so a common lisp which it later came to be known as is used for development of application with artificial intelligence and is being widely used today. Lisp was actually developed in the early 1980s.

Write a C++ program that computes the area and perimeter of aspecified shape
(either rectangle,triangle, or circle). The user should be prompted for therelevant

input (type of shape anddata associated with that shape). See the examplebelow.

Enter the shape type (1 forrectangle, 2 for triangle, 3 for circle)

1

Enter the width

2

Enter the height

3

The perimeter of the rectangleis 10 and the area is 6.

Answers

C++ program that computes the area and perimeter of a specified shape

#include <iostream>

#include <cmath>

using namespace std;

void rectangle() //Defining function for rectangle

{ int h,w;

cout << "Enter height: ";

//taking input

cin >> h;

cout << "Enter width: ";

cin >> w;

cout << "The perimeter of the rectangle is " <<2*h+ 2*w << " and the area is " <<h*w << endl;  //printing output

}

void triangle()  //Defining function for triangle

{ int s1,s2,s3,h,w;

cout << "Side 1: ";  //Taking input

cin >> s1;

cout << "Side 2: ";

cin >> s2;

cout << "Side 3: ";

cin >> s3;

cout << "Enter the height: ";

cin >> h;

cout << "Enter the base length: ";

cin >> w;

cout << "The perimeter of the triangle is " <<s1+s2+s3 << " and the area is " <<(.5)*w*h << endl; //printing output

}

void circle()//Defining Function for the circle

{

const double p=3.14;

int w;

cout << "Enter the radius: "; //Taking input

cin >> w;

cout << "The perimeter of the circle is " << p*2*w << " and the area is " << p*w*w<< endl;  //printing output

}

int main()  //driver function

{

int s;

cout << "Enter the shape (1 for rectangle,2 for triangle, 3 for circle): ";

//Asking user for the shape

cin >> s;

switch(s)  //checking which shape it chooses

{

case 1:

rectangle();  //If user type 1 ,then calling rectangle function

break;

case 2:

triangle();   //If user type 2 ,then calling triangle function

break;

case 3:

circle();  //If user type 3,then calling circle function

break;

default:

cout <<"Enter valid choice for shape";  //If user type other than 1,2,3

}

return 0;  

}

Output

Enter the shape (1 for rectangle,2 for triangle, 3 for circle): 1

Enter height:2

Enter width: 3

The perimeter of the rectangle is 10 and the area is 6

COMPARE AND DIFFERENTIATE THE SERVER AND WORKSTATION BBRIEFLY?

Answers

Answer: Servers perform actions and replies back to clients when connected in the form of the back end of application being used.

Workstations on the other hand are systems where high performance work is performed for getting a high quality of output.

Explanation:

Examples of servers are the application servers or web server. Examples of workstations include graphics editing and audio editing workstations. If we compare in term so reliability i.e there response to failures or the frequencies of failures, it is found that workstations are more reliable in comparison to servers.

Digits Sum Write a function main( that reads a positive integer, calls the function digits which finds the digits sum of that integer. The function main( prints the sum. Sample input/output: Enter a positive integer: 20010 The digits sum of 20019 is 3

Answers

Answer:

#include<iostream>

using namespace std;

int digits(int number){

   int sum=0;

   while(number != 0){

       int rem = number % 10;

       sum = sum + rem;

       number = number/10;

   }

   return sum;

}

int main(){

   int number;

   cout<<"Enter the integer: ";

   cin>>number;

   int result = digits(number);

   cout<<"The sum of digits is: "<<result<<endl;

}

Explanation:

Include the library iostream for use of input/output.

Then, create the function digits with return type int.

Take a while loop and put a condition number not equal to zero.

the while loop executes the until the condition is not false.

In the while loop, take the remainder of the number and store in the rem variable.

after that, the store in the sum then reduces the number by dividing 10.

for example:

the number is 123.

rem = 123%10 it gives the value 3.

sum = 0+3=3

number = 123/10 it equal to 12

then,

rem = 12%10 it gives the value 2.

sum = 3+2=5

number = 12/10 is equal to 1

the same process executes until the number becomes zero and then the while loop terminates and the sum value returns to the main function.

create the main function and take the value from the user and call the function with the argument number.

and finally, print the result.

Consider the following line of code: price= input(Please enter the price: ") What would be the next line in your code that will allow you to store the price as a decimal number price price(decimal) price float(price) price decimal(price) price int(price

Answers

Answer:

price float(price)

Explanation:

There are four basic type of data type use in the programming to declare the

variable.

1. int:  it is used for integer values.

2. float:  it is used for decimal values.

3. char:  it is used for character values

4. Boolean: it is used for true or false.

in the question, the one option contain the data type float (price float(price)). So, it store the value in decimal.

price int(price):  it store the value in integer.

price decimal(price):  it is wrong declaration of variable. their is no data type in the programming which name is decimal.

price price(decimal):  it is wrong declaration of variable. their is no data type in the programming which name is price.

The Flow of Control refers to the order in which statements are executed. TRUE FALSE

Answers

Answer:

TRUE

Explanation:

The Flow of Control refers to the order in which the statements are executed.

One can understand the code if he knows the flow of control.

Describe how layers in the ISO reference model correspond tolayers in the TCP/IP reference model.

Answers

Answer and explanation : The TCP/IP means TRANSMISSION CONTROL PROTOCOL AND INTERNET PROTOCOL It governs all the communication which are performed over network it has a set of protocol. It defines how different types of conversation are performed without any fault through a network

THERE ARE 5 TYPES OF LAYER IN TCP/IP MODEL

APPLICATION LAYER: It is present at upper level it is used for high level products for the network communicationTRANSPORT LAYER: This layer is used for transfering the message from one end to other endNETWORK LAYER : Routers are present in network layer which are are responsible for data transmission DATALINK LAYER : it is used when there is any problem in physical layer for correcting this datalink are usedPHYSICAL LAYER: Physical; layer are responsible for codding purpose which we used in communication process

What is a traffic controller?what are its functions?

Answers

Answer:

A traffic controller is basically a system design to regulate traffic in a controlled manner with a set of traffic rules to follow so as to ensure public safety .

The main functions of a traffic light controller are listed below:

To direct  and regulate vehicular and pedestrian trafficTo ensure safety of construction workers, emergency response team and public in general in order to avoid accidentsThese also uses CCTV and other monitoring system to manage flow of traffic and suggestion concerned with traffic congestion. These are provided by local or state authorities.To ensure smooth traffic flow in order to save time and chaos.

Appreciate with dumbsup and need short discription about what is java programming

Answers

Answer:

java programming language is a programming language which is based on the concepts of object oriented programming.

Explanation:

Java program uses the concept of classes and enable to use the classes by making objects of them. Java program is similar in concepts to that of C++. java program can run on a single system or can also be shared across a network. It is considered to be safe and it is interpreted by JVM (Java virtual machine). Some of its characteristics are it exhibits polymorphism, inheritance and overloading and overriding functions.

Java is used for developing many web based application, software's and games. These program are easy to write, debug and compile with perfect GUIs for which it is considered to be user friendly.

Write an If - Then statement that sets the variable hours to 10 when the flag variable minimum is set.

Answers

An If-Then statement that sets the variable hours to 10 when the flag variable minimum is set:

Using an explicit comparison:

if minimum:

   hours = 10

This statement simply checks if minimum is True. If it is, then it assigns 10 to the hours variable.

Give three reasons why you think ETL functions are mostchallenging in data warehouse environment.

Answers

Final answer:

ETL functions are challenging in a data warehouse environment due to the high volumes of data, the variety and inconsistency of data formats and structures, and the imperative need to maintain data quality.

Explanation:

ETL, which stands for Extract, Transform, Load, is a critical process in a data warehouse environment. It involves the integration of data from multiple sources, transformation of that data into a format suitable for analysis, and then loading it into the data warehouse.

There are three main reasons why ETL functions can be particularly challenging in this setting:

Data Volume: The sheer amount of data that needs to be processed can be overwhelming. Handling large volumes of data requires robust systems and can be time-consuming, thus posing a significant challenge.

Data Variety: Different data sources can mean inconsistent formats, structures, and quality. Achieving consistency and accuracy in data transformation is a difficult task that demands meticulous attention to detail and sophisticated processes.

Data Quality: Ensuring the correctness, completeness, and reliability of data is paramount. This can be a daunting task due to potential errors in the data and the complexity of data validation rules.

The challenges of ETL highlight the importance of having a well-designed data warehouse architecture and a comprehensive approach to data management.

In the second form of ____, the binary operation op is applied to the elements in the range.

A.
adjacent_find

B.
adjacent_difference

C.
adjacent_member

Answers

If I remember correctly from my computer science class it is B.

)What are the approaches used to design a Control unit? Brieflycompare them.

Answers

Answer: Control unit is the main unit of CPU which is responsible for handling of the processor's control action. There are two  ways to design a control unit :-

Hardwired control unitMicro-programmed control unit

Explanation: Comparison of the two control units are as follows:-

Hardwired control is comparatively rapid than the micro-programmed control .Hardwired control is circuit type technology and micro-programmed control is software type technology.Hardwired control is based on the RISC architecture and micro-programmed is based on CISC architecture.

electronic business includes which of the following

A. servicing customers

B. buying and selling

C. conducting electronic transactions within an organization

D all of these

Answers

Answer:

D. all of these

Explanation:

Electronic business includes :  servicing customers, buying and selling , conducting electronic transactions within an organization.

Answer is all of these- D.

Which of the following would be considered a good name for a function that converts temperatures from Fahrenheit to Celsius? A. calc B. convert temp C. temp D. myfunction

Answers

Answer:B) converttemp

Explanation:  A good function name should provide an indication of the task carried out by the function.In this case, our task is related to conversion of temperature from one unit to another. So converttemp would represent a good nomenclature for the function and would enable the end user to determine the applicability of the function to his use case.

What is the output of the following code segment?

n = 1;
for ( ; n <= 5; )
cout << n << ' ';
n++;




1. 1 2 3 4 5

2. 1 1 1 ... and on forever

3. 2 3 4 5 6

4. 1 2 3 4

5. 2 3 4 5

Answers

Answer

1 2 3 4 5

Explanation:

initialize the value of n with 1

then, for loop is executed until the condition is true.

so, it check the condition 1<=5, condition true, code is executed and print 1

and n become 2.

again check condition 2<=5 condition true, code is executed and print 2

and n become 3.

and so on....

it print 1 2 3 4 5 after that check condition 6<=5 condition false, it terminate from loop.

Therefore, the answer is  1 2 3 4 5

Why is it important to power on the computer before you begin?

Answers

We power on the computer before we begin because a computer has a special programme in it called operating system which needs to be started for us to use the computer

Answer: so i can turn on and you could do what ever u want

Explanation:

Given the following code, what is the final value of i at the end of the program? int i; for(i=0; i<=4;i++) { cout << i << endl; }

Question 5 pow(2,3) is the same as pow(3,2). Question 14 options: True False

Question 6 The functions pow(), sqrt(), and fabs() are found in which include file?

cstdlib

cmath

iostream

regular

Answers

Answer:

The final value of i will be 5 at the end of the program.

i=0, i≤4, prints 0.

i=1, i≤4, prints 1.

i=2, i≤4, prints 2.

i=3, i≤4, prints 3.

i=4, i ≤ 4, prints 4.

i=5, i is not ≤ 4, stops here.

Q-5:

pow(2,3) = 8 and pow(3,2)=9, so they are not same.

Q-6:

The functions pow(), sqrt(), and fabs() are found in which cmath

Explanation:

Final answer:

The final value of i is 5. pow(2,3) is not the same as pow(3,2). The functions pow(), sqrt(), and fabs() are located in the cmath include file.

Explanation:

Final Value of Variable i

The final value of i at the end of the loop in the C++ code is 5. This occurs because the loop continues to increment i until the condition i <= 4 is no longer true. After the last execution with i equal to 4, the loop increments i to 5 and then checks the condition, which fails, thus exiting the loop and leaving i with a value of 5.

Power Function Comparison

pow(2,3) is not the same as pow(3,2). The pow function returns the value of one number raised to the power of another. Thus, pow(2,3) calculates 2 to the power of 3 (2*2*2), which equals 8, while pow(3,2) calculates 3 to the power of 2 (3*3), which equals 9.

Function Include Files

The functions pow(), sqrt(), and fabs() are all found in the cmath include file of C++.

Other Questions
Mr. Yi buys vegetables at a market. He purchases 6 pounds of potatoes, p, and 3 pounds of onions, n, for $18. Onions cost twice as much as potatoes. To determine the unit price for each item, his daughter sets up and solves the system of equations shown. An auto license plate consists of 6 digits; the first three are any letter (from the 26 alphabets), and the last three are any number from 0 to 9. For example, AAA 000, ABC 123, and ZZZ 999 are three possible license plate numbers. How many different license plate numbers may be created? A car is traveling at a speed of 70 mph, a long a straight road, when the driver slams on the brakes and the car m and the car a,=- 2.00 accelerates at comes to a complete stop. How much time passes between the time when the brakes were applied and the instant the car comes to a complete stop and how far did the car travel in that time? (1609 meters 1 mile, 3600 seconds 1 hour) a.) 7.28 s and 422.10 m. b.) 15.64 s and 244.70 m. c.) 12.32 s and 428.73 m. d.) 14.53 s and 210.98 m. e.) None of the above. One of the parameters monitored for in reactor water chemistry is boron. Which of the following is a reason for boron addition? to control reactivity to protect pumps to inhibit corrosion to preclude caustic stress corrosion The way crops are changed by human interference is called Farming Harvesting Domestication A 1.2 kg block of iron at 32 C is rapidly heated by a torch such that 12 kJ is transferred to it. What temperature would the block of iron reach (assuming the complete transfer of heat and no loss to the surroundings)? If that same amount of heat (12 kJ ) was quickly transferred to a 850 g pellet of copper at 27 C, what temperature would the copper reach before it begins losing heat to the surroundings? Use the equation for heat capacity and the following heat capacity values: If a 54 kg sprinter can accelerate from a standing start to a speed of 10 m/s in 3 s, what average power is generated? A binary search can be performed only on ____.A.ordered listsB.comparable listsC.unordered lists Choose the equation that represents the line that passes through the point (6, 3) and has a slope of one half. Question 2 of 102 PointsWhat is the reduced and simplified value of the expression given below? Which statement describes the term carrying capacity as it relates to a prairiedog population? Which features of the passage help you identifythe narrative style as stream of consciousness? Which point represent the location of the vertex of thegiven function? *f(x)=-2(x 4)2 7?O(4,- 7)O (-4,7)O (-4,-7)O(4,7)Which ontion renresents a parabola that opens downward1 point the government body responsible for interpreting the consititution is the Action potentials (nerve impulses) are changes in the membrane potential that, once started, will affect the entire excitable membrane. The first action potential is usually generated at the initial segment of the neurons axon. This activity will test your understanding of the sequence of events that occur at the membrane of the initial segment of the axon during generation of an action potential. A jet airplane with a 75.0 m wingspan is flying at 255 m/s. What emf is induced between the wing tips in V if the vertical component of the Earth's magnetic field is 3.00 x 10^-5 T? Which of these was a factor that pushed immigrants to the United States A tenth of a number in algebraic expression What are some mental disorders? Brian feels that no matter what he does, he will not be good at math because he was born without strong math skills. Brian is demonstrating _____, which MOST likely will reduce his ability to learn.