SSL Certificate
  • Suppose the days of the year are numbered from 1 to 365

Question 8

    Suppose the days of the year are numbered from 1 to 365 and January 1 falls on a Tuesday as it did in 2008. What is the correct For statement to use if you want only the numbers for the Thursdays in 2008?
     A.  
    For i As Integer = 365 To 1 Step -7
     B.  
    For i As Integer = 1 to 365 Step 3
     C.  
    For i As Integer = 3 To 365 Step 6
     D.  
    For i As Integer = 3 to 365 Step 7


3.33333 points 
Question 9


    What is the key difference between a group of check boxes attached to a group box and a group of radio buttons attached to a group box?
     A.  
    Check boxes cannot be attached to a group box
     B.  
    Only radio buttons can be toggled.
     C.  
    Only one radio button at a time can be checked.
     D.  
    The only difference is the shape of the control.


3.33333 points 
Question 10


    Which of the following is not a main type of event that can be triggered by user selections of items in a list box?
     A.  
    click event
     B.  
    DoubleClick event
     C.  
    SelectedIndexChanged event
     D.  
    FillDown event


3.33333 points 
Question 11


    Which of the following techniques always toggles the "on" and "off" states of a radio button control?
     A.  
    none of the above
     B.  
    Press on another radio button in the same group box.
     C.  
    Press the spacebar when the circle has the focus.
     D.  
    Set the Checked property equal to True.
     E.  
    Click on the circle or its caption with the mouse.


3.33333 points 
Question 12


    Which of the following is NOT a reason for using procedures?
     A.  
    They break a complex problem down into smaller pieces.
     B.  
    They can be reused easily.
     C.  
    They make it possible for a team of people to work together on a single program.
     D.  
    They make a program run faster.


3.33333 points 
Question 13


    When a file is opened for Append,
     A.  
    data written to the file replaces the data already there.
     B.  
    data written to the file are inserted at the beginning of the file.
     C.  
    data written to the file are added at the end of the file.
     D.  
    data may be read starting at the beginning of the file.


3.33333 points 
Question 14


    Which of the following steps turns off a timer control?
     A.  
    Make the timer control invisible.
     B.  
    Set the Interval property to zero.
     C.  
    Set the Enabled property to False.
     D.  
    None of the above.


3.33333 points 
Question 15


    When merging sequential files without duplications, one possible algorithm calls for opening two ordered files for input and a third file for output. Then, an item of data is retrieved from each ordered file and the item with precedence is written out to the third file. If, however, the two retrieved items are identical, which of the following should take place?
     A.  
    both items are written out to the third file and a new item is retrieved from each of the ordered files
     B.  
    both items are deleted and a new item is retrieved from each of the ordered files
     C.  
    neither item is written out to the third file and a new item is retrieved from each of the ordered files
     D.  
    one item is written into the third file and a new item is retrieved from each of the ordered files


3.33333 points 
Question 16


    If the loop is to be executed at least once, the condition should be checked at the
     A.  
    top of the loop
     B.  
    bottom of the loop
     C.  
    nothing should be checked
     D.  
    middle of the loop


3.33333 points 
Question 17


    Visual Basic is considered to be a
     A.  
    higher-level language
     B.  
    package
     C.  
    first-generation language
     D.  
    machine language


3.33333 points 
Question 18


    The largest possible value for the Value property in a scroll bar is determined by
     A.  
    the Maximum property.
     B.  
    the LargeChange property.
     C.  
    the Value property.
     D.  
    the Maximum property and the LargeChange properties together.
     E.  
    the Minimum property.


3.33333 points 
Question 19


     A.  
    None of the above
     B.  
    200
     C.  
    0
     D.  
    400
     E.  
    600


3.33333 points 
Question 20


    Which of the properties in a control's list of properties is used to give the control a meaningful name?
     A.  
    control1 name
     B.  
    Name
     C.  
    contextmenu
     D.  
    text


3.33333 points 
Question 21


    The process of transmitting values to a Sub procedure is known as
     A.  
    passing
     B.  
    convenying
     C.  
    referencing
     D.  
    evaluating


3.33333 points 
Question 22


    Suppose a variable is to tell whether or not the user wants further information. A good data type for such a variable is
     A.  
    string
     B.  
    integer
     C.  
    boolean
     D.  
    double


3.33333 points 
Question 23


    Suppose the Double variable num has the value 123.4567. What value will the following statement assign to num?
     A.  
    123.457
     B.  
    123.4567
     C.  
    123.46
     D.  
    123.45


3.33333 points 
Question 24


    Which of the following controls has a drop down arrow and an attached text box that allows users to type selections?
     A.  
    Both C and D
     B.  
    DateTimePicker
     C.  
    ComboBox
     D.  
    CheckedListBox
     E.  
    ListBox


3.33333 points 
Question 25


    Asc("A") is 65. What is displayed by txtBox.Text = Chr(65) & "BC"?
     A.  
    A BC
     B.  
    Not enought information is available
     C.  
    56667
     D.  
    ABC


3.33333 points 
Question 26


    Control break processing means which of the following?
     A.  
    A program that processes data based on a variable scope.
     B.  
    A program that processes data based on a variable that maintains a constant value.
     C.  
    A program that processes data based on a change to the value of a variable.
     D.  
    A program that processes data based on a variable type.


3.33333 points 
Question 27


    In analyzing the solution to a program, you conclude that you want to construct a loop so that the loop terminates either when (a < 12) or when (b = 16). Using a Do loop, the test condition should be
     A.  
    Do Until (a > 12) And (b = 16)
     B.  
    Do Until (a > 12) Or (b = 16)
     C.  
    Do Until (a < 12) And (b = 16)
     D.  
    Do Until (a < 12) Or (b = 16)


3.33333 points 
Question 28


    Which of the following methods is used to load a new picture into a picture box control?
     A.  
    picBox.Picture = LoadPicture(filespec)
     B.  
    picBox.Picture = filespec
     C.  
    picBox.Image = Image.FromFile(filespec)
     D.  
    picBox.Image = filespec


3.33333 points 
Question 29


    The ______ of a Sub procedure are vehicles for passing numbers and strings to the Sub procedure.
     A.  
    Call statements
     B.  
    parameters
     C.  
    arguments
     D.  
    variables declared inside


3.33333 points 
Question 30


    The type of error that is normally spotted by the Code Editor is:
     A.  
    logical
     B.  
    run-time
     C.  
    user
     D.  
    syntax




Write a review

Please login or register to review

Suppose the days of the year are numbered from 1 to 365

  • $9.99


*All your data are SECURED & ENCRYPTED using a valid, trusted server certificate (Comodo SSL) and we don't store credit card information on our servers and all Payments are SECURED & handled by Paypal.
SSL CertificatePaypal

Tags: visual basic, multiple choice question, MCQ, Pseudocode