When used as parameters, _________ variables allow a function to access the parameter’s

original argument.

Answers

Answer 1

Answer:  reference

Explanation:

In an function if the variables are passed as reference variables this means that the variables are pointing to the original arguments.So the changes made in the function on the reference variables will be reflected back on the original arguments.

For example:-

#include<iostream>

using namespace std;

void swap(&int f,&int s)

{

    int t=f;

    f=s;

   s =temp;

}

int main()

{

int n,m;

n=45;

m=85;

swap(n,m);

cout<<n<<" "<<m;

return 0;

}

the values of m and n will get swapped.

#include<iostream>

using namespace std;

void swapv(int f,int s)

{

    int t=f;

    f=s;

    s=temp;

}

int main()

{

int n,m;

n=45;

m=85;

swapv(n,m);

cout<<n<<" "<<m;

return 0;

}

In this program the values of m and n will not get swapped because they are passed by value.So duplicate copies of m and n will be created and manipulation will be done on them.


Related Questions

True / False
. Fixed-length instruction architectures do not use memory as efficiently as variable-length architectures.

Answers

Answer:

TRUE. Variable length instruction architectures are better at memory efficiency than fixed length architectures.

Explanation:

Variable length instruction architectures use memory efficiently than fixed length architectures. Fixed length instructions are used in RISC (Reduced Instruction Set Computers) , where as CISC (Complex Instruction Set Computers ) have instructions of variable length. In fixed instruction length architectures if the instruction has shorter length than that of fixed length it requires padding to increase the instruction length to fixed length. This is wastage of memory.

function getLongestString(strings) { } /* Do not modify code below this line */ const strings = ['long', 'longer', 'longest']; console.log(getLongestString(strings), '<-- should be "longest"');

Answers

Answer:

function getLongestString(strings) {  

return strings.reduce( (acc, cur) => acc.length > cur.length ? acc : cur);

}

Explanation:

A reducer applies the same operation to each array element. In this case, the longest string is stored in the accumulator (acc), and is replaced only by the current element (cur) if the current element is longer than the accumulator.

You use the ____ data type to hold any single character.

a.
single

b.
char

c.
float

d.
byte

Answers

b. char. Char is short for character.

The decision-maker's attitude toward riskcan change the outcome of a situation involving risk.
True
False

Answers

Answer: True

Explanation: Yes, there is a major impact of the decision maker's attitude on a risky situation. In risky situation if the decision maker is on side of taking non-risking decision then there would be less chances of severe outcome but if the decision maker tends to take risk then the situation can have any sort of impact good or bad as outcome. Therefore there is a huge impact of decision makers attitude.

Write a program that stores the value 16 in the variable length and the value 18 in the variable width. Have your program calculate the value assigned to the variable perimeter using the formula perimeter = 2 * length + 2 * width. Have your program print the value stored in perimeter.

Answers

Answer:

#include<iostream>

using namespace std;

int main()

{

  int length = 16;

   int width = 18;

   int perimeter = (2*length) + (2 * width);

   cout<<"The perimeter is: "<<perimeter<<endl;

}

Explanation:

First include the library iostream in the c++ program for input/output.

then, create the main function and define the variable with given values in the length and width.

After that calculate the perimeter by using the formula.

perimeter = 2*length + 2*width

and finally display the output  on the screen by using the cout instruction.

What is one of the problems with project managementsoftware?

The project manager manages the software instead of theproject
Project duration calculations are sometimesapproximate
You cannot override the project management softwaredecisions regarding schedule
It’s expensive and difficult touse

Answers

Answer: It’s expensive and difficult to use

Explanation:

 The problems with project management software is that it is expensive and difficult to use as, the scale of project grow and their impact reach beyond the functional unit. Budget is one of the main issue in planning and tracking. It is time intensive to learn and refresh the interface design and also there is no invoicing or billing included.

In Java a final class must be sub-classed before it.
?? True

?? False

Answers

Answer: False

Explanation: In java, whenever a final class is declared it cannot be extended further and also it is not possible for a declared class to be overridden in the sub class. A class can be declared final by using the final keyword. Final class cannot be extended but they can be used to extend the other classes.Therefore the final class cannot be sub classed before it in java.

Write an overloaded constructor for the Table class that will take a single argument for the color of the table Write a set method (also known as a mutator method) for the color attribute.

