Information Technology Quiz

Test your knowledge of Pascal

1. What type of program is pascal?
a) application software
b) operating system
c) high-level language
d) low-level language

2. Which is a pascal OUTPUT command?
a) readln
b) var
c) begin
d) write and writeln

3. Which is a pascal INPUT command?
a) read and readln
b) write and writeln
c) IF
d) var

4. How do you assign the number 27 to a variable P
a) p = 27;
b) 27 = p;
c) p = 20 + 7;
d) p :=27;

5. Calculate the product of 7 and 11 and store it in variable Y
a) Y := 7 * 11;
b) Y := 7 + 11;
c) 7 X 11 = Y;
d) 7 * 11 := Y;

6. What is the correct order for a pascal program
a) program name - program body - variable declaration
b) program name - variable declaration - program body
c) variable declaration - program name - program body
d) program body - program name - variable declaration

7. Which of these values need to be declared as REAL
a) sname
b) 491
c) NO
d) 3.14

8. Which of these values need to be declared as INTEGER
a) 318
b) 37.00
c) 50.5
d) YES

9. What will this statement output : Writeln(' Welcome to pascal);
a) Welcome to pascal
b) welcome to pascal
c) syntax error
d) no error

10. Which statement is true about read(x); if X is a real variable;
a) 5.00 is stored in X
b) Any numeric value is accepted
c) Any string value is accepted
d) Only real values are accepted

Free JavaScripts provided
by The JavaScript Source