excel higher secondary school7

14
[Turn over EXCEL HIGHER SECONDARY SCHOOL, 17/190A, Awai Farm Lane, THIRUVATTAR. Tel: 04651-282319 Fax: 04651-282312 email: [email protected] website: www.excelschools.edu.in X11 QUESTION BANK 14. STRUCTURED… X11 ONE WORD BOARD EXAM QUESTIONS 1. ……..is a derived data type in C++ [Mar- 11,13] a) Number b) Array c) Float d) Single precision 2. Which is a collection of variable of the same data type that are referenced by a common name? [Mar-07,Jun-12] a) Expression b) Pointer c) Array d) Variables 3. Arrays are of …………..types [Jun-09] a) 3 b) 4 c) 2 d) 5 4. The size of the array should always be ………..[Jun- 07,Oct-09,Mar-07,11] a) Negative b) Positive c) Float d) Hexa decimal 1

Upload: sunesh-sj

Post on 17-Jan-2016

14 views

Category:

Documents


0 download

DESCRIPTION

dsad

TRANSCRIPT

Page 1: Excel Higher Secondary School7

[Turn over

EXCEL HIGHER SECONDARY SCHOOL, 17/190A, Awai Farm Lane, THIRUVATTAR.Tel: 04651-282319 Fax: 04651-282312 email: [email protected] website: www.excelschools.edu.in

X11 QUESTION BANK 14. STRUCTURED… X11 ONE WORD

BOARD EXAM QUESTIONS

1. ……..is a derived data type in C++ [Mar-11,13]

a) Number b) Array

c) Float d) Single precision

2. Which is a collection of variable of the same data type that are referenced

by a common name? [Mar-07,Jun-

12]

a) Expression b) Pointer

c) Array d) Variables

3. Arrays are of …………..types [Jun-09]

a) 3 b) 4

c) 2 d) 5

4. The size of the array should always be ………..[Jun-07,Oct-09,Mar-07,11]

a) Negative b) Positive

c) Float d) Hexa decimal

5. The array subscripts always commences from ………

[Oct-08,11,12,Jun-08,11,Mar-09,10]

a) 1 b) 0

c) -1 d) 2

6. Cin >>number [4] reads the ……..element of the array.[Oct-11,Jun-12]

a) Third b) Fifth

c) Fourth d) First

7. The process of rearrange the data in a given array either in ascending or

descending order is called ………… [Oct-07]

1

Page 2: Excel Higher Secondary School7

[Turn over

EXCEL HIGHER SECONDARY SCHOOL, 17/190A, Awai Farm Lane, THIRUVATTAR.Tel: 04651-282319 Fax: 04651-282312 email: [email protected] website: www.excelschools.edu.in

X11 QUESTION BANK 14. STRUCTURED… X11 ONE WORDa) Searching b) Sorting

c) Joining d) Filtering

8. Which are otherwise called as literals? [Jun-11]

a) Numbers b) Float

c) String d) Character

9. A character array used as string should be terminated with a …………

[Mar-08,Oct-07,10]

a) \ a b) \ 0

c) \ n d) \ c

10. To treat spaces as part of string literal, one has to use …………..function

[Oct-10]

a) gets ( ) or getch ( ) b) gets ( ) or getline ( )

c) getline ( ) or getch ( ) d) cin

11. There are …………method to display the contents of string . [Oct-

12]

a) 3 b) 2

c) 4 d) 5

12. How many parameters are required for write ( ) function?[Jun-07,Mar-11]

a) 2 b) 3

c) 5 d) 6

13. Which function returns the number of characters stored in the array?

[Oct-

11,12]

a) strcpy ( ) b) strcmp ( )

c) strlenth ( ) d) strlen ( )

2

Page 3: Excel Higher Secondary School7