Answers

Explanation:

Below is required code in java :-

public class Table{

   private String color;    //attribute to store the color of the table

   public Table(){    //default constructor

       this.color="";   //set a default blank color

   }

   public Table(String color){    //overloaded constructor

       this.color=color;    //set the color value equal to the parameter provided

   }

   public void setColor(String color){    //setter or mutator method

       this.color=color;    //set the color value equal to the parameter provided

   }

}

Write a program that asks the user to enter a number within the range of 1 through 10. Use a switch statement to display the Roman numeral version of that number. Input Validation: Do not accept a number less than 1 or greater than 10. Prompts And Output Labels. Use the following prompt for input: "Enter a number in the range of 1 - 10: ". The output of the program should be just a Roman numeral, such as VII.

Answers

cout<<"Enter a number in the range of 1 - 10 ";

cin>>num;

// check if the input is valid

if(num<0 || num > 10)

cout<<"Invalid Number"

// checking for appropriate output

switch(num){

case 1:

cout<< "|";

case 2:

cout<< "||";

case 3:

cout<< "|||";

case 4:

cout<< "|V";

case 5:

cout<< "V";

case 6:

cout<< "V|";

case 7:

cout<< "V||";

case 8:

cout<< "V|||";

case 9:

cout<< "|X";

case 10:

cout<< "X";

default :

cout<<" Nothing found";

}

Final answer:

The program asks the user to enter a number between 1 and 10 and uses a switch statement to convert it to a Roman numeral, with input validation to ensure the number is within the specified range.

Explanation:

Converting Numbers to Roman Numerals Using a Switch Statement

To write a program that asks for a number in the range of 1 through 10 and converts it to a Roman numeral, we can utilize a switch statement. Here is an example code in a programming language like C++ or Java:

#include <iostream>
using namespace std;
main() {
 int number;
 cout << "Enter a number in the range of 1 - 10: ";
 cin >> number;
 switch(number) {
   case 1: cout << 'I'; break;
   case 2: cout << 'II'; break;
   case 3: cout << 'III'; break;
   case 4: cout << 'IV'; break;
   case 5: cout << 'V'; break;
   case 6: cout << 'VI'; break;
   case 7: cout << 'VII'; break;
   case 8: cout << 'VIII'; break;
   case 9: cout << 'IX'; break;
   case 10: cout << 'X'; break;
   default: cout << "Error: invalid input.";
 }

 return 0;
}
This program will display a Roman numeral corresponding to the number entered by the user, ensuring that input validation is performed and only numbers between 1 and 10 are accepted.

We need ____ pointers to build a linked list.

A.
two

B.
three

C.
four

D.
five

Answers

Answer:

two

Explanation:

A linked list is a data structure which stores the multiple-element with data type

and a pointer that stores the address of the next element.

A linked list is a series of nodes connecting each other by a pointer.

a node contains data and a pointer.

For build an array, two pointers are used:

the first pointer for specifies the starting node called head node.

and the second pointer is used to connect the other node to build the linked list.

Both are used to build the array if we lose the head node we cannot apply the operation because we do not know the starting node and we cannot traverse the whole linked list.

for example:

1->2->3->4->5

here, 1 is the head node and -> denote the link which makes by the second pointer.

Final answer:

To build a linked list, at least two pointers are needed: one for the head of the list and another within each node to point to the next node.

Explanation:

To build a linked list, you need two pointers. The first pointer typically points to the head of the list, which is the first node in the list. The second pointer, found within each node, points to the next node in the list. This setup allows the linked list to efficiently add and remove elements, by adjusting these pointers appropriately when nodes are inserted or deleted.

In contrast to arrays, linked lists do not use contiguous memory space and they allow for efficient insertions and deletions. They can grow and shrink during the execution of a program. Each node in a singly linked list generally contains the data part and the next pointer. However, in a doubly linked list, each node contains an additional pointer, known as the previous pointer, referencing the preceding node in the sequence to allow bidirectional traversal.

True / False
Variable length instructions generally use memory more efficiently than fixed-length instruction sets.

Answers

Answer: True

Explanation:

Variable length instructions generally implemented by CISC processors use memory more efficiently than fixed length instruction of RISC processors sets because CISC supports array whereas RISC does not. Also CISC uses more complex addressing modes which consumes less memory cycles and the the program is also reduces. In Fixed length instruction in RISC processor the simple instructions has to be used a number of time which leads to more memory cycles.

