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

_______________ operands.

Answers

Answer 1

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 2

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.


Related Questions

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.

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.

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.

How many times will the following loop repeat?

i = 2; while i <= 16; i = i+2; end

A. 0 times

B. 2 times

C. 8 times

D. 16 times

Answers

Answer:

8 times

Explanation:

The while is execute again and again until the condition is TRUE.

In the question:

the value of i=2, when program enter the loop it check the condition when

2 <= 16, condition TRUE. it update the value i = 4.

Again the loop check condition, 4 <= 16, condition TRUE, i become 6 and so on...

4,6,8,10,12,14,16

when i = 16 loop condition is also TRUE. 16 <= 16. So, it again run the loop and i become 18.

then, the loop condition false and it exit the loop.

so, i run until 18

4,6,8,10,12,14,16,18

Therefore, the answer is 8 times.  

Please answer the question about the economic idea of technology. Which of the statements is true of technology?
a.Technology refers to the processes a firm uses in production.
b.Technology refers most directly to the methods firm managers use to organize overseas operations.
c.Technology is the use of computers and software to create economic efficiency.
d.The economic definition of technology is unrelated to the management skills or training that firm employees may have.

Answers

Answer:

C - Technology is the use of computers and software to create economic efficiency

Explanation:

The economic idea of technology refers to everything that can assist in producing goods more efficiently (faster/cheaper/higher quality). Economists refer to technology as an innovative method of executing things, rather than referring to physical hardware.

Answer:

The Correct Answer is C

Explanation:

Technology, for statisticians, is anything that assists us manufacture things quicker, more reliable or more affordable. When you think of technology there's a great opportunity you think of material things like large devices or high-speed computers. But when statisticians debate about technology, they're imagining more broadly about distinct methods of making things.

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

Answers

Answer:

Control

Explanation:

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"),

What effect does the clock rate of a computer have on the execution speed of an instruction?

Answers

Answer:

Clock rate also known as clock speed is the rate at which microprocessor executes instructions.That means clock rate is directly proportional to the execution speed of an instruction.Microprocessor is the core of a computer a system it contains all the functions of a central processing unit.So if the clock rate is more  execution speed of an instruction is more if clock rate is less execution speed of an instruction is less.

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 a C++ program that takes as input a list ( an array) of n integrers and finds the number of negative inetgers inthe list (array ).
Side Note: The problem did not come out ofthis book but the information that I study is from this book. And Iam not getting how to write the program.

Answers

Answer:Following is the program for the count of negative integers in an array:-

#include <bits/stdc++.h>  

using namespace std;

int main()

{

   int n,count=0;//declaring 2 variables n and count and initializing count with 0..

   cout<<"Enter the size of the array"<<endl;

   cin>>n;//prompting the size of the array...

   int negative_nums[n];//array of integers of size n..

   cout<<"Enter the numbers"<<endl;

   for(int i=0;i<n;i++)

   cin>>negative_nums[i];//prompting elements of the array...

   for(int i=0;i<n;i++)//iterating over the array....

   {

       if(negative_nums[i]<0)// if integer in the array at ith position is negative...  

       count++;// increasing the count...

   }

   cout<<"The number of negative numbers are "<<count<<endl;//printing the count of negative integers...

   return 0;

}

Explanation:

1. In the program i have taken a count integer initializing it with 0

2. Iterating over the array.

3. If the element at ith position is less than zero then increasing the count by 1.

4.Printing the count of negative integers in the array.

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:

In a doubly linked list, every nodecontains the address of the next node and the previousnode except for the ____ node.
a. middle

b. last

c. first

d. second to last

Answers

Answer:The answer is (c).first.

Explanation:

In doubly linked list each node possesses the address of next node(except last node) because there is no node present after the last node .

and the address of previous node(except first node) because there is no node present before the first node.

So the conclusion is that the first node does not contain the address of previous node and the last node does not contain the address of the next node.

)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.

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.

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.

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.

What is the output of the C++ codeabove?

a.

0 1 2 3 4

c.

0 5 10 15 20

b.

0 5 10 15

d.

5 10 15 20

int list [5] = {0, 5, 10, 15, 20};
int j;
for (j = 0; j < 5; j++)
cout << list [j] << " ";
cout << endl;

Answers

Answer:

c

Explanation:

xxhdudhshshsudjdjd

. How is using 0 / 1 or true / false in specifying digital an abstraction?

Answers

Answer:

Digital electronics involves 2 states which are abstracted as 0/1 or true/false.

Explanation:

Digital electronics involves 2 states. For TTL logic this corresponds to 0 Volt (0) or 5 Volt (1). Analyzing further, a  digital waveform has a square shape  (not necessarily a perfect square) with 2 levels denoting the two states, namely, true(1) or false(0). So a 0 or 1 is not actually absolute but 0 corresponds to voltage level below a threshold voltage whereas 1 corresponds to voltage level above a threshold voltage.

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.

