9 Best Pascal Interview Questions
1)What is Pascal?
Pascal is a procedural programming language that was developed by Niklaus Wirth in 1970. This effective and small programming language supports structured programming and data structure.
2)Name some of the specific features of Pascal?
- Pascal is a structured programming language that makes use of control structures such as repeat-until, if-else statement.
- It offers a modular and simple method for machine implementation.
- It provides extensive error checking.
- Pascal also supports object-oriented programming.
- It has various data structures that are built-in with the arrays, records, pointers, files.
3)What is Pascal sets?
Pascal sets are defined as a group of elements of same types. The set elements are enclosed within a square element. It also allows you to define the set data type.
4)What is a data type in Pascal?
A datatype is defined as a range of values that a variable can keep. It has set of operations that can be operated on various data types.
5)What are the data types included in Pascal?
- Char Data Type: It lets a single character to be written with the ordered character set.
- Boolean Data Types: It checks the condition true or false.
- Real Numbers: It includes numbers with decimal or without decimals.
- Integers: It comprises o the whole number, which means numbers without any decimals.
6)How to declare constants in Pascal?
The syntax to declare constant in Pascal is given below:
Identifier = constant_value
7)Why is it called Pascal?
The language is named Pascal after mathematician and philosopher Blaise Pascal.
8)What is IP Pascal?
IP Pascal stands for Interplatform Pascal. It supports various platform in its current configuration such as
9)Name some pointer types used in Pascal?
Record Pointer: It is basically used to permit the recording of the sub-fields and nodes that are used.
Associate Pointer: It has associated data types that can easily the check for compatibility with another type.
Reference Pointer: It gives the reference to the dynamically made variables.