Write a short note on Façadepattern.

Answers

is a software design pattern commonly used with object-oriented programming. The name is by analogy to an architectural facade. A facade is an object that provides a simplified interface to a larger body of code, such as a class library. I looked it up hope it helps

If a function doesn’t return a value, the word _________ will appear as its return type.

Answers

Answer: error

Explanation: the word ‘error’ will flash up

a network on the internet has a subnet mask of 255.255.240.0.what is the maximum number of hosts it can handle?

Answers

Answer:

4094 hosts

Explanation:

In a network,

     Number of hosts is (2^host no -2)

We have subtracted 2 because out of these hosts two are used in broadcasting and other purposes.  

Host number is equal to the 0's in the Subnet mask

                    255.255.240.0

convert this into binary number i.e

   11111111.11111111.11110000.00000000

So,12 0's are there

           Number of valid hosts= 2^12 -2

                                                = 4096-2

                                                =  4094

______ organizations have physical and online dimensions

A. clicks and mortar

B. pure-play

C. virtual

D. brick and mortar

Answers

Answer:

Click and Mortar

Explanation:

In the e-commerce world, a click and mortar organization is a type of business model that includes both its operations in the online and offline domains. Clients are able to shop online and at the same time visit the retailer’s store. It is able to offer its clients fast online transactions and face-to-face service.

Further explanation

Electronic Commerce Describes the process of buying, selling, sending, or exchanging products, services, and / or information through computer networks, including the Internet.

Electronic Business refers to a broader definition of the EC, not only buying and selling goods and services, but also serving consumers, collaborating with business partners, conducting e-learning, and conducting electronic transactions in organizations.

3 forms of EC organization:

• Brick-and-Mortar:

Is an organization that does business offline, sells physical products, and also physical agents.

• Virtual (Pure Play):

Is an organization that conducts business activities only online.

• Click-and-Mortar:

Clicks and mortar refers to the use of electronic sales (CLICK) by combining traditional methods of operation (brick and mortar). Cliks and mortar also refers to the development of electronic commerce that is side by side with conventional business operations by utilizing the strengths in each of the complementary and synergistic channels.

Clicks and mortar, companies can successfully develop parallel electronic trade in parallel with brick and mortar. The level of integration between the two channels is manifested in several dimensions: the actual business processes used for company transactions, the company's brand identity, ownership and management in each channel.

Is an organization that carries out several EC activities, but does major business in the physical world.

E-Marketplace is an online marketplace where buyers and sellers meet to exchange goods, services, money, or information.

Learn  More

clicks and mortar : https://brainly.com/question/12914277

Details

Class: college

Subject: computers and technology

Keywords : clicks and mortar, Electronic Commerce, Electronic Business, E-Marketplace

IMUL & IDIV operate on
a. Two's complement number, b. one's complementnumber, c. all of the give option, d. none of these

Answers

Answer: a) Two's complement number

Explanation: IMUL that is referred as signed multiply which performs the multiplication operation of two operands and IDIV is the referred as the signed division which performs the division between two operands. They perform their action on the two's complement number because of their signed behavior otherwise unsigned multiplication(MUL) and division(DIV) are  also present for other numbers.

Describe a method for protecting users against URL obfuscation Attacks

Answers

Answer:

Anti-Phising softwares in stand alone systems connected to  a centralized database.

Explanation:

In order to protect oneself from URL obfuscation attacks one should install anti-phising software in their systems which is a software to warn users when exposed to obfuscation attacks. These software when connected contains a centralized database maintained which warns users when they try to access an effected URL. So upon clicking such URL the users are warned in their screen and thus provided with an option to return to their previous page.

Anti-phising software come handy in preventing such attacks while accessing certain URLs in their mails also.

int[] array1 = {1, 3, 5, 7}

