Студопедия

Главная страница Случайная страница

КАТЕГОРИИ:

АвтомобилиАстрономияБиологияГеографияДом и садДругие языкиДругоеИнформатикаИсторияКультураЛитератураЛогикаМатематикаМедицинаМеталлургияМеханикаОбразованиеОхрана трудаПедагогикаПолитикаПравоПсихологияРелигияРиторикаСоциологияСпортСтроительствоТехнологияТуризмФизикаФилософияФинансыХимияЧерчениеЭкологияЭкономикаЭлектроника






Find the wrong initialize.






a)a[ ]={5, 2, 8, 1, 6};

b)a[ 3 ]={4, 7, 9, 4};

c)a[ 5 ]={6, 2, 8, 9, 1};

d)a[ 4 ]={1, 9, 2};

e)a[ 2 ]={1, 2};

 

70. How many bytes one integer occupies in the memory?

4 byte

71. The number of elements in a vector is called:

Size

72. Which of the following false for array?

 

 

73. What will be output?

2 8 3 4

74. The elements of an array are related by the fact that they have the same ____ and_____.

 

type and name

 

75. The number used to refer to a particular element of an array is called its

Subscript

 

76. Find the error.

Main function is incorrect

 

77. Which of the following is true?

Not included library of string

 

78. Find the error.

 

N is not const

 

79. Which of the following is true?

 

80. What will be the output?

 

81. Function swap()

Exchange value of 2 integers

82. Given the following function declaration and local variable declarations, which of the following is not a correct function call?

a) int myInt;

b) double myDouble;

c) char ch;

d) void someFunction(int& first, double second, char third);

e) all of above

 

83. A value-returning function can be used ____.

 

All of above

 

84. Every recursion should have the following characteristics.

A simple base case in which we have solution

85. What is the output of this program?

 

Aref – ссылка

 

86. What is the output of this program?

­­­­­­­­­

10 5 swap 10 5

 

87. What is the output of this program?

 

2 8 1 4

 

88. What error would the following function give on compilation?

 

int f (int a, int b) declare type when it is called

 

89. What will be the value returned by the following function, when it is called with a value 11?

 

90. A function can make

a)One throw

b)One throw of each programmer defined type

c)One throw of each scale type

d)As many throws of as many types as necessary

e)None of them

 

Empty parameter lists

 

Int f (void) = int f ();

 

 

91. The default parameter passing mechanism is

 

Call by value

 

92. Use of functions

 

Avoid of repeating

 

93. Which of the following function prototype is perfectly acceptable?

 

Int function (int Temp = & h01)); - не разберу записи в блокноте

 

94. Where the default values of parameter have to be specified?

 

Function definition

 

95. If the type specified of parameters of a function is followed by an ampersand & that function call is

 

By reference

 

96. Function templates can accept

Any type of parameters

 

97. Inline function is ____

 

Asks the computer to copy code into program instead of making call

 

98. Function Overloading is ____

 

With same name and different parameters

 

 

99. Differences between references and pointers:

 

All of them

 

100. Default Arguments of function

 

Function call with omitted parameters

 

101. What is the output of this program?

 

102. Unary scope resolution operator is

 

::

 

103. Recursive function

 

Function that call themselves

 

104. Which of the following is the proper declaration of a pointer?

 

Int *x;

 

105. Which of the following gives the memory address of integer variable a?

 

& a

 

106. Which of the following gives the memory address of a pointer a?

 

a

 

107. Which of the following gives the value stored at the address pointed to by the pointer a?

 

*a

 

108. Which of the following is the proper keyword to allocate memory?

 

Malloc

 

109. Which of the following is the proper keyword to deallocate memory?

free

 

110. Which of the following is a static string?

 

Char string [100];

 

111. Which statement ends all strings?

 

‘/0’

 

112. What is the output?

 

 

 

 


Поделиться с друзьями:

mylektsii.su - Мои Лекции - 2015-2024 год. (0.012 сек.)Все материалы представленные на сайте исключительно с целью ознакомления читателями и не преследуют коммерческих целей или нарушение авторских прав Пожаловаться на материал