Which of the following member function do all the sequential containers (vector, list, deque) have? In the explanation, tell what the member does/returns.

a) begin()
b) end()
c) rbegin()
d) rend()
e) push_front()
f) pushback()
g) front()
h) back()


a) begin()
b) end()
c) rbegin()
d) rend()
f) pushback()
g) front()
h) back()

Computer Science & Information Technology

You might also like to view...

In the accompanying figure, the circled item is the ____ square.

A. Opacity level B. Set color of glow C. Structure style D. Blend mode color

Computer Science & Information Technology

(To-Do List Application) Use a JTextArea as a to-do list. Enter each item in a JTextField, and add it to the JTextArea by clicking a JButton. The item should be displayed in a numbered list as in Fig. 8.27. To do this, you will need JTextArea method getLineCount, which returns the number of lines in a JTextArea. The following statement assigns the number of lines displayed in the outputJTextArea to int variable counter: getLineCount, which returns the number of lines in a JTextArea. The following statement assigns the number of lines displayed in the outputJTextArea to int variable counter:

```
int counter = outputJTextArea.getLineCount();
```

```
a) Copying the template to your working directory. Copy the directory C:Examples Tutorial08ExercisesToDoList to your C:SimplyJava directory.
b) Opening the template file. Open the ToDoList.java file in your text editor.
c) Adding code to the event handler for the Add JButton. Add code to the addJBut- tonActionPerformed event handler (which begins in line 82) to obtain the number of lines displayed in the outputJTextArea. Get the user input from taskJText- Field append it the outputJTextArea with a line number in front of it. After the input is added to the outputJTextArea, clear the taskJTextField.
d) Saving the application. Save your modified source code file.
e) Opening the Command Prompt window and changing directories. Open the Command Prompt window by selecting Start > Programs > Accessories > Command Prompt. Change to your working directory by typing cd C:SimplyJavaToDoList.
```

Computer Science & Information Technology

The ____________________ property controls the amount of white space between letters.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Which of the following is a good practice when creating strong passwords?

A) Commonly misspelled words and abbreviations B) Spell words backwards. C) Use personal information so you can remember it more easily. D) Use a combination of upper and lower case letters, numbers, and symbols.

Computer Science & Information Technology