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
sleet_krkn [62]
3 years ago
11

A. True

Computers and Technology
1 answer:
SVEN [57.7K]3 years ago
3 0
<span>b. False. c-strings is a legacy data type to maintain backwards compatibility between C and C++. A c-string is simply a character pointer to a flat array of characters. And a c-string is generally terminated by a NUL character (NUL is a 0 value). A string object on the other hand is a fully defined object type and has operators assigned to it. For example, assume that a, b, and c are string objects with a having the value "Hello " and b having the value "World!". You can write the statement c = a + b; And after execution, the object c will have the value "Hello World!" But if you attempted to do the same thing with c-string, you would at best get a compile time error.</span>
You might be interested in
What is a device that connects to the system unit and is controlled by the processor in the computer called !
Airida [17]
Most computers have three types of ports: serial, parallel, and USB. A serial port is a type of interface that connects a device to the system unit by transmitting data only one bit at a time. Serial ports usually connect devices that do not require fast data transmission rates, such as a mouse, keyboard, or modem.
4 0
3 years ago
Any suggestions on how to write the following Python code?
Ksju [112]

Answer:

Hi

Explanation:

6 0
3 years ago
Analysts use _____ to show the objects that participate in a use case and the messages that pass between the objects over time f
ch4aika [34]

Answer:Sequence diagrams

Explanation: Sequence diagram is the diagram that displays about the connection of the objects in a sequential manner. The sequence depicted through the vertical lines in parallel form was about the object function and the horizontal line showed interaction between them for the exchange of the information.

Other options are incorrect because structural models have the infrastructure in particular format, communication diagrams depicts the exchange of information through communication and class diagram is the diagram that displays the system's class.Thus the correct option is sequence diagram.

5 0
3 years ago
Write a regular expression pattern that matches strings representing trains. A single letter stands for each kind of car in a tr
MAVERICK [17]

Answer:

See explaination

Explanation:

import re

def isValidTrain(train):

pattern = r'^E+(((P|PP|PPP|PPPP)D)*(BB)*)*C$'

if re.match(pattern, train):

return True

return False

def checkAndPrintTrain(train):

print("Train", train, "is valid:", isValidTrain(train))

checkAndPrintTrain("EC")

checkAndPrintTrain("EEEPPDBBPDBBBBC")

checkAndPrintTrain("EEBB")

checkAndPrintTrain("EBBBC")

checkAndPrintTrain("EEPPPPPPDBBC")

checkAndPrintTrain("EEPPBBC")

checkAndPrintTrain("EEBBDC")

Sample output

Train EC is valid: True

Train EEEPPDBBPDBBBBC is valid: True

Train EEBB is valid: False

Train EBBBC is valid: False

Train EEPPPPPPDBBC is valid: False

Train EEPPBBC is valid: False

Train EEBBDC is valid: False

6 0
3 years ago
Write three statements to print the first three elements of array runTimes. Follow each statement with a newline. Ex: If runTime
Lady_Fox [76]

Answer:

Following are the program in c language

#include <stdio.h> // header file

int main() // main function

{

  int runTimes[5]={800,775,790,805,808}; // declared the array

  for (int k = 0; k < 3; k++) // itearting the loop

  {

     printf("\n%d",runTimes[k]); // display array

  }

  return 0;

}

Output:

800

775

790

Explanation:

Following are the description of program

  • Declared a array "runTimes[5]" as the" int " type and store the five integer value in it .
  • After that iterating the for loop from the 0 index to the less then 3 index .
  • Inside the for loop we print the corresponding value that are stored in the particular index in the nextline .
5 0
3 years ago
Other questions:
  • Assume that a kernel is launched with 1000 thread blocks each of which has 512 threads. If a variable is declared as a shared me
    6·1 answer
  • The java class library interface queue method tagg retrieves the entey at the front of a queue but themrows a NosuchElementExcep
    6·1 answer
  • Binary code what does this mean I was sick so I don't under stand
    7·2 answers
  • Whether you work in m-commerce, e-commerce, or brick-and-mortar commerce, to be successful you will need to be able to think cri
    15·1 answer
  • If you were any type of fnaf charater who would you be and why?
    10·2 answers
  • I will give brainliest!!!
    13·1 answer
  • 1.1 Why is primary goal of software development now shifting from
    7·1 answer
  • 1. why is manufacturing considered the biggest contributor to progress
    9·1 answer
  • Design an Application called Student Course Management create interface called Student Course add an abstract method called ad C
    10·1 answer
  • A file has TWo parts name them
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!