[Turn over

EXCEL HIGHER SECONDARY SCHOOL, 17/190A, Awai Farm Lane, THIRUVATTAR.Tel: 04651-282319 Fax: 04651-282312 email: [email protected] website: www.excelschools.edu.in

X11 QUESTION BANK 14. STRUCTURED… X11 ONE WORD14. Which function copies source string to target string?

[Jun-07,09,Oct-

07,Mar-12,13]

a) strcopy ( ) b) strcpy ( )

c) string copy ( ) d) string copy ( )

15. Which function compares the two given strings? [Jun-08,Oct-09]

a) strcomp ( ) b) strcompare ( )

c) strcmp ( ) d) string cmp ( )

16. What is the size of the array float num [4] [12] is … [Jun-08]

a) 16 b) 8

c) 32 d) 24

17. What is the size of the array float num [4] [6] [Oct-08,Jun-09,Mar-13]

a) 24 b) 64

c) 96 d) 46

18. Array parameters by default be have like a ………..parameter [June-10]

a) Value type b) Reference type

c) Array type d) Float type

19. Matrices can be represented through ………..dimensional arrays [Jun-12]

a) ) One b) Three

c) Five d) Two

20. In a 2-D array declaration, the first subscript represents the number of …….

[Mar-

08]

a) Columns b) Rows

c) Elements d) Pointer

3

Page 4: Excel Higher Secondary School7

[Turn over

EXCEL HIGHER SECONDARY SCHOOL, 17/190A, Awai Farm Lane, THIRUVATTAR.Tel: 04651-282319 Fax: 04651-282312 email: [email protected] website: www.excelschools.edu.in

X11 QUESTION BANK 14. STRUCTURED… X11 ONE WORD21. In a 2- D array declaration the second subscript represents the number of

…………… [Oct-08]

a) Rows b) Columns

c) Elements d) Matrix

22. An integer array with indices from 0 to 4 all having value 1 may be declared

and initialized as [Mar-07]

a) int x [4] = {1} b) int x [4] = {1,1,1,1};

c) int x [5] = {1,1,1,1,1}; c) int x [ ] = {};

23. The function strcpy (s1,s2) [Mar-07]

a) Copies s1 to s2 b) Copies s2 to s1

c) Appends s1 to end of s2 d) appends s2 to end of s1

24. Arrays in C++ belong to which of the following data type? [Mar-08,10]

a) Basic b) Derived

c) User defied d) Primitive

25. Which of the following is a 2- dimensional character array? [Mar-09]

a) Array of String b) Matrix

c) Literals d) Strings

26. Which of the following is an invalid array declaration? [Mar-09]

a) int array [100]; b) int array [ ];

c) int array [i] d) const int I = 10; int array[i]

27. Strings are otherwise called [Mar-10]

a) Characters b) Names

c) Literals d) Constants

28. Write ( ) is a member function of [June-10]

a) istream .h b) ostream . h

c) string . h d) all of these

4

Page 5: Excel Higher Secondary School7

[Turn over

EXCEL HIGHER SECONDARY SCHOOL, 17/190A, Awai Farm Lane, THIRUVATTAR.Tel: 04651-282319 Fax: 04651-282312 email: [email protected] website: www.excelschools.edu.in

X11 QUESTION BANK 14. STRUCTURED… X11 ONE WORD29. Memory allotted for int num [2] [4] ;is [June-10]

a) 10 bytes b) 16 bytes

c) 60 bytes d) 120 bytes

30. Determine the number of elements in the following declaration : int a [10]

[12]; [Oct-10]

a) 22 b) 10

c) 120 d) 240

31. In C++, array is of which data types? [Oct-11]

a) Built-in b) User – define

c) Pre define d) Derived

32. In the array, int sales [2] [4] ; the first row and second column is [Mar-12]

a) sales [1] [2] b) sales [2] [1]

c) sales [0] [1] d) sales [1] [0]

5

Page 6: Excel Higher Secondary School7

[Turn over

EXCEL HIGHER SECONDARY SCHOOL, 17/190A, Awai Farm Lane, THIRUVATTAR.Tel: 04651-282319 Fax: 04651-282312 email: [email protected] website: www.excelschools.edu.in

X11 QUESTION BANK 14. STRUCTURED… X11 ONE WORD

CREATED QUESTIONS

33. ……….dimensional array comprising of finite homogenous elements

a) one b) two

