0
Alien head

programming languages Online Quiz - 26

Description: programming languages Online Quiz - 26
Number of Questions: 20
Created by:
Tags: programming languages

Is it compulsory for the subclass to declare the inherited synchronized method as synchronized while overriding it.

  1. True

  2. False

Answer: 1

Which of the following are public, static and final constants of Thread class

  1. Thread.MAX_PRIORITY

  2. Thread.NORM_PRIORITY

  3. Thread.LOW_PRIORITY

  4. Thread.MIN_PRIORITY

Answer: 1,2,4

Which of the following are not the methods of Thread class

  1. wait()

  2. notify()

  3. notifyAll()

  4. start()

Answer: 1,2,3

Which of the following is not a static method of Thread class

  1. sleep()

  2. join()

  3. activeCount()

  4. none

Answer: 2

Restarting a thread leads to:

  1. ThreadRestartExcetion

  2. IllegalThreadStateException

  3. IllegalMonitorStateException

  4. none

Answer: 2

Invoking wait(), notify and notifyAll() methods without acquiring lock over an object will lead to:

  1. IllegalMonitorStateException

  2. IllegalThreadStateException

  3. IllegalLockStateException

  4. InvalidLockException

Answer: 1

Thread.yield() might cause the thread, to move to which state.

  1. waiting state

  2. ready state

  3. sleeping state

  4. none

Answer: 2

In java, threads acquire lock over:

  1. Heap memory

  2. classes

  3. objects

  4. variables

Answer: 3

Which of the following methods of Thread class cant be overridden by its subclass.

  1. suspend()

  2. destroy()

  3. resume()

  4. stop()

Answer: 1,3,4

What is the default timeout for SqlCommand Object

  1. 10 sec

  2. 5 sec

  3. 30 sec

  4. 0 sec

Answer: 3

Which of these Validation Controls does not have Control to Validate property?

  1. RequiredFieldValidator

  2. CustomValidator

  3. RangeValidator

  4. ValidationSummary

Answer: 4

What is the default port number when we use https?

  1. 80

  2. 500

  3. 443

  4. 543

Answer: 3

You need to store state data that is accessible to any user who connects to your Web application. Which object should you use?

  1. Session

  2. Application

  3. Response.Cookies

  4. Response.ViewState

Answer: 2

What will be the values of x and y? { int x = 5; int y = 10; y += x++; System.Console.WriteLine("x:" + x.toString() + " y:" + y.toString()); }

  1. x: 6 y: 16

  2. x: 10 y: 26

  3. x: 10 y: 15

  4. x: 6 y: 15

Answer: 4

Which of these has a connected architecture?

  1. DataTable

  2. DataView

  3. DataRelation

  4. DataSet

  5. None of these

Answer: 5

Is Possible for Private Constructors in C#?

  1. Yes

  2. No

  3. Can't Say

  4. I don't know

Answer: 1

Which of these is a valid path declaration?

  1. string s="c:\abc.txt";

  2. string s="c:/abc.txt";

  3. string [email protected]"c:\abc.txt";

  4. All are correct

Answer: 4

How many state a TCheckbox can have?

  1. 2

  2. 3

  3. 4

  4. Any number

Answer: 2

A)TStaticText descends from TWinControl and has a window handle. B)TLabel descends from TWinControl but does not have window handle.

  1. A True and B False

  2. A False and B True

  3. A False and B False

  4. A True and B True

Answer: 1

To use a button that can remain in a depressed position. We have to go for.

  1. TBitBtn

  2. TButton

  3. TSpeedButton

  4. TDepressedButton

Answer: 3
+ View questions