Here you can find PASCAL Interview Questions and Answers.
In this PASCAL Interview Questions and Answers section you can learn and practice PASCAL Interview Questions and Answers to improve your skills in order to face technical inerview by IT companies. By Practicing these interview questions, you can easily crack any PASCAL interview.
AllIndiaExams provides you lots PASCAL Interview Questions and Answers with proper explanation. Fully solved examples with detailed answer description. All students, freshers can download PASCAL Interview Questions and Answers as PDF files and eBooks.
You no need to worry, we have given lots of PASCAL Interview Questions and Answers and also we have provided lots of FAQ's to quickly answer the questions in the PASCAL technical interview.
Explain what is Pascal?
Pascal is a procedural programming language which supports data structures and structured programming.
What is standard Pascal?
Pascal is one of a series of languages put forth by one of the most prolific computer language creators, Niklaus Wirth, a professor at Institut fur informatik, ETH, Zurich, Switzerland. Professor Wirth participated in various versions of Algol, a language put forth by international cooperation that introduced the basic concepts of structured programming to the world. Wirth terms Pascal as a descendant of Algol 60 (for Algol, 1960 standard). The "official" descendant of Algol 60 was Algol 68, famous for having assignment as an expression operator (a basic feature of the later language C). Wirth felt that the design committee for Algol, after Algol 60, was losing focus and creating an unnecessarily complex language. While Algol W has had it's fans, the language Pascal was considered to be a new high of consistent language design. The first draft of Pascal was created in 1968. The first compiler was operational in 1970, and the language was generally published in 1971. In 1973, after two years of testing and use, the language was revised into it's final form. That was detailed by "The Pascal User Manual and Report". Because this support model does not require hiring large support staffs (and then firing them later as demand decreases), there is no plans to limit or charge for support.
Define what is Pascal sets?
Pascal set is a collection of elements of the same type. It allows defining the set data type. The set elements are enclosed in a square elements.
Explain what is Pascal units?
A Pascal program consists of modules referred as units. A module or unit might consist of some code blocks, which again consist of variables and type declarations, statement procedures, etc. There are many built in units in Pascal.
Explain what are the data types included in Pascal?
â€¢ Integers: It includes whole number, which allows numbers to be written without any decimals â€¢ Real Numbers: Numbers with decimal or without decimals â€¢ Boolean Data Types: Check the condition true or false â€¢ Char Data Type: With the ordered character set it allows a single character to be written
Mention what are the REPORT method for which the portability is given in Pascal?
The portability given for the Report methods are: â€¢ Application: It consists of the guidelines which allow to use implementation and features according to the compiler, to make the application more portable. â€¢ Compiler: Implemented the language that is likely to implement the features like determining of the types that are compatible with one another.
Explain what is Pascal constants?
During program execution, constant is something that remains unchanged. Pascal allows only following constants to be declared â€¢ Ordinal Types â€¢ Set Types â€¢ Pointer Types â€¢ Real Types â€¢ Char â€¢ String
Mention what is the syntax to declare constants?
To declare constants the syntax used is Const Identifier = constant_value;
Explain how you can define a string?
In different ways, string can be defined â€¢ Character Arrays â€¢ String Variables â€¢ Short Strings â€¢ Null Terminated Strings â€¢ Ansi Strings
Explain how file is handled in Pascal?
In Pascal, a file is a sequence of components, and file is determined by the type of the components. type file-name = file of base-type; The base type determines the type of the component. It could be anything like Boolean, subrange, integer, record, arrays and so on