The program which would help Eva convert a Lisp file into machine code by interpreting only a single line of code at a time is: A. interpreters
Interpreters can be defined as computer software programs that are designed to translate (interpret) a programming language (code) into machine code, especially by interpreting only a single line of code at a time.
Hence, an interpreter executes the instructions that are written in a programming language (code) one after the other (instruction by instruction), before it translate (interpret) the next line of code.
On the other hand, a compiler takes the entire program (code) and interprets them.
In conclusion, an interpreter can help Eva convert a Lisp file into machine code by interpreting only a single line of code at a time.
Rea d more: brainly.com/question/21130620
Answer:
Explanation:
proviene del francés informatique, implementado por el ingeniero Philippe Dreyfus a comienzos de la década del '60. ... De esta forma, la informática se refiere al procesamiento automático de información mediante dispositivos electrónicos y sistemas computacionales.
I think coders put in codes. Sry if that does not help.
Answer:
#include <iostream>
using namespace std;
class Str{ ///baseclass
public :
string super_str;
string getStr()
{
return super_str;
}
void setStr(string String)
{
super_str=String;
}
};
class str : public Str{ //inheriting Str publicly
public :
string sub_str;
string getstr()
{
return sub_str;
}
void setstr(string String)
{
sub_str=String;
}
bool notstartswith()
{
int n=sub_str.length(); //to find length of substr
bool flag=false;
for(int i=0;i<n;i++) //Loop to check beginning of Str
{
if(super_str[i]!=sub_str[i])
{
flag=true;
break;
}
}
return flag;
}
};
int main()
{
str s; //object of subclass
s.setStr("Helloworld");
s.setstr("Hey");
if(s.notstartswith()==1) //checking if str is substring of Str
cout<<"Str does not start with str";
else
cout<<"Str starts with str";
return 0;
}
OUTPUT :
Str does not start with str
Explanation:
Above program is implemented the way as mentioned. for loop is being used to check the beginning of the str starts with substring or not.
Answer:
The most straight forward way to do it: in general string are zero index based array of characters, so you need to get the length of the string, subtract one and that will be the last character, some expressions in concrete languages would be:
In Python:
name = "blair"
name[len(name) - 1]
In JavaScript:
name = "blair"
name[name.length - 1]
In C++:
#include <string>
string name = "blair";
name[name.length() - 1];