1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
mestny [16]
2 years ago
9

What is the function of a primary key in a table? to uniquely identify each record in the table to uniquely identify foreign key

s in the table to secure table data to secure the foreign keys in the table
Computers and Technology
1 answer:
aev [14]2 years ago
6 0

Answer:

A. To uniquely identify each record in the table

brainliest pls?

You might be interested in
Which describes the relationship between enterprise platforms and the cloud?
AlladinOne [14]

Answer:

All enterprise platforms are cloud based.

4 0
3 years ago
Given that a function receives three parameters a, b, c, of type double, write some code, to be included as part of the function
Ray Of Light [21]

Answer:

The function, having three double parameters, for the given scenario in c++ is given below.

void calc(double a, double b, double c)

{

   double res, s;

   s = b*b;

   res = s - (4*a*c);

   if(res < 0)

       cout << "no real solutions" << endl;

}

Explanation:

A function is declared as follows.

return-type function-name (parameter1, parameter2, … )

1. The return-type can be void or any other data type in c++ language. Void indicates that the function does not returns anything. Other data types indicate that the function returns a value of that particular data type.

2. Here, the return type is taken as void since question does not asks to return any value from the function.

3. The function-name is the name of the function. The naming conventions are similar to those defined for variables in c++.

4. The brackets following the function-name consists of the parameters. The parameters are optional and the bracket can be empty.

5. The parameters are declared in the same way as the normal variables.

The function executes as explained.

1. The function calc() receives three double parameters a, b and c.

2. No user input is taken inside the function.

3. Two additional variables are declared which are used as given below. These variables are also declared as double.

4. Square of value in variable b is stored in the variable, s.

5. The final value of the expression, s - 4ac (equivalent to b squared – 4ac), is stored in the variable, res.

6. If the value of variable res is less than 0 or negative, the function displays a message, “no real solutions” to the standard output.

7. If the value of variable res is more than or equal to 0, the function does not display any message to the standard output.

8. As per the question, message should be displayed only for the negative value of the expression.

4 0
3 years ago
High quality information pages, such as Wikipedia articles and IMDb pages, should always get a rating of Highly Meets. (T/F)
deff fn [24]

Answer:

The correct answer to the following question will be "True".

Explanation:

Surely, indeed, heavy-quality information sites including such articles on Wiki and IMDb pages should earn an extremely-meets rating. That's because such pages are genuinely insightful and easy to understand.

Therefore, the given statement is true.

6 0
3 years ago
_____ are Internet-based companies specializing in securing the electronic transfer of funds.
ira [324]
I am not exactly sure but I believe it would be Cybermediaries, They act as a third party for the transfer of funds. examples being online insurance and real estate brokers. 
7 0
4 years ago
Given an array of integers a, your task is to calculate the digits that occur the most number of times in the array. Return the
Annette [7]

Answer:

I hope this should be helpful

Explanation:

In Javascript

function solution(numbers) {

   let hashmap = {};

   let ans = [];

   for (let i = 0; i < numbers.length; i++) {

     // check wether it double or single digit

     if (hasOneDigit(numbers[i])) {

       // check if it exists in hashmap

       // if exist add number of occurence

       // check if the occurence is greater than 2

       // add  if > 2 to the answer list

       if (numbers[i] in hashmap) {

         hashmap[numbers[i]] = hashmap[numbers[i]] + 1;

 

         if (hashmap[numbers[i]] = 2 && !ans.includes(numbers[i])) {

           // max_freq = hashmap[numbers[i]]

           ans.push(numbers[i]);

         }

         // else if (max_freq == hashmap[numbers[i]])

         //     ans = min(ans, numbers[i])

       } else {

         hashmap[numbers[i]] = 1;

       }

     } else {

       // change number to string

       number = numbers[i].toString();

       // loop to iterate every single element

       for (let j = 0; j < number.length; j += 1) {

 

         if (+number.charAt(j) in hashmap) {

           hashmap[+number.charAt(j)] = hashmap[+number.charAt(j)] + 1;

 

           if (hashmap[+number.charAt(j)] = 2 && !ans.includes(+number.charAt(j))) {

     

             ans.push(+number.charAt(j));

           }

       

         } else {

             hashmap[+number.charAt(j)] = 1

         }

       }

     }

   }

     return ans.sort();

 }

 

 function hasOneDigit(val) {

   return String(Math.abs(val)).charAt(0) == val;

 }

 console.log(solution([2, 1,42,44, 2, 3,32,7777, 3 , -1]));

 

3 0
2 years ago
Other questions:
  • What is a good monitor for console gaming? (Any price)
    13·2 answers
  • While driving you encounter an emergency vehicle stopped ahead. Discuss how the move over law applies to this situation and your
    13·1 answer
  • Which of the following statements is false? a. Racks and bins are examples of storage equipment. b. Automation refers to equipme
    9·1 answer
  • What can emulate a fully configured PC or server?
    15·1 answer
  • Do you like Houseparty?
    7·1 answer
  • The number of pixels displayed on the screen is known as ​
    12·1 answer
  • D) Informal high level descuption of an algorithm in english kcalled
    9·2 answers
  • What is the acronym DOS in full
    15·1 answer
  • Write a recursive function is_pow2(n) that returns True if the positive integer n is an integer power of 2, and False otherwise.
    9·1 answer
  • A large retail company hires several new joiners and would like to incorporate Virtual Reality (VR) into their onboarding proces
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!