This set of LISP Multiple Choice Questions & Answers (MCQs) focuses on “File Manipulation”.
1. Which translate the procedures into equivalent computer instructions?
a) File
b) Compile-file
c) Compiler
d) None of the mentioned
View Answer
Explanation: Compile-file is mainly used to translate the procedures into equivalent computer instructions.
2. Which primitive is used to create or modify a specified file?
a) File
b) Manipulation
c) ED
d) None of the mentioned
View Answer
Explanation: To create or modify a file, we can use ED primitive.
3. How the files are specified in lisp?
a) Strings
b) Characters
c) Booleans
d) None of the mentioned
View Answer
Explanation: Files are specified as strings, which is one lisp’s data type.
4. Which has its own convention for doing the basic maneuvers?
a) Lisp
b) Compiler
c) Lisp
d) Editor
View Answer
Explanation: Editors have their own convention for doing basic maneuvers.
5. To which value does the lisp compiler is evaluated?
a) File
b) String
c) Compile-File
d) None of the mentioned
View Answer
Explanation: Lisp compiler is used to evaluate a compile-file form.
6. What is produced from compile-file?
a) Text file
b) Binary file
c) Lsp file
d) All of the mentioned
View Answer
Explanation: Compile-file produces a binary file full of unintelligible computer instructions expressed by a bit sequences.
7. What is the correct syntax form of the given statement?
a) (ed <file specification>)
b) (ef <file name>)
c) (ed <file location>)
d) All of the mentioned
View Answer
Explanation: Thus the syntax of ED primitive is given.
8. What is the correct syntax form of the given statement?
a) (load <file>)
b) (load <file attributes>)
c) (load)
d) None of the mentioned
View Answer
Explanation: Load primitive is used to read from files.
9. What is the correct syntax form of the given statement?
a) (compile-file <target file specification>)
b) (compile <target file specification>)
c) (compile-file <source file specification>)
d) None of the mentioned
View Answer
Explanation: In Syntax; source file specification comes instead of target-file. So, compile-file <source file specification> is the correct syntax.
10. Which is used to compile individual procedures?
a) Compile-file
b) ED
c) Compile
d) Load
View Answer
Explanation: Lisp provides a way to compile individual procedures by the use of compile.
Sanfoundry Global Education & Learning Series – LISP Programming Language.
To practice all areas of LISP, here is complete set of 250+ Multiple Choice Questions and Answers on LISP Programming Language.
If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]
- Apply for Computer Science Internship
- Check Computer Science Books
- Practice Computer Science MCQs
- Check LISP Books