21. What are the basic datatypes in Fortran?
A. Integer, Real, Double Precision, Character
B. Integer, Real, Character, Logical
C. INteger, Real, Complex, Character
Ans: B
22. In which column does the code start in Fortran 77 fixed format?
A. 6
B. 9
C. 7
Ans: C
23. What signals a comment in Fortran 95?
A. An exclamationmark ! anywhere on the line
B. A C in column one
C. An asterisk * in column six?
Ans: A
24. How can we continue source code from one line to the next in Fortran 95?
A. by an asterisk * in column 6
B. An ampersand & at the end of a line
C. By using brackets
Ans: B
25. What is the purpose of a number in column 2 to 5 in Fortran 77 fixed format
A. A jump label or format label
B. Just a jump label
C. Just a format label
Ans: A
26. Which of the following is not a valid property of a PARAMETER statement?
A. Can combine other parameters with FORTRAN arithmetic operators to compute the value of a new parameter
B. Parameters can be set anywhere in a program
C. Integer parameters can be used to set array dimensions
D. Parameters can be used as bounds on do loops.
E. Can be passed as arguments to subroutines
Ans: B
27. In a FORTRAN program I have set x=2.0, a=2.0 and b=4.0. What is the value of y if: y = a*x+b**2/x ?
A. 8.0
B. 12.0
C. 16.0
D. 32.0
E. 64.0
Ans: B
28. In a FORTRAN program I have set x=1.5,i=3, and j=2. What is the value of y if:
y = 2*x + i/j
A. 3.0
B. 3.5
C. 4.0
D. 4.5
E. 5.0
Ans: C
29. In a FORTRAN program x=4.5, y=3.0, and w=1.5, What is the value of z if: z = x+w/y+1
A. 1.5
B. 3.0
C. 4.5
D. 6.0
Ans: D
30. not determined due to a Fortran Syntax error
In a FORTRAN program x=1.0, y=2.0 and w=3.0. What is the value of z if:
z=2.0(x(y+3.0)+w)
A. 12.0
B. 16.0
C. 18.0
D. 22.0
E. not determined due to a FORTRAN syntax error
Ans: E
31. After compiling the FORTRAN statement:
y = c/d + a*x**2-5
Which operation is performed first by the computer?
A. /
B. +
C. *
D. **
E. -
Ans: D
32. When using vi, which of the following commands will delete a full line?
A. d
B. dd
C. dl
D. r
E. x
Ans: B
33. The command " man ls > more " will:
A. Provide help on the command "ls" as text in a file called "more"
B. Provide help on the command "ls" viewed with the utility "more"
C. Provide help on commands alphabetically between ls and more
D. Provide a more detailed help on the command "ls" than is usually given
E. Result in a system message: "Command not found"
Ans: A
34. When working on a Unix workstation without any special aliases, which of the following commands should be used to delete a file?
A. del
B. dd
C. df
D. rf
E. rm
More Questions & Answers:-
Page1 Page2 Page3
A. Integer, Real, Double Precision, Character
B. Integer, Real, Character, Logical
C. INteger, Real, Complex, Character
Ans: B
22. In which column does the code start in Fortran 77 fixed format?
A. 6
B. 9
C. 7
Ans: C
23. What signals a comment in Fortran 95?
A. An exclamationmark ! anywhere on the line
B. A C in column one
C. An asterisk * in column six?
Ans: A
24. How can we continue source code from one line to the next in Fortran 95?
A. by an asterisk * in column 6
B. An ampersand & at the end of a line
C. By using brackets
Ans: B
25. What is the purpose of a number in column 2 to 5 in Fortran 77 fixed format
A. A jump label or format label
B. Just a jump label
C. Just a format label
Ans: A
26. Which of the following is not a valid property of a PARAMETER statement?
A. Can combine other parameters with FORTRAN arithmetic operators to compute the value of a new parameter
B. Parameters can be set anywhere in a program
C. Integer parameters can be used to set array dimensions
D. Parameters can be used as bounds on do loops.
E. Can be passed as arguments to subroutines
Ans: B
27. In a FORTRAN program I have set x=2.0, a=2.0 and b=4.0. What is the value of y if: y = a*x+b**2/x ?
A. 8.0
B. 12.0
C. 16.0
D. 32.0
E. 64.0
Ans: B
28. In a FORTRAN program I have set x=1.5,i=3, and j=2. What is the value of y if:
y = 2*x + i/j
A. 3.0
B. 3.5
C. 4.0
D. 4.5
E. 5.0
Ans: C
29. In a FORTRAN program x=4.5, y=3.0, and w=1.5, What is the value of z if: z = x+w/y+1
A. 1.5
B. 3.0
C. 4.5
D. 6.0
Ans: D
30. not determined due to a Fortran Syntax error
In a FORTRAN program x=1.0, y=2.0 and w=3.0. What is the value of z if:
z=2.0(x(y+3.0)+w)
A. 12.0
B. 16.0
C. 18.0
D. 22.0
E. not determined due to a FORTRAN syntax error
Ans: E
31. After compiling the FORTRAN statement:
y = c/d + a*x**2-5
Which operation is performed first by the computer?
A. /
B. +
C. *
D. **
E. -
Ans: D
32. When using vi, which of the following commands will delete a full line?
A. d
B. dd
C. dl
D. r
E. x
Ans: B
33. The command " man ls > more " will:
A. Provide help on the command "ls" as text in a file called "more"
B. Provide help on the command "ls" viewed with the utility "more"
C. Provide help on commands alphabetically between ls and more
D. Provide a more detailed help on the command "ls" than is usually given
E. Result in a system message: "Command not found"
Ans: A
34. When working on a Unix workstation without any special aliases, which of the following commands should be used to delete a file?
A. del
B. dd
C. df
D. rf
E. rm
More Questions & Answers:-
Page1 Page2 Page3
No comments:
Post a Comment