The document consists of multiple-choice questions covering topics related to computer generations, hardware, and the C programming language. It includes questions about the characteristics of different computer generations, basic programming concepts, and syntax in C. The questions assess knowledge on various aspects of computing and programming fundamentals.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
3 views
Objective question
The document consists of multiple-choice questions covering topics related to computer generations, hardware, and the C programming language. It includes questions about the characteristics of different computer generations, basic programming concepts, and syntax in C. The questions assess knowledge on various aspects of computing and programming fundamentals.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3
UNIT I
1. Which generation of computers is covered by the period 1964-1971?
a. First b. Second c. Third d. Fourth 2. Which of the following belong to the first generation of computer? a.AC b. IBM 1401 c. IBM 8090 d. UNIVAC 3. What hardware was used by first generation computers? a. Transistors b. Valves c. VLSI d. ICs 4. A collection of eight bit is called a. Byte b. Word c. Record d. File 5. A typical modern computer uses a. LSI chips b. Vacuum tubes c. Valves d. All the above 6. Which is the most powerful type of computers? a. Microcompute b. Minicomputer c.Mainframe computer d. Super computer 7. The first electronic digital computer contained? a. Electronic valves b. Vacuum tubes c. Transistors d. Semiconductor memory 8. The first computer made available for commercial use was a. Mark-I b. ENIAC c. EDSAC d.UNIVAC 9. Who is called the father of the computer? a.Blaise Pascal b. Charles Babbage c. Joseph Jacquard d.Dr Hewrman Hollerith 10. The first mechanical computer designed by Charles Babbage was called a. Abacus b. Processor c.Calculator d. Analytical Engine 11. Computers take incoming data called______________.process it and produce outgoing information called___________________ a.Input:output b.Output:input c.Process:input d.Process:output 12. The main unit of a computer system is called a.Motherboard b. CPU c.Monitor d.Keyboard 13. The set of instructions that specifies what operations a computer is to perform is called a___________ a. Process b. Program c. Input d.Output UNIT III INTRODUCTION TO C LANGUAGE
1. The number 0987 is ------------------- integer
a. Octal b. Decimal c. Hexadecimal d. Invalid 2. What kind of language C is a.machine language b. Procedural c. Assembly d. Object oriented 3. C Language has ----------------- type of tokens a. Four b. Six c. Five d. Seven 4. The range of unsigned n-bit number is a. 0 to 2n-1 b. 0 to 2n-1 c. 0 to 2n+1 d. 0 to 2n 5. Which of the following is a valid integer a. 10,000 b. 10 20 c. 0x1234 d. 0xabg 6. Which of the following is a C keyword a. int b . character c. scanf d. but 7. Escape sequence \t is -------------- a. Backspace b. New line c. tab d. all the three 8. Format specifier for inputing integer number is a. %d b. %f c. %s d. %c 9. Which is appropriate for accepting character a. gets() b. scanf() c.putc() d. getch() 10. Which of the following function is most opt for reading multiword a. Puts() b. gets() c. scanf() d.fscanf() 11. Which of the following is associated with software changes/modification/evolution of software a. Design b. Coding c. testing d.Maintenance 12. The type of programming that is done using C is ---------------- a. High-level b. Low-level c. Both a&b d.None 13. Which of these is not a keyword a. float b. static c.delete d.insert 14. What is the size of character in bytes a. 1 b.2 c.3 d.4 15. puts() is -------------- kind of function a. input b. output c. both a& b d. none 16. The conversion specifier---------------- is used to represent string a.%c b. %f c. %s d. %d 17. Keywords are also called as------------- a. Indentifiers b. Reserved words c. Variables d. None 18. The operator % is ---------------- a. Quotient b. Percentage c. Reminder d. Fractional part 19. The number 025 ia --------------- number a. Decimal b. octal c. hexadecimal d. binary 20. Which character marks the end of the statement in C a. ; b. } c. ] d.: 21. Which of the following is an input function a. printf() b.putchar() c. scanf() d. puts() 22. Which of the following is not a valid string constant a. “x” b. ‘x’ c. “2009” d. “5+10” 23. To find out the remainder after dividing the number by other number the operator is a. / b. ^ c. % d. $ 24. Which of the following is not a keyword a. char b. break c. triangle d. long 25. Which of the following is a valid integer a. -250 b. 4,442 c. -31.89 d. 3,7882 26. The function which takes single character input from the keyboard a.get chr() b. getch() c. givechar() d. charget() 27. In a passage of text individual words and punctuation marks are called----------- a. Variables b. constants c.tokens d. keywords 28. Which of the following is not character constant a. ‘bb’ b. “c” c. “?” d.’c’ 29. --------------is an example for floating point constant a. 45.6 b. 40 c. ‘a’ d. pi 30. ------------- is not a valid identifier in C a. 4a b. a3 c. tax_rate d. $f 31. -------------is a valid identifier a. num b. 2dnum c.#num d. 2num 32. What is the output for the following code? void main() { printf (“%d”,’A’); } a. A b. error c. 65 d. none 33. What is the output for the following code? main() { int x; print f(“%d”,x); } a. Error b. garbage value c. x d. 0 34. What is the output ----------------- int a=10; main() { int a=50; printf(“%d”,a); } a. 50 b. 10 c. error d. garbage value 35. The escape sequence \n indicates --------------- a. Backspace b. New line c. tab d. all the three