Which of the following is not an input device A) plotter B) scanner C) keyboard D) mouse Which of the following statement is syntactically correct [ ] A) printf( %d, &a); B) scanf( %d, a); C) scanf( %d, #a); D) scanf( %d, &a); Which of the following is not a translator program [ ] A) linker B) assembler C) interpreter D) compiler What type of errors are checked during compilation [ ] A) logical errors B) divide by zero error C) run - time errors D) syntax errors The program fragment int a=5, b=2; printf( %d,a+++++b); A) prints 7 B) prints 8 C) prints 9 D) none of the above Which of the following is not a feature of C language? [ ] A) portability B) extensibility C) structured D) case insensitive Which of the following is not a data type in C? [ ] A) int B) float C) char D) string Which of the following is an example of application software? [ ] A) DBMS B) OS C) Language Translator D) Security monitor
The function reads data from the standard input file keyboard. [ ] A) write B) printf C) read D) scanf C is which level language? A) HLL B) MLL C) LLL D) DLL Who invented the Middle level language c? A) Dennis M. Ritchie B) Niklaus Writh C) Seymour Papert D) Donald Kunth Which of the following is not real number? A) 6.23 B) -16.23 C) 40 D) 40.52 Which of the following instructions have only one operand? A) Multiply B) Add C) Shift D) Subtract C was developed in the year A) 1971 B) 1981 C) 1972 D) 1982 C is a language? A) High Level B) Low level C) Middle level D) Machine level String constants is a sequence of characters enclosed in? A) Single quotes B) Floating C) Double quotes D) None of these
In C language reading data from keyboard? A) Printf B) Scanf C) Int D) Main() In a C language && is a? A) Relational operator B) Logical operator C) Arithmetic operators D) None of these In C language ++ is? A) Arithmetic operator B) Relational operator C) Increment operators D) None of these statement is used control the flow of execution? A) If statement B) Switch statement C) Goto statement D) All of these Which of the following are scalar data types? A) Float B) Union C) Array D) Pointer Which of the following are tokens in C? A) Keywords B) Variable C) Constants D) All of above Which symbol is used as a statement terminator in C? A) Semicolon B) Hash C) Tilde D) Exlamation Mark What will be the maximum size of a float variable in c? A) 1 byte B) 2 bytes C) 4 bytes D) 8 bytes
What will be the maximum size of a double variable? A) 1 byte B) 4 bytes C) 8 bytes D) 16 bytes The size of string variable is? A) 1 byte B) 8 bytes C) 16 bytes D) None of these A link is? A) A compiler B) A loader C) An assembler D) An analyzing tool in C Header file C contain? A) Complier command B) Library functions C) Header information of c programs D) Operators for files Symbolic consists can be defined using? A) #defineno B) Const C) Symbols D) A & B Which operator in C is called a ternary operator? A) if-then B) ++ C)? D) ( ) Which of the following is not a valid integer constant in C? A) 321 B) -162 C) -621.231 D) 1 Which of the following is not a valid real constant in C language? A) 426 B) 321.121 C) -621.231 D) 201.2314
Which of the following is not a valid variable? A) p_ce1 B) 1 p_ce C) p1_ce D) p_ced Which of the is following can not be used as a variable name in C? A) else B) coal C) ram D) vendy Which of the following is not a key word in C language? A) for B) pop C) if D) union Which of the following characters is allowed in variable names in C? A) comma B) dot C) blank D) underscore Which of the following is not a key word in C? A) int B) float C) return D) capital Which of the following is not a valid arithmetic statement in C? A) x=x+1 B) x=y*z C) x*y=z D) z=y/x Which of the following is not correct in C? A) 6/4 =1 B) 2/5=0 C) 2.0/5=0 D) 2.0/5.0=0.4 In C how logical AND is represented? A) B) && C) $$ D) ^^
C is which king of language? A) Machine language B) Procedural language C) Assembly Language D) Low level language Which of the following is not a keyword? A) float B) int C) volatile D) functio C language is available for which of the following operating system? A) DOS B) Unix C) Windows D) All of the above A byte represents a group of? A) 20 bits B) 2 bits C) 40 bits D) 8 bits Which is the volatile memory? A) RAM B) EEPROM C) EPROM D) ROM The result of an arithmatic and logical operations are stored in? A) Accumulator B) Instructions register C) Cache memory D) Rom Secondary storage device is needed to? A) Perform arithmatic and logical operations B) Store small volume of data C) Print output result D) Store large volume of data that exceed the capacity of main memory The input device that is closely related to touch screen is the? A) Light pen B) Keyboard C) joystick D) Mouse
Indicate which one of the following is not true about 4GL? A) 4GLs do not support a high level screen packages interaction B) A 4GL is a software tool which is written, possibly,in some third generation language C) Many data base management system packages support 4GL D) None A language translator is best described as? A) A hardware component B) A system software C) An application software D) None Indicate which one of the following best describes the term Software? A) Application programs B) System programs C) Bothno D) None The name given to a sequence of a instructions in a computer language,to get the desired result is? A) A program B) A decesion table C) A pseudocode D) An algorithm The language understood by a computer without translation is called? A) Assembly language B) High Level Language C) Command Language D) Machine Language Who is the creator of the PASCAL language? A) Niklaus Writh B) Dijkstra C) Donald Knuth D) Basic Pascal Which of the following is not a valid variable name declaration? A) int a3; B) int 3a; C) int A3; D) None of the mentioned ANSWER: d
Which of the following is not a valid C variable name? A) int number; B) float rate; C) int variable_count; D) int $main; ANSWER: d Which of the following is true for variable names in C? A) They can contain alphanumeric characters as well as special characters B) It is not an error to declare a variable to be one of the keywords(like goto, static) C) Variable names cannot start with a digit D) Variable can be of any length ANSWER: c The precedence of arithmetic operators is (from highest to lowest) A) %, *, /, +, - B) %, +, /, *, - C) +, -, %, *, / D) %, +, -, *, / ANSWER: a Which of the following is not an arithmetic operation? A) a *= 10; B) a /= 10; C) a!= 10; D) a %= 10; ANSWER: c Which of the following data type will throw an error on modulus operation(%)? A) char B) short C) int D) float ANSWER: d Which among the following is NOT a logical or relational operator? A)!= B) == C) D) = ANSWER: d The language understood by a computer without translation is called? A) Assembly language B) High Level Language C) Command Language D) Machine Language Who is the creator of the PASCAL language? A) Niklaus Writh B) Dijkstra C) Donald Knuth D) Basic Pascal