Exam1FormA-withKey

Exam1FormA-withKey - CSCE 206 (501-512) Structured...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
CSCE 206 (501-512) Structured programming in C 2011 Fall Exam 1 Question set A Name: ___________________________ UIN: ___________________________ TA: ________________________ CLASS: ______________________________ 1. ENIAC was the first general purpose, electronic, digital computer. T 2. FORTRAN, COBOL, and LISP are all high level programming languages. T 3. Interpreters translate and execute each program statement dynamically. T 4. C language is an assembly language. F 5. Assemblers convert program instructions from assembly language into machine language. T 6. Data, in computers, is stored in binary form, as a series of 0s, 1s, and 2s. F 7. Program Counter is a special memory location which contains the instruction currently being processed. F 8. When a program Fetch command is executed, it retrieves a copy of the program command from the address stored in the program counter, and then it proceeds to update the program counter to the address of the next instruction. T 9. The figure above shows a flowchart representation of an algorithm. F 10. The following two expressions are identical. T Variable %= Exp; Variable = Variable % Exp; 11. Defining the character ‘C’ and the single-character string “C” will produce the same result. F 12. In the process of performing a Modular Design for a given program, an example of one would start with the smallest parts and then proceed to larger parts. This type of process is known as Top – down Modular design. F 13. Parentheses are used to increase the precedence of the operations inside them. T
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
14. Semicolons “;” need to be placed after every line in a C program. T/F 15. Identifiers in C are case insensitive. F 16. A C program can have multiple main functions where execution begins and ends. F 17. Each preprocessing directive MUST be on its own line. T 18. A variable can be declared after they are assigned value. F 19. A break statement will exit all loops: the inner and the outer loops. T/F 20. Lexical analysis decides how tokens are related. F 21. We use the symbol “//” for multiline comment. F 22. Comments cannot be placed in the middle of a keyword or identifier. T 23. Is this True or False : !0&&0||0. F 24. Is this True or False : !!5. T 25. X || Y && Z is the same as (X || Y) && Z. F 26. One kilobyte is: A A. 2 10 bytes B. 10 2 bytes C. 1000 bits D. One tenth of a terabyte E. None of the above 27. Memory is divided into: B A. Programs B. Cells C. Buffers D. ROM E. None of the above 28. What is/are the standard coding system[s]? D A. ASCII B. QWERTY C. EBCDIC D. a and c E. None of the above 29. What is the role of a CPU? C A. To store dynamic, volatile data B. To store nonvolatile data, possibly read-only data
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/19/2012 for the course GEOG 305 taught by Professor Prout during the Spring '08 term at Texas A&M.

Page1 / 12

Exam1FormA-withKey - CSCE 206 (501-512) Structured...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online