for(int i =0; i if(array1[i] > 5)
System.out.println(i +" " + array1[i]);


Which indices are in bounds for the array array1, given thedeclaration above?

0, 1, 2,3
1, 2, 3,4
1, 3, 5,7
0, 1, 3,5

Answers

Answer:   0,1,2,3

Explanation:

The array contains 4 elements that is 1,3,5,7.So the size of the array is 4.The indexing in an array starts from 0 means the element at 0 index is the first element in the array So 1 is at the index 0 and the index will increase by 1 as we move right of the array.So 3 is at the index 1 ,5 is at the index 2 and 7 is at the index 3.So the indices are 0,1,2,3.

Suppose you create a new PricedApt class that is derived from the RentalApt class (so it's derived from a derived class). It adds one new double attribute, price, which tells what the monthly rental for the apartment is. Here is a constructor call for the class: PricedApt p = new PricedApt("jill", 900, true, "jack", 1050.00); The class is missing its constructor. In the box provided below, write the constructor in its entirety. public class PricedApt extends RentalApt { private double price;

Answers

// here i am writing C++ code

public class PricedApt extends RentalApt {

private double price;

RentalApt(firstname,price,b,lastname): PricedApt(firstname,b,lastname){

// As there is only one member in this class this means that every argument //coming to it is supposed to be passed to the parent class constructor.

// in c++ : operator is used to call the super class constructor

this.price = price;

}

}

Write a recursive method to return the number of uppercase letters in a String. You need to define the following two methods. The second one is a recursive helper method. public static int count(String str) public static int count(String str, int high) For example, count("WolFIE") returns 4.

Answers

Answer:

Recursive function with two parameters that return the number of uppercase letters in a String

public static int count(String str,int h)//Defining function

{

      if(str.charAt(0)>='A' && str.charAt(0)<='Z')//Checking the characters from A to Z

{

          h++; //incrementing the counter

          if(str.length()>=2){

              return count(str.substring(1),h);//recalling function

          }

      }

      if(str.length()>=2){

              return count(str.substring(1),h); //recalling function

      }

      return h;

  }

This is the recursive function with the name count of return type integer,having parameters str of string type and h of integer type.In this we are checking the characters at a particular position from A to Z.

Recursive function with one parameter that return the number of uppercase letters in a String

public static int count(String str)//Defining function

{

      if(str.charAt(0)>='A' && str.charAt(0)<='Z')//Checking the characters from A to Z

{

          count++; //incrementing the counter

          if(str.length()>=2){

              return count(str.substring(1));//recalling function

          }

      }

      if(str.length()>=2){

              return count(str.substring(1)); //recalling function

      }

      return count;

  }

This is the recursive function with the name count of return type integer,having parameters str of string type .In this we are checking the characters at a particular position from A to Z.

Java program that return the number of uppercase letters in a String

import java.util.*;

public class Myjava{

static int count =0;//Defining globally  

 

public static int count(String str,int h)//Defining function

{

      if(str.charAt(0)>='A' && str.charAt(0)<='Z')//Checking the characters from A to Z

{

          h++;

//incrementing the counter

          if(str.length()>=2){

              return count(str.substring(1),h);//recalling function

          }

      }

      if(str.length()>=2){

              return count(str.substring(1),h);

//recalling function

      }

      return h;

 

  }

  public static void main(String[] args)//driver function

  {

      System.out.println("Enter a string");//taking input

      Scanner scan = new Scanner(System.in);

      String s = scan.nextLine();

      int h =0;

      System.out.println("Counting the Uppercase letters: "+count(s,h));

  }

}

Output

Enter a string  WolFIE

Counting the Uppercase letters: 4

Final answer:

The question involves writing two methods to recursively count the number of uppercase letters in a String: a base method and a recursive helper method. The base method initiates the recursion with the string and its length, while the helper method implements the recursive logic, decrementing the count and checking for uppercase characters.

Explanation:

The question asks for the development of a recursive method to count the number of uppercase letters in a given string. This involves writing a base method count(String str) that initiates the recursion and a helper method count(String str, int high) which performs the actual recursive logic.

Method Definition

To achieve this, first, the base method needs to call the recursive helper method with the initial parameters - the string itself and the length of the string as the starting point. The recursive method will then decrement the count while checking for uppercase characters until it reaches the base case where the index (or high) is less than 0.

Example Implementation

public static int count(String str) {
   return count(str, str.length() - 1);
}

public static int count(String str, int high) {
   if (high < 0) {
       return 0;
   } else {
       int count = Character.isUpperCase(str.charAt(high)) ? 1 : 0;
       return count + count(str, high - 1);
   }
}

In this example, count("WolFIE") will indeed return 4, as it correctly identifies 'W', 'F', 'I', 'E' as uppercase letters.

Write a program the will convert Celsius to Fahrenheit or the other way.The user is asked to enter a floating point number.The user should be asked to select the conversation that will be performed.The menu should look like the following:

C-----From Celsius to Fahrenheit
F-----From Fahrenheit to Celsius

Answers

Answer:

Output

Temperature Converter

C-----From Celsius to Fahrenheit

F-----From Fahrenheit to Celsius

Enter your choice (C or F):  

C

Enter temperature in Celsius:  

45

Temperature in Fahrenheit: 113.0 °F

Explanation:

Below given is a java code that will convert Celsius to Fahrenheit or the other way:-

import java.util.Scanner;

public class TemperatureConvertor {

public static void main(String[] args){

 double celsius=0.0;

 double fahrenheit=0.0;

 String choice;

 Scanner input=new Scanner(System.in);

 System.out.println("Temperature Convertor");

 System.out.println("C-----From Celsius to Fahrenheit");

 System.out.println("F-----From Fahrenheit to Celsius");

 System.out.println("Enter your choice (C or F): ");

 choice=input.next();

 if(choice.equals("C")){

  System.out.println("Enter temperature in Celsius: ");

  celsius=input.nextDouble();

  fahrenheit=((9*celsius)/5)+32;

  System.out.println("Temperature in Fahrenheit: "+fahrenheit+" °F");

 }else if(choice.equals("F")){

  System.out.println("Enter temperature in Fahrenheit: ");

  fahrenheit=input.nextDouble();

  celsius=(5*(fahrenheit-32))/9;

  System.out.println("Temperature in Celcius: "+celsius+" °C");

 }else{

  System.out.println("Wrong choice !!!");

 }

 

}

}

The value of a default argument must be a(n) _________.

Answers

Answer:

Constant

Explanation:

A default argument is a value provided in a function declaration that the compiler automatically assigns if the function caller does not provide a default value for the argument.

The value of a default argument must be constant.

The default value parameter must be a  constant for compiling. Compiler does not accept dynamically calculated value against optional parameter. The reason behind this it is not certain that the dynamic value you provide would offer some valid value.

Example:

#include<iostream>  

using namespace std;  

/*A function with default arguments, it can be called upto 4 arguments*/

int sumnum(int x, int y, int z=0, int w=0)  

{  

return (x + y + z + w);  

}  

int main()  //driver function

{  

cout << sumnum(10, 15) << endl;  

cout << sumnum(10, 15, 25) << endl;  

cout << sumnum(10, 15, 25, 30) << endl;  

return 0;  

}

Output

25

50

80

Describe business benefits of using wireless electricity?

Answers

Answer:

To put it simply, the main benefit for a business to use wireless electricity is money.

Explanation:

Assuming that the company in question can solve specific hurdles such as Microwave Interference and Implementation costs. Then they would save a huge amount of money in the mid to long term since wireless electricity needs very little landscape and does not need cables and transmitting towers as opposed to traditional electrical systems.

Hope you have found this explanation helpful and If you have any more questions please feel free to ask them here at Brainly, We are always here to help.

Wireless electricity offers businesses enhanced reliability, reduced transmission losses, and operational flexibility. Smart Grid principles further improve efficiency and optimize energy usage. These benefits lead to greater cost savings and improved service reliability.

Wireless electricity offers several significant advantages for businesses:

Enhanced Reliability: Generating electricity at the point of use enhances the reliability of the electricity supply, ensuring that critical circuits remain powered during grid outages.Reduced Transmission Losses: By avoiding the need to convey electricity from central power generators to urban loads, businesses can eliminate energy losses typically around 7% due to transmission inefficiencies.Operational Flexibility: Wireless operations enable services and applications that are simply impossible or impractical with wired systems, especially for long-range communications and distributed electricity production.

Implementation and Efficiency

Future electrical transmission and distribution systems will become more efficient with the implementation of "Smart Grid" principles. These grids use smart meters and time-of-use pricing to optimize energy consumption during non-peak times, such as using electricity at night for heating water or charging electric vehicles, which can help level load and reduce peak demand.Moreover, transmitting electricity at high voltage and low current over long distances with wireless technology minimizes energy losses due to resistance heating, known as Joule heating, thus making the entire process more energy-efficient.

Consumer Advantages

Changes in equipment and usage patterns at the consumer end to allow for increased efficiencies, improved reliability, and lower energy costs are expected to benefit businesses greatly. For instance, ice-making air conditioning systems that operate during non-peak hours can provide cooling during peak demand hours, contributing to overall efficiency and cost savings.

The process known as AAA (or “triple A”) security involves three components. _____________ means ensuring that an authenticated user is allowed to perform the requested action.

Answers

Answer:

The process known as AAA (or “triple A”) security involves three components. Authorization means ensuring that an authenticated user is allowed to perform the requested action.

The process known as AAA (or “triple A”) security involves three components. Authorization means ensuring that an authenticated user is allowed to perform the requested action.

What is access control?

By validating various login credentials, such as passwords and usernames PINs, biometric scans, and tokens, access control identifies users. A type of credential known as an authentication factor is one that is used to verify, often in conjunction with other factors.

Multifactor Authentication is a technique that needs multiple authentication methods to validate a user's identity is another feature found in many access control systems. The three AAA are authentication, authorization, and accounting.

Therefore, authorization refers to confirming that a user who has been authenticated is permitted to carry out the specified action.

To learn more about authentication, refer to the below link:

https://brainly.com/question/13553677

#SPJ2

Data mining is becoming increasingly common in both theprivate and public sectors. Discuss

What do you understand by DATA MINING?
Study and discuss where and how DM can beused?

Answers

Answer:

Data Mining is the process of getting important data from the given set of large amount of data based on some attributes and dimensions

Explanation:

Data Mining can be used in all kind of organizations to take some important decisions based on historical data

If the data needs to be processed in a First In First Out (FIFO) manner, we typically use a(n) ____.

A.
stack

B.
queue

C.
map

Answers

Answer:

B. queue

Explanation:

If the data needs to be processed in a First In First Out (FIFO) manner, we typically use a queue.

You are to create a program using Python that asks the user for a nonnegative number, then computes the mean and variance using the above given online update formulas which should be displayed on the console screen. The program should end when a user enters a negative number.

Answers

Answer:

# In the new version of python is available the functions mean() an variance()

# In the module of statistics

i = 0 #Var to input the elements

l = [] #Var to store the elements on a list

while(i>0):

    print("In put a positive number to add in the list or negative to exit ")

    i = input()

    l.append(i)

    print("The mean of the all elements is: " + mean(l) )

    print("The variance of the all elements is: " + variance(i) )

Explanation:

At present, you can use in the news python's verison e.g. (python 3.7) the statistics module and use functions like mean(), variance(), stdev() and many others.

In the first step you create two variables, i to recieve the inputs of a loop and l to store all the elements recieved in the i variable. after that you pass as an argument the list that you stored before and get the mean() and variance() of the all elements in the list.

I hope it's help you.

Write a program which will ask the user to input a floating point number corresponding to temperature. We will assume the temperature was in Celsius degrees and display its equivalent in Fahrenheit degrees after computing it using the following formula Fahrenheit = ( 9.0 / 5.0 ) * Celsius + 32

Answers

// writing c++ code...

// taking input

cout<< " Enter the floating point number : ";

cin>>fnumber;

// calculating the Fahrenheit temp

far_temp= (9.0/5.0) * fnumber +32;

cout<<" Fahrenheit = "<< far_temp;

What is the decimal number of binary number 1101011 if the binaryis represented as a(n)
a. Unsigned integer
b. Signed magnitude integer
c. One’s complement integer
d. Two’s complement integer
e. ASCII character

Answers

Answer:

a. Unsigned integer  107

b. Signed magnitude integer  -43

c. One’s complement integer  -20

d. Two’s complement integer  21

e. ASCII character k

Explanation:

a) For unsigned integer,

   We put this value in representation of binary and put binary number in it.

   we will place 1, 2, 4, 8, 16, 32, 64, 128 ...(powers of two)

                         64  32  16  8  4  2  1

                           1     1    0   1   0   1   1        

The positions at 1 is present,we will add those numbers.In this                (64+32+8+2+1) =107 is there.

So,107 will be the representation.

b)For signed magnitude integer,

  The representation is just the same,but as signed integers the first bit represent the negative number.

                         64  32  16  8  4  2  1

                           1     1    0   1   0   1   1    