c) multi d) three

34. ………..dimensional array comprising of elements each of which is itself a

one dimensional array

a) single b) two

c) three d) multi

35. int num _array [5]; in this array how many integer values can be stored ?

a) 4 b) 5 c) 6 d) 1

36. Each element of the array is accessed by the ……….name and position of

the element in the array

a) array b) variable

c) dimensional d) subscript

37. int days [ ] = {1,2,3,4,5,6,7}; in this statement, what is the size of the array?

a) 6 b) 5 c) 4 d) 7

38. Cin > > number [4]; in this array processing which reads the …….element

a) fourth b) fifth

c) first d) third

39. Number [3] + + ;in this array processing which increments the value stored

as ……..element by 1

6

Page 7: Excel Higher Secondary School7

[Turn over

EXCEL HIGHER SECONDARY SCHOOL, 17/190A, Awai Farm Lane, THIRUVATTAR.Tel: 04651-282319 Fax: 04651-282312 email: [email protected] website: www.excelschools.edu.in

X11 QUESTION BANK 14. STRUCTURED… X11 ONE WORDa) fourth b) fifth

c) third d) second

40. ………are otherwise called as literals

a) strings b) constants

c) variables d) data

41. ……….is a member function of standard input istream

a) getline ( ) b) get ( )

c) getsline ( ) d) line ( )

42. …………is a member function of standard output stream i.e,ostream

a) write ( ) b) print ( )

c) writes ( ) d) reads ( )

43. All member functions of a class , should be accessed through an ……….of

class

a) object b) instance

c) a and b d) functions

44. String manipulators are defined in …….header file

a) string . h b) string

c) st . h d) std . h

45. …………..functions return the number of characters stored in the array

a) strlen ( ) b) str ( )

c) stlen ( ) d) strlength ( )

46. …………..dimensional array is an array in which each element is itself an

array

a) two b) three

c) four d) one

7

Page 8: Excel Higher Secondary School7

[Turn over

EXCEL HIGHER SECONDARY SCHOOL, 17/190A, Awai Farm Lane, THIRUVATTAR.Tel: 04651-282319 Fax: 04651-282312 email: [email protected] website: www.excelschools.edu.in

X11 QUESTION BANK 14. STRUCTURED… X11 ONE WORD47. The number of elements in a 2-dimensional array is determined by

multiplying the number of ……………with number of ………..

a) rows, columns b) columns, columns

c) row, row d) row, coln

48. If the elements are stored in row wise manner it is called as………..order

a) row-major b) column- major

c) row d) column

49. When elements are stored column wise manner it is called as ……..order

a) column-major b) row-major

c) row d) column

50. A ………..is a set of mn numbers arranged in the form rectangular array of

m rows and n columns

a) matrix b) determinate

c) array d) row

51. The …………….character is very important as it acts as the string

terminator

a) null b) string

c) int d) float

52. Character array should be initialized using ……………quotes

a) single b) no

c) double d) any

8

Page 9: Excel Higher Secondary School7

[Turn over

EXCEL HIGHER SECONDARY SCHOOL, 17/190A, Awai Farm Lane, THIRUVATTAR.Tel: 04651-282319 Fax: 04651-282312 email: [email protected] website: www.excelschools.edu.in

X11 QUESTION BANK 14. STRUCTURED… X11 ONE WORD

BOARD EXAM ANSWERS:

1 2 3 4 5 6 7 8 9 10b c c b b b b c b b11 12 13 14 15 16 17 18 19 20b a d b c a c b d b21 22 23 24 25 26 27 28 29 30b c b b a c c b b c31 32

d c

CREATED ANSWERS:

33 34 35 36 37 38 39 40 41 42a d b a d b a a a a43 44 45 46 47 48 49 50 51 52c a a a a a a a a c

9