Tuesday, September 27, 2011

Some objective question in c



Subject: Computers                                                                    MM: 25
Code     : PCS151                                                                     Time: 20 Minutes
--------------------------------------------------------------------------------------------------------
Note: 1.  All questions carry equal marks. No negative marking.
           2. Do not write or mark anything on question paper.
--------------------------------------------------------------------------------------------------------

Q1-C is written by:
A. Dennis Ritchie                                                        B. strostrup                   
C. Daniela                                                                      D. None

Q2.A pixel is
A. A computer program that draws picture                        B. A picture stored in secondary memory
C. The smallest resolvable part of picture                   D. None of these

Q3.Which of the following is not a keyword:
A. long                                                                             B. int                     
 C. float                                                                            D. main

Q4.Which of the following is not a format specifier:
A. %d              B. %i                           C. %e               D. %#x                        E. none


Q5.The identifiers are defined by:
A. User                        B. compiler      C. function                   D. none of the above

Q6.In C, every variable has
A. a type          B.a name                     C.a value                     D. a size           E. all of the above

Q7.In c, a variable cannot starts with:
A. a number                 B. an alphabet.             C.a character.                           D. None

Q8.How many keywords are there in c?
A. 2                 B. 10                 C. 16               D. 32

Q9.int a= -15% -4;      
A. 3                 B.-3                 C. 0                  D. Both a and c

Q10 int a=15/6;
A. 2                                                                      B. 2.000000                    
C. 2.5                                                                   D. 2.500000

Q11.float a=15/2;
A. 1.000000                                                         B. 1.500000                    
C. 7.500000                                                         D. 7.000000

Q12. Keyboard Shortcut for compilation is:
A. alt+f9                      B. ctrl+f9                     C. f2                D. None

Q13.int a=0500;
        printf(“%#x”,a);
                                                                                      
A.0x144                      B.0x140                                   C.144                  D. 500

Q14.  For compiler 50.005689 is
A. int                                                                       B. float               
C. double                                                                 D. Both B and C.

Q15.A computer program that converts an entire program into machine language is called a/an
A. Interpreter               B. Simulator                 C. Compiler                 D. Commander

Q16.Which of the following is not an operator.
A. &                            B.  , (comma)               C. +                 D. (semi colon)         E. None

Q17- In DOS based compiler float takes:
A. 4                                         B.  2                             C. 8                 D. all

Q17 .if (5-6+1)
            Printf(“INDIA”);
        else
            Printf(“AUS”);

A. INDIA                                 B.  AUS                       C. Both a and b          D. NONE

Q18.DOS stands for.
A. DISK os                              B.  Digital os                C. DVD os                   D. none

Q19. 1KB=      _______ bit
A. 1024                                   B.  8192                       C. 8190                        D. 9992

Q20- 1 Nibble=
A. 4 bit                                    B.  2 byte                     C. 1 byte                      D.2 bit


















No comments:

Post a Comment