The first bit is for Negative(-),then we will add other number where 1 is present.In this (32+8+2+1)=43.We will add (-) due to signed integers.

So,-43 will be the representation.

c) For One's complement integer,

We will compliment the bits of binary number.At the place of 1 ,place 0 and at the place of 0,place 1.

                             1     1    0   1   0   1   1    

    Compliment   0   0    1   0  1   0   0    

Then,We put this value in representation of binary and put binary number in it, we will place 1, 2, 4, 8, 16, 32, 64, 128 ...(powers of two)                

                         64  32  16  8  4  2  1

                          0   0    1   0  1   0   0  

The positions at 1 is present,we will add those numbers.In this (16+8)=20    we will put negative at the starting because of the compliment

So, -20 will be the representation.

d)For Two's complement integer,

After compliment of bits At the place of 1 ,place 0 and at the place of 0,place 1.Then,we add 1 bit to the Least significant bit(Lsb).

                             1     1    0   1   0   1   1    

   Compliment     0   0    1   0  1   0   0    

 Add 1 to Lsb       0   0    1   0  1   0   0

                                                       +   1

   Number           0   0    1   0  1   0   1

Then,We put this value in representation of binary and put binary number in it, we will place 1, 2, 4, 8, 16, 32, 64, 128 ...(powers of two)                

                         64  32  16  8  4  2  1

                          0   0    1   0  1   0   1  

