An HTML page can include links to CSS files and Javascript files. As a web browser loads a page, it also loads linked CSS and Javascript. A web browser can load multiple CSS at the same time, but it has to load Javascript files serially. Let's assume we have roundtrip latency between web browser and web server to be 200ms and download speed of 1000KBps. Let's also assume we have 3 CSS files 200KB each, and 2 Javascript files 100KB each. What is the best way to optimize the load time of the page?
- Move Javascript links over CSS links so that their download begins faster.
- Concatenate all CSS files to avoid latency on multipe CSS requests.
- Concatenate all Javascript files into one file to avoid latency on multipe Javascript requests.
- None of the above.
Programming
- The input to a user-defined function can consist of:
- Which of the following names would be best for the following Function (called NoName)? Function NoName(number As Double) As Double Return number ^ 3 + number ^ 3 End Function
- Consider the following event procedure that calls a Function procedure named Cube, which returns the cube of a number. Private Sub btnDisplay_Click(...) Handles btnDisplay.Click Dim num, result As Double num = CDbl(InputBox("Enter a number to cube:")) result = Cube(num) txtBox.Text = "The cube of " & num & " is " & result & "." End Sub Which of the following is a correct Function definition for Cube?
- Which statement is True in regard to the following code?
- What value is assigned to lblSum.Text by the following code?
- What is wrong with the following code?
- Which code example will calculate the number of checked items in a CheckedListBox named clbMovieNames and store the number in intCheckedMovies?
- The __ method can be used to place a new item at any position in a ListBox.
- Setting this property to True will put the items in a ListBox in alphabetical order.
- Which of the following code fragments calculates the average of 5 numbers input with an input box, and displays the result in lblResult?
- A difference between a ListBox and a drop-down ComboBox is __
- The SelectedItem property of a ListBox____.
- What is the difference in the execution of the Do Until Loop (first example) and the Do Loop Until (second example)?
- In the following statement that begins a For Next loop, what is the purpose of the Step clause?
- Which statement about the ListBox.Add method is true?
- A ToolTip is a ___ that allows the programmer to create a small popup message that displays when the user places the mouse over a control.
- Which type of loop uses a pretest to initialize a counter variable and then increment the counter variable at the end of each iteration?
- What is the difference in execution between the two following sections of code?
- All of the following are valid ComboBox style properties, except __
- The first item in a ListBox has an index of __
- Which type of loop repeats as long as its loop condition remains True?
- Which standard Visual Basic function returns the periodic payment amount for a loan?
- What will be the final value of intCount?
- The InputBox function always returns a __ value.
- If lstMonths is a ListBox, which of the following will cause an exception to be thrown?