General Programming and Framework Concepts

A quiz covering programming concepts across multiple languages including Java threading, C#/.NET fundamentals, and Delphi/C++ Builder components.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

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

  1. TBitBtn
  2. TButton
  3. TSpeedButton
  4. TDepressedButton
Question 2 Multiple Choice (Single Answer)

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
Question 3 Multiple Choice (Single Answer)

How many state a TCheckbox can have?

  1. 2
  2. 3
  3. 4
  4. Any number
Question 4 Multiple Choice (Single Answer)

Which of these is a valid path declaration?

  1. string s="c:\abc.txt";
  2. string s="c:/abc.txt";
  3. string s=@"c:\abc.txt";
  4. All are correct
Question 5 Multiple Choice (Single Answer)

Is Possible for Private Constructors in C#?

  1. Yes
  2. No
  3. Can't Say
  4. I don't know
Question 6 Multiple Choice (Single Answer)

Which of these has a connected architecture?

  1. DataTable
  2. DataView
  3. DataRelation
  4. DataSet
  5. None of these
Question 7 Multiple Choice (Single Answer)

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
Question 8 Multiple Choice (Single Answer)

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
Question 9 Multiple Choice (Single Answer)

What is the default port number when we use https?

  1. 80
  2. 500
  3. 443
  4. 543
Question 10 Multiple Choice (Single Answer)

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

  1. RequiredFieldValidator
  2. CustomValidator
  3. RangeValidator
  4. ValidationSummary
Question 11 Multiple Choice (Single Answer)

What is the default timeout for SqlCommand Object

  1. 10 sec
  2. 5 sec
  3. 30 sec
  4. 0 sec
Question 12 Multiple Choice (Multiple Answers)

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

  1. suspend()
  2. destroy()
  3. resume()
  4. stop()
Question 13 Multiple Choice (Single Answer)

In java, threads acquire lock over:

  1. Heap memory
  2. classes
  3. objects
  4. variables
Question 14 Multiple Choice (Single Answer)

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

  1. waiting state
  2. ready state
  3. sleeping state
  4. none
Question 15 Multiple Choice (Single Answer)

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

  1. IllegalMonitorStateException
  2. IllegalThreadStateException
  3. IllegalLockStateException
  4. InvalidLockException
Question 16 Multiple Choice (Single Answer)

Restarting a thread leads to:

  1. ThreadRestartExcetion
  2. IllegalThreadStateException
  3. IllegalMonitorStateException
  4. none
Question 17 Multiple Choice (Single Answer)

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

  1. sleep()
  2. join()
  3. activeCount()
  4. none
Question 18 Multiple Choice (Multiple Answers)

Which of the following are not the methods of Thread class

  1. wait()
  2. notify()
  3. notifyAll()
  4. start()
Question 19 Multiple Choice (Multiple Answers)

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
Question 20 True/False

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

  1. True
  2. False