Test
CISP
Este test tiene tipos de pregunta que se abren en el reproductor de siempre.
Preguntas del test (28)
1What do computer programmers say about the fact that computers can't tell the difference between goood or bad? [blank_start]____[blank_end]
- AGIGO
2Declare integers [6]= 12, 2, 3, 7, 10, 90
What is the subscript of data value 7- A8
- B90
- C3
3Hows do you declare a set of Arrays sizes in a program?[blank_start]___[blank_end]
- Aint
4Given the following array, declaration declare integer MyScore [3][3]= 66, 77, 88, 100, 200, 101, 95, 22, 1
What value is stored ?
[2] [0]
66 ,77 ,88
100,200,101
95 ,22 ,1- A66
- B88
- C200
- D95
5What allows you to store a group of values in memory? [blank_start]______[blank_end]
- AArrays
6Which of the following statements is true after the code is executed?
- Aset z=x
- Bset x=y
- Cset y=z
7In the bubble sort algorithm, given an Array named Array & the variable that holds the subscript is named i, the two arguments sent into the swap module are:
- Ai[i] & i[j-1]
- Bi[j+1] & i[j-1]
- Ci[j-1] & i[j+1]
- Di[j] & i[j+1]
8When placing the elements in an array in descending order The [blank_start]selection[blank_end] sort begins by finding & placing the largest value in element 0
- Aselection
9What algorithm cuts in half the elements? [blank_start]______[blank_end]
- Abinary
10What type of loop will we use for input validation? [blank_start]Do-while[blank_end]
- ADo-while
11What type of loop we do not use in C++? [blank_start]until[blank_end]
- Auntil
12What would this code display if it was executed?
Declare integer SIZE=5
Declare integer Array [SIZE]={1, 3, 4, 6, 7}
Display "The element is", Array[4]- A2
- B6
- C7
- D1
13Which of the searching arrays allows you to decend or ascend ? [blank_start]Bubble-sort[blank_end]
- ABubble-sort
14When we open a file what we do? [blank_start]Read the file[blank_end]
- ARead the file
15What we do at the end once we read the file? [blank_start]close the file[blank_end]
- Aclose the file
16What library we used to open and close files?
- Aiostream
- Bstring
- Cfstream
- Dopen close++
17If I want to write a menu-driven program what kind of statements should I use?
- Aswitch & case statements
- Bwhile statement
- Cuntil statements
- Dthen statements
18What is Recursion?
- AA function that calls itself
- Ban integer that calls another one
- Can array
19What is the name of a function that repeats itself but is using n factorials? [blank_start]perfect fibonacci[blank_end]
- Aperfect fibonacci
20What is towers of hannoi?
- AIt's an algorithm that moves a set of disk from peg A to peg C in the same order.
- BIt's and algorithms that moves information from a tower to another.
- CIt's when information its stored in a tower.
21What is inheritance ?
- AParent class---> Class---> Subclass
- BSuper class--->Class---> Subclass
- CBig class--->Medium class--->Small class
22Whats it's a Constructor?
- A1. Has the same name of the class.
- B2. Has all the private parameters in order for it to not damage it needs to be declared as a constant.
- C3. Has all the public parameters, for the other modules.
- D4. 1 and 2 are correct.
23Whats are methods? [blank_start]assesors and mutators[blank_end]
ConstructorName()- Aassesors and mutators
24Give a class CAR & a class variable named Toyota which reference a CAR object, which is the correct way to create a CAR object
- Aset Toyota=CAR( )
- Bset CAR=New Toyota ( )
- Cset Toyota = New CAR ( )
- Dset Toyota =New CAR object
25A Methods that can be accessed by Entities outside the object are known as [blank_start]public[blank_end]
- Apublic
26In a bubble-sort what order are the elements int the array placed using the following
Call to a swap module:
//The array is named Paycheck
//P is the index value of an array element
iF Paycheck [P] < Paycheck [P+1] then
call swap (paycheck[P], paycheck [p+1]- AAscending
- BDescending
- CAlphabetic
- DNumeric
27If the input is invalid
- AThe program should discard it and prompt the user to enter the correct data.
- BThe program accepts the input and continues with the code.
- CAllows you to continue.
28What is assuming the identity of a subclass
- APolymorphism
- BBubble sort algorithm
- CCase statement
Información
- Descripción
- Test sobre CISP, creado por Michael Pérez Bonilla el 15/12/2019.
- Idioma
- English
- Visitas
- 4
- Etiquetas
- Valoración
- Aún sin valoraciones Valora este test