0

programming languages Online Quiz - 302

Description: programming languages Online Quiz - 302
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

WhatisDSN?

  1. Database server name

  2. Database source name

  3. Data server name

  4. Data source name


Correct Option: D

Dim x, y as integer. What is x and y data type?

  1. x as integer and y as integer.

  2. x as variant and y as integer.

  3. x as integer and y as variant.

  4. x as double and y as integer.


Correct Option: B

AI Explanation

To answer this question, we need to understand the data types of the variables x and y.

In the given code, x and y are declared as follows:

Dim x, y as integer

In this declaration, the variable x is not explicitly assigned a data type, while the variable y is explicitly declared as an integer.

Let's go through each option to understand why it is correct or incorrect:

Option A) x as integer and y as integer - This option is incorrect because the variable x is not explicitly declared as an integer.

Option B) x as variant and y as integer - This option is correct because when a variable is not explicitly assigned a data type, it is assigned the default data type, which is variant. Therefore, variable x is a variant, and variable y is explicitly declared as an integer.

Option C) x as integer and y as variant - This option is incorrect because the variable x is not explicitly declared as an integer.

Option D) x as double and y as integer - This option is incorrect because the variable x is not explicitly declared as a double.

The correct answer is B. This option is correct because x is a variant and y is explicitly declared as an integer.

Timer control contains how many events?

  1. 1

  2. 2

  3. 3

  4. 0


Correct Option: A

AI Explanation

To answer this question, you need to understand the concept of a Timer control.

The Timer control in programming is used to execute a piece of code at regular intervals. It allows you to perform a specific action repeatedly after a certain time interval.

The Timer control typically contains one event, which is the Tick event. The Tick event is triggered every time the specified interval elapses. You can write code in the Tick event handler to perform the desired action.

Based on this information, let's go through each option:

Option A) 1 - This option is correct. The Timer control contains one event, which is the Tick event.

Option B) 2 - This option is incorrect. The Timer control only contains the Tick event.

Option C) 3 - This option is incorrect. The Timer control only contains the Tick event.

Option D) 0 - This option is incorrect. The Timer control contains the Tick event.

Therefore, the correct answer is A) 1. The Timer control contains one event, which is the Tick event.

Which Control do not have events?

  1. DriveListBox Control

  2. Timer Control

  3. Common dialog control

  4. VScrollBar Control


Correct Option: C

What is a property to resize a label control according to your caption?

  1. Resize

  2. WordWrap

  3. Appearance

  4. AutoSize


Correct Option: D

It is possible to call oracle database through ADO control or Object.

  1. True

  2. False


Correct Option: B

What is the Dll required for running the VB?

  1. Vbrun300.dll

  2. VB6IDE.DLL

  3. VBSCC.DLL

  4. Vbrun6.dll


Correct Option: A

What is the size of the variant data type?

  1. 22 Byte

  2. 32 Byte

  3. 16 Byte

  4. None of the Above


Correct Option: D

How many event in VB6 form.

  1. 36

  2. 26

  3. 31

  4. 30


Correct Option: C

What is ODBC?

  1. Open Data Base Connectivity

  2. Open Data Base Connection

  3. Oracle Data Base Connectivity

  4. Oracle Data Base Connection


Correct Option: A

We can create CGI scripts in VB.

  1. True

  2. False


Correct Option: B

Objects resides in ADO?

  1. Connection

  2. Command

  3. Parameter

  4. Error

  5. Field

  6. DSN


Correct Option: A,B,C,D,E

How to set a shortcut key for label?

  1. Set UseMnemonic property to True

  2. Set DragMode property to 1

  3. Set LinkMode property to 1

  4. Put & in the lebel caption


Correct Option: A,D

Different types of error in VB?

  1. Syntax Errors

  2. System Errors

  3. Runtime Errors

  4. Logic Errors


Correct Option: A,C,D

Default property of datacontrol?

  1. Connection

  2. Line

  3. Shape

  4. Records


Correct Option: B,C

AI Explanation

To answer this question, you need to understand the default properties of a data control.

Option A) Connection - This option is incorrect because the default property of a data control is not the connection. The connection property is used to establish a connection to a data source.

Option B) Line - This option is correct because the default property of a data control is the line property. The line property determines the type of line that is used to display data in the data control.

Option C) Shape - This option is correct because the default property of a data control is the shape property. The shape property determines the shape of the data control, such as rectangular or circular.

Option D) Records - This option is incorrect because the default property of a data control is not records. The records property is used to store and manipulate data records.

The correct answer is B,C. The default properties of a data control are the line property and the shape property.

All programs written in the Java language (Java programs) are built from classes ?

  1. True

  2. False


Correct Option: A

Java APIs are libraries of compiled code

  1. True

  2. False


Correct Option: A

What makes the Java Program to provide Portability?

  1. Multithreading

  2. Encapsulation

  3. Byte Codes

  4. All the above


Correct Option: C

Java is featured with automatic memory menagement to manage memory in object lifecycle.

  1. True

  2. False


Correct Option: A
- Hide questions