Search This Blog

Sunday, April 26, 2015

1-D Arrays Bits

1-D Arrays Bits


1. Array is a group of _______ data types
A similar
B different
C both a and b
D none
 ANSWER  A                    

2. Array Size is
A 0 to n
B 0 to n-1
C both a and b
D none
 ANSWER  B                   

3. int a[5] index values are
A a[0] to a[4]
B a[1] to a[5]
C both a and b
D none
 ANSWER  A                   

4. int a[5] then memory allocated for a is
A 20
B 5
C 10
D none
 ANSWER  A                    

5. char name[5] then memory allocated for name is
A 5
B 1
C 50
D none
 ANSWER  A                    

6. int a[]={1,2,3,4} then what is size of Array a
A 4
B 5
C 3
D 2
 ANSWER  A    
              

7. int a[4]={1,2,3,4} then what is size of Array a
A 4
B 5
C 6
D 3
 ANSWER  A                    

8. int a[]; is valid or not
A valid
B not valid
C both a and b
D none
 ANSWER  A                   

9. int a[3]={10,20,30}; then a[1]value is
A 10
B 20
C 30
D none
 ANSWER  B                    

10. int a[3]={10,20,30}; then a[0]value is
A 10
B 20
C 30
D none
 ANSWER  A                    

11. int a[3]={10,20,30}; then a[2]value is
A 10
B 20
C 30
D none
 ANSWER  C                    

12. What is output of the following? IMAGE
A 1 2 3 4 5
B 5 4 3 2 1
C both a b
D none
 ANSWER  A                    

13. What is output of the following? IMAGE
A 5 4 3 2 1
B 1 2 3 4 5
C both a b
D none
 ANSWER  A                    

14. What is output of the following? IMAGE
A sum is 15
B sum is 10
C no output
D none
 ANSWER  A                    

15. In Array elements are stored ________
A randomly
B sequentially
C both a and b
D none
 ANSWER  B                    

UNIT III Functions Notes

Thursday, April 2, 2015

UNIT 2 loops notes part2

Loops Notes(UNIT-2loops1)

BIts on While(unit II)

BIts on For Loop(unit II)

Desicion statements bits(unit II)

Operators bits



1. Which of the following is not unary operator
A &(address)
B sizeof
C ++
D /

 ANSWER  D                                       

2. if x=2*3/2 then x value is -------------
A 3
B 0
C 2
D none

 ANSWER  A                                       

3. 5 > 3 returns the value
A 1
B 0
C 2
D none

 ANSWER  A                                       

4. sum=1+2+3+4+5 it evaluates -----------------
A left to right
B right to left
C both
D none

 ANSWER  B                                       

5. sizeof(int) how many bytes
A 1
B 2
C 3
D 4

 ANSWER  B                                       

6. ANSI abbrevation
A American National Standard Institute
B American New Standard Interface
C A American National Standard Industry
D none

 ANSWER  A                                       

7. BCPL abbrevation
A Basic Combined Programming Language
B Basic computer programming Language
C Basic Control Programming Language
D none

 ANSWER  A                                       

8. Binary Operator Contains ___________operands
A 2
B 3
C 4
D 5

 ANSWER  A                                       

9. X=5 % 2 X value ________
A 2
B 1
C 0
D 3

 ANSWER  B                                       

10. 10 !=20 returns _____
A 1
B 2
C 0
D 3

 ANSWER  A                                       

11. 10 > 2 && 2 < 10 returns
A 1
B 0
C 2
D 3

 ANSWER  A                                       

12. conditional operator also known as _____________operator
A unary
B binary
C ternary
D none

 ANSWER  C                                       

13. which of following is not delimitor
A #
B ,
C :
D !

 ANSWER  D                                       

14. logical AND symbol is ___________
A **
B @@
C &&
D ^^

 ANSWER  C                                       

15. Assignment operators are evaluates from _________
A left to right
B right to left
C all
D none

 ANSWER  B                                       

16. for working of printf() which header file is required
A conio.h
B limits.h
C stdio.h
D float.h

 ANSWER  C                                       

17. % (modulo division )operator is not valid for
A int
B char
C float
D none

 ANSWER  C                                       

18. C variable cannot start with
A number
B special symbol except _
C an alphabet
D a and b

 ANSWER  D                                       

19. The address of a variable temp of type float is
A &temp
B *temp
C float *temp
D none

 ANSWER  A                                       

20. what is range of char data type
A -128 to 127
B -127 to 128
C 0 to 255
D none

 ANSWER  A                                       

21. unsigned char data type range ______ bytes
A -128 to 127
B 0 to 255
C 127 to 128
D none

 ANSWER  B                                       

22. unsigned int data type size ______ bytes
A 2
B 4
C 8
D 10

 ANSWER  A                                       

23. double data type size ______ bytes
A 10
B 8
C 4
D 2

 ANSWER  B                                       

24. char data type size ______ bytes
A 4
B 8
C 2
D 1

 ANSWER  D                                       

25. int data type size ______ bytes
A 2
B 3
C 4
D 1

 ANSWER  A