Upwork DELPHI 6 TEST 2016

Hello Freelancer, Welcome to allupworktestanswers.com Here to get the DELPHI 6 TEST of Latest version 2016. We are ready here to provide your desire upwork test answer. We already tested all exam test information Available include on here. So Dear, Why Late? Read the below full exam test and get more information from our website. 
1. Which of the following are the valid DeviceType property values for the TMediaPlayer component?

  1. dtAutoSelect
  2. dtMP3
  3. dtExternalDevice
  4. dtAudio
  5. dtTV
  6. dtMPEG3
  7. dtDAT
  8. dtDigitalVideo
2. Which of the following are valid identifier names for a variable?
  1. Cust_no5
  2. Cust no5
  3. 5Cust_No
  4. cUSTNo
  5. custno 5
  6. cust&no
3. TDataSet is a base class from which other database components are inherited to encapsulate which database object(s)?
  1. A Table
  2. A Trigger
  3. A Field
  4. A Query
  5. A DBAware Component
  6. A Stored Procedure
4. Which of the following will add text to a TMemo component called Memo1?
  1. Memo1.Lines.Add(‘Text’);
  2. Memo1.AddLine(‘Text’);
  3. Memo1.Lines.Include(‘Text’);
  4. Memo1.Lines.Append(‘Text’);
5. What is the purpose of the AutoMerge property in the TMainMenu component?
  1. It determines if main menus of secondary forms merge with the main menu of the main form in non-MDI applications at runtime
  2. It determines if sub menu items are automatically merged with the parent menu items if there is only a single sub menu item
  3. It determines if the main menu items can be automatically resized at runtime so that they provide a “best fit” in a resizable form
  4. It determines if the TMainMenu component can correct menu item short cut key conflicts with existing Windows short cut keys
6. What component is used to link two datasets in a master/detail relationship?
  1. TTable
  2. TDataSource
  3. TMasterDetail
  4. TDatabase
7. Which of the following will link a TUpDown control named UpDown1 with an Edit box named Edit1, allowing the TUpDown control to modify the values in the Edit box?
  1. UpDown1.Associate := Edit1;
  2. UpDown1.Link := Edit1;
  3. UpDown1.Link(Edit1);
  4. Link(UpDown1,Edit1);
8. What is the purpose of the “Break” procedure?
  1. It causes the flow of control to exit the current function or procedure and execute the next logical code statement
  2. It causes the current thread to suspend execution to allow other threads to operate
  3. It simulates the user pressing the Break key on the keyboard
  4. It causes the flow of control to exit a loop and continue at the next statement following the loop
9. For a TQuery component called Query1 with SQL of “Select * from Student Where Number=500”, which of the following is the correct method to run the query?
  1. Query1.Active:=True;
  2. Query1.RunSQL;
  3. Query1.ExecuteAction(SQL);
  4. Query1.ExecSQL;
10. What does the Cancel property of the TButton object do?
  1. It automatically displays Cancel as the button caption
  2. It determines if the button’s OnClick event handler is called when the Escape key <Esc> is pressed on the keyboard
  3. It calls the parent forms’ OnClose event
  4. It causes a popup menu to be displayed when the button is clicked which permits the user to select Cancel
11. Which property of TBitBtn allows you to specify what image to display on the button?
  1. BitBtn1.CaptionImage
  2. BitBtn1.Image
  3. BitBtn1.Glyph
  4. BitBtn1.Picture
12. What is the value of the variable int_temp after the for loop has ended in the code shown?
  1. 1
  2. 2
  3. 5
  4. The value of int_temp is undefined
13. Which of the following will connect a DataSource to a Table where the Datasource component is call DataSource1 and the Table component is called Table1?
  1. DataSource1.Table:=Table1;
  2. DataSource1.DataSet:=Table1;
  3. DataSource1.Source:=Table1;
  4. DataSource1.SetTable(Table1);

14. Which of the following is a event of TPanel?
  1. OnClose
  2. OnExit
  3. OnTerminate
  4. OnDoubleClick
15. Given the code “Edit1.Hint := ‘Customer Name|Enter Customer Name in the edit box’;”, which of the following is the correct code to retrieve the text after the | character, i.e. “Enter Customer Name in the edit box”, when the OnHint handler is called?
  1. GetLongHint(Application.Hint);
  2. GetHint(Application.Hint);
  3. GetShortHint(Application.Hint);
  4. GetSecondHint(Application.Hint);
16. Which three properties of TProgressBar are responsible for setting the minimum, maximum and current position for the control?
  1. Maximum, Minimum & Percentage
  2. Maximum, Minimum & Position
  3. Max, Min & Position
  4. Max, Min & Pos
