1. The character representing EOF is (A) [Ctrl-d] for UNIX and [Ctrl-z] for MSDOS, (B) the same for MSDOS and UNIX, (C) [Ctrl-z] for UNIX and [Ctrl-d] for MSDOS, (D) [Ctrl-z] for both systems.
2. For converting a UNIX fi le to MSDOS/Windows format, the LF character must be (A) replaced with CF, (B) succeeded by CR, (C) preceded by CR, (D) succeeded by another LF.
3. The scanf function returns (A) the number of characters read, (B) the number of items successfully read, (C) 1 on success, (D) none of these.
4. The statement scanf(“%f”, price); (A) assigns a real number to price, (B) stores a real number at the address of price, (C) generates a compiler error, (D) interprets price as an address and attempts to store the input at the address.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here