ECE :: Microprocessors
-
Which of the following conditional statements is not valid in Pascal?
-
A computer program is used to read N and compute N !. IF N = 6, the result will be
-
Consider the following statement in Basic
15 INPUT X, Y, Z
20 IF Y > X THEN 25
21 IF Z > Y THEN 30
25 PRINT Y
30 PRINT Z, X
35 END
IF X, Y, Z are 150, 200, 250 then the output will be -
The port of PC to which mouse is connected is called
-
FORTRAN expression for 3b2-5a2 is
-
If J = 12 and X = 24.4 the result of the following FORTRAN 77 program will be
READ *, J, X
K = J ** 2
Z = 3 * X
Print *, J, K, Z -
Consider the following about 'arrays' in C
- An array is a collection of similar elements.
- An array can not have 10 numbers 5 of which are ints and 5 are floats.
- An array can have ints and chars in the same array.
-
A computer program is used to read M and print the sum 2 + 4 + 6 + 8 +.........+ 2M. If M = 9 , the print out will show the number
-
Read the following rules for scanning Boolean expressions in Pascal
- The expressions are scanned from left to right.
- The operations are scanned in the order NOT, AND, OR.
- All operators (i.e., NOT, AND and OR) are scanned together.
- In one scanning all the operators of only one type are scanned.