COMPUTER AWARENESS -007

COMPUTER AWARENESS- 007
COMPUTER BASIC

1. GOTO statement is a/an

a) assignment statement
b) unconditional statement
c ) conditional statement
d) loop statement
2. Find the equivalent BASIC expression of the following algebraic expression 3a + 5
a) 3A+5
b) 3 Xa+5
c) 3*A+5
d) none of the above
3. Find the equivalent BASIC expression of the following algebraic expression a/b + c/d
a) A/B + C/D
b) (A/B)+ (C/D)
c) either(a) or (b)
d) none of the above
4. If the X$ = “WELCOME TO BASIC”, then MID$(X$, 9, 2) will print
a) WELCOME
b) BAS
c) TO
d) BASIC
5. If A=2, then ON A GOSUB 200,300,400,500 will transfer the control to the statement labeled
a) 400
b) 200
c) 300
d) 500
6. The declaration 63 MOD 3 returns a value
a) 0
b) 2
c) 3
d) 20
7. Logical operator includes
a) AND, OR, EQUAL, XOR
b) AND, XOR,<>,OR
c) AND, OR, NOT, XOR.
d) AND, XOR, #,OR
8. XOR is a/an
a) Relational operator
b) Arithmetic operator
c) Logical operator
d) None of the above
9. State the error in the following string variable name: X$5
a) first character must be a letter
b) last character must be a dollar sign
c) dollar sign is not allowed
d)none of the above
10. In BASIC, information could be read using
a) INPUT statement
b) READ statement
c) INPYT # statement
d) all of the above
11. In BASIC, READ must be accompanied by
a) assignment statement
b) DATA statement
c) GO TO statement
d) all the above
12. Consider the following statements:
10 LET A$=”WELCOME” 20 PRINT LEN(A$) 30 END This program returns the
a) invalid statement
b) message “WELCOME” on the screen
c) length of a string
d) assigns the value of a string
13. The below following operators are +, =, >, >=,<,<=,<>
a) logical operators
b) relational operators
c) arithemetic operators
d) none of the above
14. Find the statement transfers the pointer to the first value of the data list?
a) DATA
b) RESTORE
c) INPUT
d) READ
15. The value of C==AMAX1(-34.6,-67.2, -0.74E+03,-4.6)
a) -67.2
b) -4.6
c) -4
d) -67
16. Arrays in the FORTRAN may range from
a) one to three dimensional
b) one to five dimensional
c) one to two dimensional
d) one to seven dimensional
17. In the BASIC output, which symbol delivers more space
a) comma (,)
b) colon (:)
c) semicolon (;)
d) none of the above
18. Find the incorrect variable name
a) SUM
b) GOTO
c) Average
d) BEETA
19. State the incorrect arithmetic IF statement
a) IF (I-J) 10,20,30
b) IF (I-J) 10,20,10
c) IF (I-J) 20,20,20
d) IF (1-J) 10,20,20
20. The logical operators are
a) AND, OR, NOT.,
b) .AND., XOR .OR.,.NOT. XO,
c) .AND., .OR.
d) AND, OR, .NOT, XOR.,
21. Pick up the correct FORTRAN square root function
a) SQR()
b)SQRT()
c) SQR(X)
d) SQR(X)
22. In BASIC program, execution carry out
a) in sequence
b) main program statements followed by subprogram statements
c) in random order
d)none of the above
23. Which is the equivalent FORTRAN expression of the following mathematical expression (x+y) (u+v)
a) (X+Y) (U+V)
b) (X+Y) * (U+V)
c) (X+Y) X (U+V)
d) none of the above
24. Find the value of the mixed-mode operation 1. 5* (1./2) / (5/2.)
a) 0.42
b) 0.30
c) 0.40
d) 0.39
25. The following statement READ(*, *) (X(I),I = 1,50) is
a) reads a single value
b) is not allowed in FORTRAN
c) reads 50 values

d) none of the above

Be the first to comment

Leave a Reply

Your email address will not be published.


*