You can use ____ arguments to initialize field values, but you can also use arguments for any other purpose.

a.
object

b.
constructor

c.
field

d.
data

Answers

B.constructor I think that’s the answer

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.

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++.

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.

Thetremendous diversity of the source systems is the primary reasonfor their complexity. Do you agree

Answers

Answer:

Yes, i agree with the given statement that the tremendous diversity of the source system is the primary reason for their complexity as, when we storing the large amount of the data and the data warehousing are based on the solution to implemented to the data are get transformed for matched the desired queries. There is also the duplicate entry elimination which increased the complexity of the data.

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

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).

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.

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.

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.

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

Other Questions
47) Find the area of a circle with diameter of 10 cm. Let pi = 3.14.48) Find the area of a circle with radius of 2 cm. Let pi = 3.14. A children's wading pool is in the shape of a right circular cylinder, and has a diameter of 6 feet. The pool is filled to a uniform depth of 1.5 feet. Which of the following values is closest to the volume ofwater in the pool, in cubic feet? A. 28B. 42C. 57D. 67E. 133 You and your friend read a book about three animals that travel hundreds of miles to find their way back home. They face danger, illness, and injury, yet eventually arrive alive to greet their heartsick owners. Which of the following is the topic of this book? (5 points)a) Three animals on a journeyb) Three animals with superpowersc) Three animals run away for an adventured) Three animals risk their lives to return home which of the following graphics would add the most relevant to " The Deadliest Tsunami in History" ?A: a graph showing the temperature in several affected locations in the following daysB: an illustration comparing the height and extent of the tsunami to normal sea levelC: a chart showing amounts of money donated afterward by different charitiesD: a photograph of a village in the Maldives that was soared casualties The true or false questions.1.egrep can accept multiple filenames as input arguments. What are preventative health care programs such a free flu shots essential for communities Suppose that you wish to cross a river that is 3900 feet wide and flowing at a rate of 5 mph from north to south. Starting on the eastern bank, you wish to go directly across the river to a point on the western bank opposite your current position. You have a boat that travels at a constant rate of 11 mph.a) In what direction, measured clockwise from north, should you aim your boat? Include appropriate units in your answer.b) How long will it take you to make the trip? Include appropriate units in your answer.\Please show your work so I may understand. Thank you so much! Penny, Inc. employs a process costing system. Direct materials are added at the beginning of the process. Here is information about July's activities: On July 1: Beginning inventories 850 units, 60% complete Direct materials cost $5,000 Conversion costs $4,000 During July: Number of units started 15,000 Direct materials added $155,000 Conversion costs added $83,520 On July 31: Ending inventories 1,600 units, 40% complete Using the FIFO method, the number of equivalent units of conversion costs was: Both the parasympathetic and sympathetic divisions are part of the somatic motor nervous division.a. Trueb. False Light is refracted as it travels from a point A in medium 1 to a point B in medium 2. If the index of refraction is 1.33 in medium 1 and 1.51 in medium 2, how much time does it take for light to go from A to B, assuming it travels 331 cm in medium 1 and 151 cm in medium 2? A cylindrical specimen of some metal alloy having an elastic modulus of 117 GPa and an original cross-sectional diameter of 3.6 mm will experience only elastic deformation when a tensile load of 2460 N is applied. Calculate the maximum length of the specimen before deformation if the maximum allowable elongation is 0.47 mm. A club has 30 members including 3 lawyers, 4 teachers and 5 docters. In how many ways can a committee of 8 be formed to contain 1 teacher, 2 lawyers, and 2 docters? Which process most likely takes place when the kinetic energy of molecules overcomes the intermolecular forces? Jessica is participating in an experiment on memory. She has been asked to memorize a long list of word pairs. Once she has mastered the list, she will be asked a series of questions about which words were paired with each other. This is an example of a _____ test of memory. A gardener places extra nutrients in the soil of a flower bed to make theflower grow faster. Through which tissue would the nutrients first move intothe flower?A. ChloroplastsB. PhloemC. XylemD. Amoeba Given the following Preorder and Inorder traversals, please recover the original tree. Preorder: C F D G H A B E Inorder: G D H F C B E A Para mi clase de _____ necesito la _____. espa?ol calculadora ciencias sociales bolgrafo matemticas calculadora educacin fsica hoja de papel Describe the layers of an artery versus a capillary versus a vein. In the parabola y = (x + 12 + 2, what is the vertex? HELP!!! Coral bleaching events are occurring in coral reefs around the world. Which statementbestdescribes how human activity will likely continue to cause a loss of reef biodiversity