The positions at 1 is present,we will add those numbers.In this (16+8+1)=21

So,21 will be the representation.

e. For ASCII character,

First,convert it into decimal

  We multiply bits with 2^n,from ascending numbers to 0 to (n-1),and add them

           =   1 * 2^6 + 1*2^5 + 0* 2^4 + 1*2^3 + 0* 2^2 + 1*2^1 + 1* 2^0  

              =   64+32+8+2+1

                =  107

Then,we check in Ascii table 107 decimal number's position ,k is there.

So,k will be the representation.

What is Service Oriented architecture & How is it different form Object Oriented Middleware?

Answers

Answer: This can be explained s follows :-

Explanation: The approach in which services available in the network are used by the applications is called service oriented architecture. In such structure a business function is provided by each service that is independent of other services.

Object oriented programming is a programming paradigm. OOP can be used outside of that architecture or it can be apart of SOA as well .

Other Questions
In the mid-1800s, Northerners used the term slave power to criticize whatthey believed to be the excessive political influence of which group of people?OA. Foreign slave tradersOB. Freed slavesOC. Southern slave ownersD. Antislavery activists Why were attempts at railroad regulation often unsuccessful? In discussing descending pathways, we talked about neurons whose conductile processes are in the internal capsule. These neurons:a. have their cell bodies in the dorsal horn of the spinal cordb. have their cell bodies in the precentral gyrus of the cerebral cortexc. have their cell bodies in the ventral horn of the spinal cordd. have their cell bodies in the postcentral gyrus of the cerebral cortex Read an excerpt from "Television and the Public Interest" and answer the question. The speech was delivered by Newton N. Minow, chairman of the Federal Communications Commission, to the nations television executives in 1961.[1] But when television is bad, nothing is worse. I invite each of you to sit down in front of your television set when your station goes on the air and stay there, for a day, without a book, without a magazine, without a newspaper, without a profit and loss sheet or a rating book to distract you. Keep your eyes glued to that set until the station signs off. I can assure you that what you will observe is a vast wasteland.[2] You will see a procession of game shows, formula comedies about totally unbelievable families, blood and thunder, mayhem, violence, sadism, murder, western bad men, western good men, private eyes, gangsters, more violence, and cartoons. And endlessly, commercialsmany screaming, cajoling, and offending. And most of all, boredom. True, you'll see a few things you will enjoy. But they will be very, very few. And if you think I exaggerate, I only ask you to try it.[3] Is there one person in this room who claims that broadcasting can't do better? Well a glance at next season's proposed programming can give us little heart. Of 73 and 1/2 hours of prime evening time, the networks have tentatively scheduled 59 hours of categories of action-adventure, situation comedy, variety, quiz, and movies. Is there one network president in this room who claims he can't do better?[4] The best estimates indicate that during the hours of 5 to 6 P.M. sixty percent of your audience is composed of children under twelve. And most young children today, believe it or not, spend as much time watching television as they do in the schoolroom. I repeatlet that sink in, ladies and gentlemenmost young children today spend as much time watching television as they do in the schoolroom. It used to be said that there were three great influences on a child: home, school, and church. Today, there is a fourth great influence, and you ladies and gentlemen in this room control it.[5] If parents, teachers, and ministers conducted their responsibilities by following the ratings, children would have a steady diet of ice cream, school holidays, and no Sunday school. What about your responsibilities? Is there no room on television to teach, to inform, to uplift, to stretch, to enlarge the capacities of our children? Is there no room for programs deepening their understanding of children in other lands? There are some fine children's shows, but they are drowned out in the massive doses of cartoons, violence, and more violence. Must these be your trademarks? Search your consciences and see if you cannot offer more to your young beneficiaries whose future you guide so many hours each and every day [6] You must provide a wider range of choices, more diversity, more alternatives. It is not enough to cater to the nation's whims; you must also serve the nation's needs. And I would add this: that if some of you persist in a relentless search for the highest rating and the lowest common denominator, you may very well lose your audience. Because the people are wise, wiser than some of the broadcastersand politiciansthink.What type of evidence does Minow use to develop the idea that television executives have a responsibility to provide better programming for children? By describing an example of people who are refusing to watch their televisions By giving statistics that show how childrens grades suffer after watching television By including expert testimony from a network television programmer By providing facts about the how many hours children watch television On an average work day, 160 cars go through a toll booth per hour.The driver of each car pays a $1.50 toll how much money is collected in toll in 8 hours Dynamothermal (regional) metamorphism occurs when ________. a. the upper surface of a body of rock develops a thick soil profile b. a pluton causes metamorphism in a small surrounding region c. regression of the sea leads to erosion of sedimentary cover on a body of rock d. rock becomes deeply buried during continental collision and mountain building A cashier has 54 bills, all of which are $10 or $20 bills. The total value of the money is $910. How many of each type of billdoes the cashier have? Which statement best applies to the slope of the line below?A the slope is negativeB. the slope is zeroC.the slope is positiveD. the line has no slope What is the optimal solution for the following problem?MinimizeP = 3x + 15ysubject to2x + 4y ? 125x + 2y ? 10andx ? 0, y ? 0.(x, y) = (2, 0)(x, y) = (0, 3)(x, y) = (0, 0)(x, y) = (1, 2.5)(x, y) = (6, 0) The correct conversion from metric system to household system isA. 5 ml equals 1 tablespoonB. 15 ml equals 1 teaspoonC. 30 ml equals 1 fluid ounceD. 500 ml equals 1 measuring cup Find the height of the given pyramid. How did the soviets win at stalingrad help advance the allies europe first strategy? The most prevalent category of observation study is _____ observation. A. linguisticB. extralinguisticC. spatialD. nonverbalE. digital The vapor pressure of water is 23.76 mm Hg at 25 C. A nonvolatile, nonelectrolyte that dissolves in water is sucrose. Calculate the vapor pressure of the solution at 25 C when 12.25 grams of sucrose, C12H22O11 (342.3 g/mol), are dissolved in 176.3 grams of water. water = H2O = 18.02 g/mol. When discussing cholesterol levels with a patient, which of the following is desirable?High cholesterol, low HDLHigh LDL, low cholesterolHigh cholesterol, high LDLHigh HDL, low LDLHigh HDL, High LDL A researcher wants to make a 99% confidence interval for the population proportion. The most conservative estimate of the sample size that would limit the maximum error of estimate to within .05 of the population proportion is at least: (A) 1274 (B) 666 (C) 26 (D) 1128 To fill out a function's ___ ___, you will need to use test numbers before and after each of the function's ___ and asymtopesA). Sign chart; ValuesB). rational equation; valuesC). sign chart; zeroesD). rational equation; zeroes Research conducted by Edward Prescott of Arizona State University, and Edward Glaeser of Harvard University along with Bruce Sacerdote of Dartmouth College indicate that the effects of supply-side policies A. are, as of now, unclear and require more careful study. B. have little or no effect at all. C. are clearly defined and small. D. are clearly defined and substantial. Whos the best villain of all time and why? A group of entomologists has determined that the population of ladybugs at a local park can be modeled by the equation y = 1.437 x + 197.686 , where x represents the number of years since 2010 and y represents the number of ladybugs, in thousands. a) Predict the ladybug population at the park in 2024. b) Predict the ladybug population at the park in 2060.