Find the output of this program. main() { int i=0; while(+(+i--)!=0) i-=i++; printf("%d",i); }
-1
1
0
Compiler error
Find the output of this program. void main(){ float j; j=1000*1000; printf("%f",j); }
1000000
Overflow
None
Error
Which of the following is used to allocate memory to a program at run time?
ALLOCATE
ALLOC
ALLMEM
LOADM
None of the above
Which of the following is the operation code extender for not locking a record on a READ or CHAIN?
L
N
E
P
none of the above
Given a full procedural, externally-described input file named ORDER with a record length of 41 bytes, which of the following is a valid format for the File specification for the ORDER file?
A. FORDER IF E DISK
B. FORDER IPE F 41 DISK
C. FORDER IF E 41 DISK
D. FORDER IF F DISK
What type of object stores spooled files that are waiting to be printed on an output device?
*SPLQ
*PRTQ
*PRTF
*OUTQ
Given the following code, what is the value of RESULT? DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++ D RESULT S 5 0 CL0N01Factor1+++++++Opcode&ExtExtended-factor2+++++++++++++++++ C EVAL RESULT = (2 + 3 * 2) * 2 / 2
8
10
32
50
If the last record of a file has been read, and the next operation on that file is a READ operation, what will be the values of the input fields for that file?
They will be blank and/or zero.
They will be null.
They will equal the values of the first record in the file.
They will equal the values of the last record read
Given the DOS Specification below and the following information: • Indicator 50 is off • No records have been written to the subfile What will be the result if the EXFMT operation code is performed on the record format CTLR? A R SUBFL A DESCRIP 101 6 1ODSPATR(UL) A DFT(’NOT FOUND’) A R CTLR SFLCTL(SUBFL) A N50 SFLDSP A SFLDSPCTL A SFLINZ A 67 SFIJEND A SFLSIZ(13) A SFLPAG(12) A ACCOUNTNO 100 S 10
Only AccountNo will display
SUBFL will be initialized with 13 blank records
An I/O exception error will occur
The screen will display 12 records with ‘NOT FOUND’