answer.
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
ruslelena
2 months ago
5

A have a string, called "joshs_diary", that is huge (there was a lot of drama in middle school). But I don't want every one to k

now that this string is my diary. However, I also don't want to make copies of it (because my computer doesn't have enough memory). Which of the following lines will let me access this string via a new name, but without making any copies?
a. std::string book = joshs_diary;
b. std::string & book = joshs_diary; const
c. std::string * book = &joshs_diary;
d. std::string book(joshs_diary);
e. const std::string & book = joshs_diary;
f. const std::string * const book = &joshs_diary;
g. std::string * book = &joshs_diary;
Computers and Technology
1 answer:
maria [1K]2 months ago
5 0

Answer:

C and G

Explanation:

In the C programming language, the symbols ' * ' and ' & ' are utilized to create pointers and access references to those pointers, respectively. The ' * ' is used in conjunction with specific identifiers to define a pointer to a variable's location in memory, whereas the ' & ' is always positioned in front of a variable as an r_value for the specified pointer.

You might be interested in
CHALLENGE ACTIVITY 2.15.1: Reading and outputting strings. Write a program that reads a person's first and last names, separated
Harlamova29_29 [1022]

Response:

#include <iostream>

using namespace std;

int main()

{

   string Fname, Lname;

   cout << "Please enter your first name " <<"Please enter your last name" <<endl;

   cin>>Fname>>Lname;

   cout<<Lname<<", "<<Fname<<endl;

   return 0;

}

Clarification:

This code is coded in the C++ programming language. To begin with, two string variables are declared, namely Fname and Lname for the first and last names, respectively. The C++ cout function is utilized to ask users for their inputs, while the cin function takes in user inputs and stores them in the corresponding variables. The cout operator (<<) arranges the output in accordance with the specification given in the question

8 0
2 months ago
Firewalls are categorized into two; namely hardware firewall and software firewall. Identify the correct statement for a softwar
oksian1 [950]

Response:

Option (d) Software firewall is positioned between standard applications and the networking components of the operating system

Justification:

  • Software Firewalls safeguard computers against trojans and harmful content that may arise from insecure applications.
  • They also protect the system from threats originating from external networks.
  • The firewall checks data transmission to and from software applications on the desktop.
  • It similarly monitors data traffic to and from networks.
  • This protection is crucial to ensure that the system does not lose access to potential attackers.
  • It is adaptable software that requires consistent management, including updates and storage oversight.
  • Using a Software Firewall alongside a Hardware Firewall is essential for securing desktops and networks.
5 0
1 month ago
You have configured your firewall to authenticate a group of 100 users who are in your company. You set up the database of users
zubka84 [1067]
Network Access Control (NAC) is essential to ensure that the network is accessed only by authenticated users. It verifies the identity of users, granting network access solely to those who are verified. Various NAC solutions such as Impulse SafeConnect, Extreme Networks, ExtremeControl, Auconet BICS, ForeScout CounterACT, and Pulse Policy Secure can be integrated into the system. By implementing basic profiling, these solutions ensure that only authenticated users engage with the network. Additionally, employing encryption-decryption algorithms can enhance security. Algorithms like RSA and DES can be utilized for encrypting data from the database effectively. Once the information reaches the network component, it can be decrypted by generating the necessary key through the same algorithm. This method ensures that only authorized users can access sensitive information while also preventing data leaks during transmission due to encryption.
4 0
1 month ago
Which of the following is a true statement about cloud computing?
amid [951]

There are heightened security challenges linked with cloud computing as opposed to local data storage.

Explanation:

Cloud computing: This term refers to accessing and storing different programs and data over the internet instead of on a computer's "hard drive". The word "cloud" serves as a metaphor for the internet.

Categories:

1. Software-as-a-Service (SaaS).

2. Platform-as-a-Service (PaaS).

3. Infrastructure-as-a-Service (IaaS).

In this context, the first option is correct because the other choices do not pertain to cloud computing.

3 0
3 months ago
A technique that’s used to route traffic to different destinations, depending on factors like location, congestion, or link heal
amid [951]
A method used to guide traffic to various destinations based on considerations like location, congestion, or link health is termed Anycast. It ranks among the top five techniques for Internet traffic routing, alongside unicast, broadcast, multicast, and geocast.
4 0
1 month ago
Read 2 more answers
Other questions:
  • Sites like Zillow get input about house prices from a database and provide nice summaries for readers. Write a program with two
    12·1 answer
  • You're installing two new hard drives into your network attached storage device. Your director asks that they be put into a RAID
    15·1 answer
  • Describe a strategy for avoiding nested conditionals. Give your own example of a nested conditional that can be modified to beco
    11·1 answer
  • PLEASE HELP!!~~
    7·1 answer
  • U.S. industries like steel, computers, and energy need to be protected from foreign competition to ensure which of the following
    6·2 answers
  • Input a number [1-50] representing the size of the shape and then a character [x,b,f] which represents the shape i.e. x-&gt;cros
    9·1 answer
  • As part of the duties of a digital forensics examiner, creating an investigation plan is a standard practice. Write a 3 to 4 (no
    9·1 answer
  • For any element in keysList with a value greater than 50, print the corresponding value in itemsList, followed by a space. Ex: I
    8·1 answer
  • Write a complete Java program that: Prompts an employee to enter the number of hours that they have worked in a given week and s
    14·1 answer
  • Scrum teams use short iterations to receive quick feedback from customers. What is the name for this timeboxed iteration?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!