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
Gnesinka [82]
3 years ago
3

What behavior do elements in a stack follow? first in, last out, or FILO behavior last in, first out, or LIFO behavior first in,

first out, or FIFO behavior last in, last out, or LILO behavior
Computers and Technology
2 answers:
xxMikexx [17]3 years ago
8 0

Answer:

Either First-in-last-out (FILO) or Last-in-first-out (FILO)

Explanation:

A stack is a data structure that implements the First-in-last-out (FILO) or Last-in-first-out (FILO) modality. FILO and LIFO are literally the same. They are just alternative ways of saying the same thing. In a stack, the element that is stored in last is retrieved first (LIFO). This also means that the element that is first stored in can be retrieved last.

FIFO which is similar to LILO is used in data structures such as queues but not in stacks.

lakkis [162]3 years ago
5 0

A stack item behaves like Last In First Out, which is equivalent to First In Last Out.

FIFO and LILO are also equivalent, but they describe a queue.

You might be interested in
Write a C Program to Print the initial letter of Name Ferdous
Murrr4er [49]

Answer:

The answer to this question is given below in the explanation section.

Explanation:

The question is about writing a C program that prints the initial letter of Name Ferdous.

Therefore, below is the given complete code that prints the first letter of the name Ferdous.

<em>#include <stdio.h> </em><em>/*import strandard input/output library*/</em>

<em>#include<string.h></em><em> /*import string library to handle string type of data*/</em>

<em> </em>

<em>int main(void) </em><em> /*started the program execution- program entry point*/</em>

<em>{ </em>

<em>char *str = "Firdous";</em><em>   /*char to pointer str contains string "Firdous"*/</em>

<em>int len = strlen(str);  </em><em> /*this line of code is not neccary, but if you print other character for example last character of the name then you can use it*/</em>

<em>printf("First Letter of the name is: %c", str[0]); </em><em>  /*print first letter of the name*/</em>

<em>} </em><em>  /**program terminated*/</em>

5 0
3 years ago
If you omit the filename from a URL, the Apache web server displays a list of files and directories if the specified directory d
g100num [7]

Answer:

Default File

Explanation:

When a website is visited from a web browser without the explicit specification of the complete path of the file with the URL, the webserver will look for the file named index.html or index.php from the public_html files and render the contents of the file.

The name index. html or index.php is commonly used for the default page which is the page displayed to a visitor that does not specify a particular page for example (mysite/contact_us), so if the file path "contact_us" is omitted, the visitor will be taken to the "index" also known as the home page of "mysite".

6 0
3 years ago
Write the printItem() method for the base class. Sample output for below program:
Anna [14]

Answer:

The printItem() method code is filled in the explanation, highlighted with bold font.

Explanation:

// ===== Code from file BaseItem.java =====

public class BaseItem {

  protected String lastName;

  public void setLastName(String providedName) {

      lastName = providedName;

      return;

  }

// FIXME: Define printItem() method

/* Your solution goes here */

  public void printItem() {

      // TODO Auto-generated method stub

      System.out.println("Last name: "+lastName);

  }

}

// ===== end =====

4 0
3 years ago
What is A/B Testing
Gnom [1K]
A/b testing is comparing two versions of a web page to see which one performs better
8 0
3 years ago
Read 2 more answers
You want to look up colleges but exclude private schools. Including punctuation, what would you
Orlov [11]

Answer:

the 3rd

Explanation:

8 0
4 years ago
Read 2 more answers
Other questions:
  • What file may contain data written to it in case of an unexpected error or program shut-down?
    12·2 answers
  • A collision volume is called ____
    7·1 answer
  • PLEASE HELP!!!!!!!!!!!
    15·2 answers
  • Which type of financial institution typically has membership requirements?
    11·1 answer
  • PLEASE HELP!!!
    12·1 answer
  • I'm trying the game WWE 2k20 for my computers and technology and a extra credit question is how do you pull down the singlet str
    12·1 answer
  • "Why learning how to type is so important.
    7·1 answer
  • Why would students most likely need to collect data? Check all that apply
    13·2 answers
  • Select the correct answer.
    5·1 answer
  • To find out what a database contains simply look at the ________ inside the database.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!