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
PilotLPTM [1.2K]
2 years ago
11

What is the output of the code snippet given below?string s = "abcde";int i = 1;while (i < 5){ cout << s.substr (i, 1);

i++;}a. no outputb. abcdc. abcde d. bcde
Computers and Technology
1 answer:
Ronch [10]2 years ago
4 0

Answer:

The answer is "Option d".

Explanation:

In the given C++ program code, two-variable is defined, that is "s and i", in which variable s is a string type that holds a value, that is "abcde", and variable i is an integer type, that holds a value '1'.

  • In the next line, a while loop is declared, that uses integer variable which value is less than 5, inside a loop a substring function is used, that specifies the number of character and return its value.  
  • In array and string indexing starts from 0, and that variable i starts from 1, that is used in substring function, that's why it will print only "bcde".
You might be interested in
A metallic reflector provides what kind of bounced light
katen-ka-za [31]
<span>a reflector is an improvised or specialised reflective ... Also known as plane reflectors, "flats" or bounce boards, this kind of reflector is located independent of a light source; ... Hence bounce lighting may provide either the primary or secondary (fill) light source, depending on its intensity.</span>
5 0
2 years ago
What is the nmap command line syntax for running an ms08-067 vulnerability scan against 172.30.0.30 (targetwindows04)?
IceJOKER [234]

The command line syntax is

nmap –script=smb-check-vulns –script-arg=unsafe=1 -p445 172.30.0.30

6 0
3 years ago
Examples of vocational school programs include:
hodyreva [135]
The Answer to this question is

<span>Vocational courses and classes are offered by a number of institutions. Many high schools offer basic vocational education, such as home economics, woodshop, and auto repair. Vocational educational institutions vary by state, but most postsecondary vocational instruction is offered by private career schools.</span>

Im saying this because i have taken computer courses and learned about this stuff.  Also, I have it in my notebook full of this info.

Hope This Helps!
Have A Great Monday!
:D
7 0
3 years ago
Which of the following is recognition that data used by an organization should only be used for the purposes stated by the infor
uranmaximum [27]

Answer:

A. Accountability

Explanation:

Data accountability refers to a situation whereby an organization takes responsibility of what is being done with data and how compliant they are to the principles guiding the data. It refers to recognizing the fact that data is being used for the stated purposes by the owner of the data at the time it was collected.

Data confidentiality simply refers to protecting the data against unauthorized, illegal, unlawful usage or access.

Data privacy refers to an organization controlling what data has to be shared with an external factor.

Data availability ensures that data is readily available and accessible when needed.

The best option is accountability.

8 0
3 years ago
How tractors are controlled
Ivan

Answer:

Tractors are controlled manually (driven manually) most especially in the rural areas but automated when it can be afforded with other machinery attached to it

Robotics and Automation have merged tasks in field eg automated irrigation system

from large sophisticated tools to reduced size ones

Farming productivity and efficiency has changed seriously as a result of automation and robotics as work is being done faster and smarter

6 0
3 years ago
Read 2 more answers
Other questions:
  • Read the scenario and answer the question. Audrey had problems with her computer software recently. One of her programs shut dow
    12·2 answers
  • The part of the poppet valve that contacts the valve seat is called the A. face. B. margin. C. head. D. stem.
    6·2 answers
  • Python program: Develop a program that will keep track of inventory for a local retail store. Fortunately, the store only offers
    7·2 answers
  • Materials such as copper, silver, and aluminum through which electric energy passes freely are called
    13·1 answer
  • Which wireless communication technology is most likely used when synchronizing device information to an automobile?
    14·1 answer
  • The continue statement _________.
    11·1 answer
  • The house belives that works should be compensated for the loss of jobs due to automation? Describe it in against motion of the
    15·1 answer
  • Suppose you have two tables: officer and gentleman. what question(s) can be asked by using the union operator?
    11·1 answer
  • Web résumés allow you to include extra graphics and images that you would not include in a traditional résumé. please select the
    13·1 answer
  • What does AU stand for in computer?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!