17. What does the code shown do?
  1. Creates an array to store two Integers
  2. Creates an array to store two Variants
  3. Creates an array to store one hundred Integers
  4. Creates an array to store ninety nine Integers
18. What happens if the TreeView1.Items list is empty when the code “TreeView1.Items.AddFirst(TreeView1.Items[0],’X’);” is executed?
  1. An X appears as the top most node in the TreeView
  2. An “Index is out of bounds” error message is displayed
  3. An ETreeViewError exception is raised with the message ‘Invalid Index’
  4. An X appears as a sub node to the first node in the TreeView
19. Given a TPageControl component called PageControl1 with three TabSheets called TabSheet1, TabSheet2 and TabSheet3 (in that order), which of the following will make TabSheet2 selected?
  1. PageControl1.TabIndex:=1;
  2. TabSheet2.Show;
  3. PageControl1.ShowTab(TabSheet2);
  4. PageControl1.VisibleTab:=TabSheet2;
  5. TabSheet2.Click;
  6. TabSheet2.Select(PageControl1);
20. Given that x and y are variables declared as type Char, which of the following is NOT a valid Pascal assignment statement?
  1. x := y;
  2. x := Char(Ord(Y)+1);
  3. x := Char(#22);
  4. x := y + #22;
21. Which of the following is the correct code to cause a popup menu named Popupmenu1 on a form called Form1 to be displayed?
  1. Application.DisplayMenu(Form1.Popupmenu1);
  2. Form1.Popupmenu1.Popup(20,30);
  3. Form1.Popupmenu1.ShowMenu;
  4. Form1.ShowMenu(Popupmenu1);
22. How does a TRichEdit differ from a TMemo?
  1. TRichEdit prevents users from overwriting existing text, whereas TMemo does not
  2. TRichEdit allows saving directly to text files, whereas TMemo does not
  3. TRichEdit prevents font attributes from being changed by the user, whereas TMemo does not
  4. TRichEdit allows font attributes to be set, whereas TMemo does not
23. Which of the following is the correct method to activate a modal open dialog box when using the TOpenDialog component?
  1. OpenDialog1.OpenFile;
  2. OpenDialog1.GetFile;
  3. OpenDialog1.Filename;
  4. OpenDialog1.Execute;
24. Which of the following is the correct code to create an object from class TMainForm?
  1. Form.Create(TMainForm);
  2. Application.CreateForm(TMainForm, MainForm);
  3. TMainForm.CreateForm(MainForm);
  4. MainForm:=Application.CreateFormInstance(TMainForm);
25. What files end with the .dpk extension?
  1. Unit Source files
  2. Project Source files
  3. Package Source files
  4. Delphi Library
26. What is the main difference between TLabel and TStaticText?
  1. TStaticText has a Window Handle and can accept focus whereas TLabel does not have a Window Handle and cannot accept focus
  2. TStaticText allows the user to edit the text displayed whereas TLabel does not allow the user to edit the text displayed
  3. TLabel’s caption property can be changed programmatically whereas TStaticText’s Caption property cannot be changed programmatically
  4. TLabel does not have a ShowAccelChar property whereas TStaticText does have a ShowAccelChar property
27. Which of the following changes a TDBNavigator component called DBNavigator1 so that it only displays navigation buttons?
  1. DBNavigator1.VisibleButtons := [nbFirst,nbLast,nbPrior,nbNext];
  2. DBNavigator1.NavigationOnly := True;
  3. DBNavigator1.Buttons := [nbFirst,nbLast,nbPrior,nbNext];
  4. DBNavigator1.Constraints := [nbFirst,nbLast,nbPrior,nbNext];
28. Which of the following retrieves the value from the SNumber field as a string for the current record in an open Table called Table1?
  1. Table1.Field.SNumber.AsString;
  2. String(Table1.Fields(‘SNumber’));
  3. Table1.FieldByName(‘SNumber’).AsString;
  4. Table1.Items.String(‘SNumber’);
29. What value is displayed on screen when the procedure test is called?
  1. 5
  2. 13
  3. 8
  4. 3
30. What is the purpose of the Alignment Palette?
  1. To change the order or position of the components in the Visual Component Library
  2. To align the main IDE Windows to each other
  3. To align components to the form, or with each other
  4. To set the alignment property of any components on a form
31. Which of the following would cause all the items in a RadioGroup to be appended so that all items appear twice?
  1. Radiogroup1.Items.Duplicate;
  2. Radiogroup1.Append(Radiogroup1);
  3. Radiogroup1.Items.Append(rgALL);
  4. Radiogroup1.Items.AddStrings(Radiogroup1.Items);
32. Which of the following is the correct code to cause a form named Form1 to be displayed as modal?
  1. Form1.Show;
  2. ShowModal(Form1);
  3. Form1.ModalResult:=mrOk
  4. Form1.ShowModal;
33. Which of the following is the correct code to “tick” a TCheckBox component called CheckBox1 as shown?
  1. CheckBox1.Checked:=True;
  2. CheckBox1.Ticked:=True;
  3. CheckBox1.Tick(True);
  4. CheckBox1.Enabled:=True;
34. What does the TDBLookupComboBox component do?
  1. It allows a field value to be selected from a TList object specified by the programmer
  2. It performs a search for a field with the same name as the text entered
  3. It allows the selection of a database from a list of those found on a network
  4. It identifies a set of field values in one dataset with a corresponding set of values from another dataset
35. From the code shown, how many times would the ShowMessage procedure be called if the button in question was clicked three (3) times?
  1. 0
  2. 1
  3. 2
  4. 3
36. In the code shown, TMyClass inherits from which parent class?
  1. TApplication
  2. TObject
  3. Inheritance does not take place
  4. TMyClass
37. Which of the following removes the SQL statement from a TQuery component called Query1?
  1. Query1.SQL.Delete;
  2. Query1.Delete(SQL);
  3. Query1.SQL.Clear;
  4. Query1.Enabled:=False;
38. What does the code shown do?
  1. Loads the number 1 into the DH register
  2. Loads the number 1 into the dh variable
  3. Loads the character ‘1’ into the dh variable
  4. Loads the value in the dh variable into the DH register
39. Which of the following is NOT an event of the TApplicationEvents component?
  1. OnActionExecute
  2. OnBusy
  3. OnMessage
  4. OnHint
  5. OnException
  6. OnSettingChange
40. When will the code “Application.Terminate;” be executed in the code shown?
  1. When the user presses the Cancel button
  2. Every time the procedure is executed
  3. When the user presses the Ok button
  4. Never
41. What is the shortcut key for manually displaying the code completion window while entering code?
  2. CTRL + ESC
  3. CTRL + ALT + TAB
  4. CTRL + Page Down
42. The TTimer component has a property which determines how frequently the OnTimer event occurs. Which of the following is that property and what does the property measure?
  1. Property: Time, Measured in: Seconds
  2. Property: Timer, Measured in: Hundreds of a second (1/100 Sec)
  3. Property: Interval, Measured in: Milliseconds (1/1000 Sec)
  4. Property: Tick, Measured in: Clock Ticks
43. Given a ComboBox named ComboBox1 and an Edit box named Edit1, which of the following is the correct code to add the information in the Edit box to the drop down list in the ComboBox?
  1. ComboBox1.Items.Add(Edit1.Text);
  2. ComboBox1.Strings := ComboBox1.Strings + Edit1.Text;
  3. ComboBox1.List.AddItem(Edit1.Text);
  4. ComboBox1.Append(Edit1.Text);
44. Which of the following properties when set to True, enables an application to gain sole access to a database?
  1. TDatabase.OthersReadOnly
  2. TDatabase.KeepConnection
  3. TDatabase.Params
  4. TDatabase.Exclusive
45. What is the purpose of Code Templates?
  1. To provide easy access to commonly used programming statements
  2. To allow the creation of Document Templates from existing source code
  3. To provide easy access to Native Databases without using components
  4. To allow the conversion of selected code to a procedure
46. What does the procedure shown do?
  1. It moves the contents of the file c:autoexec.bat to the file c:outfile.txt
  2. It moves the contents of the file c:outfile.txt to the file c:autoexec.bat
  3. It copies the contents of the file c:autoexec.bat to the file c:outfile.txt
  4. It copies the contents of the file c:outfile.txt to the file c:autoexec.bat
47. What is the purpose of the TDataModule?
  1. To provide a login to a secured or an encrypted database
  2. To provide a temporary storage area of query results
  3. To provide a location for centralized handling of non-visual components
  4. To provide a connection to a remote database server
48. What is the purpose of the AlphaBlend property of TForm?
  1. It specifies the background color of the form
  2. It specifies if the form is translucent or not
  3. It specifies if the form is available for drawing on via TCanvas
  4. It specifies the redrawing speed of the form
49. What is the purpose of the Initialization section of a Unit?
  1. It contains assembly code that is executed on PC startup
  2. It contains statements that are executed on unit start up
  3. It contains Window handling code
  4. It contains program management code and should not be edited directly by a programmer
50. Which key toggles between the Object Inspector and the Edit Window / Form?
  1. ALT + O
  2. F11
  3. F4
  4. CTRL + ALT + TAB

Finally no more words require about the DELPHI 6 TEST  information in this session of this content. If you are require knowing more, Please ask to us via our contact us form or comment box. Please make sure that, you don’t send Personal information via the Comment box.  Thank you very mutch for being with us.