In computer programming, a keyword is a word or identifier that has a particular meaning to the programming language. The meaning of keywords -- and, indeed, the meaning of the notion of keyword -- differs widely from language to language.
In many languages, such as C and its kin, a keyword is a reserved word which identifies a syntactic form. Words used in control flow constructs, such as if, then, and else are keywords. In these languages, keywords cannot also be used as the names of variables or functions.
Some languages, such as PostScript, are extremely liberal in this approach (such as PostScript), allowing core keywords to be redefined for specific purposes.
In Common Lisp, in contrast, keywords (or keyword symbols) are a special sort of symbol, or identifier. Unlike other symbols, which usually stand for variables or functions, keywords are self-quoting and evaluate to themselves. Keywords are usually used to label named arguments to functions, and to represent symbolic values.
Languages vary as to what is provided as a keyword and what is a library routine. Some languages, for instance, provide keywords for input/output operations whereas in others these are library routines. In Python and many BASIC dialects, print is a keyword. In contrast, the C and Lisp equivalents printf and format are functions in the standard library.
In languages with macros or lazy evaluation, control flow constructs such as if can be implemented as macros or functions. In languages without these expressive features, they are generally keywords.
keyword in an internet search is one of the words used to find matching pages. It was popularized during the early days of internet search as it was not possible to ask plaintext questions and find the desired sites. Searches gave the best results if only a few key words were chosen and searched for. These "keywords" captured the essence of the topic in question and were likely to be on all sites containing relevant information.
Keywords are still used today and many modern search engines have methods for determining which words in a search string are important and ought to be treated as keywords. Common words like articles (a, an, the) and conjunctions (and, or, but) are not treated as keywords because it is inefficient to do so. Almost every site on the internet has the article the and it makes no sense to search for it.
2006-08-19 13:18:51
·
answer #2
·
answered by SamWiseGamgee 3
·
0⤊
1⤋
Next time I have some homework, I'm gonna cheat like this
2006-08-19 13:18:07
·
answer #3
·
answered by Princess B 3
·
1⤊
0⤋
Haha, from what you're asking, looks like you want us to do your homework for ya. Fat chance.
2006-08-19 13:18:08
·
answer #4
·
answered by J 7
·
0⤊
0⤋
yes copy wikipedia, A+ for sure, go for it. I support you =P
2006-08-19 15:32:27
·
answer #5
·
answered by nuanua 3
·
0⤊
0⤋