General Programming and Framework Concepts
A quiz covering programming concepts across multiple languages including Java threading, C#/.NET fundamentals, and Delphi/C++ Builder components.
Questions
To use a button that can remain in a depressed position. We have to go for.
- TBitBtn
- TButton
- TSpeedButton
- TDepressedButton
A)TStaticText descends from TWinControl and has a window handle. B)TLabel descends from TWinControl but does not have window handle.
- A True and B False
- A False and B True
- A False and B False
- A True and B True
How many state a TCheckbox can have?
- 2
- 3
- 4
- Any number
Which of these is a valid path declaration?
- string s="c:\abc.txt";
- string s="c:/abc.txt";
- string s=@"c:\abc.txt";
- All are correct
Is Possible for Private Constructors in C#?
- Yes
- No
- Can't Say
- I don't know
Which of these has a connected architecture?
- DataTable
- DataView
- DataRelation
- DataSet
- None of these
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()); }
- x: 6 y: 16
- x: 10 y: 26
- x: 10 y: 15
- x: 6 y: 15
You need to store state data that is accessible to any user who connects to your Web application. Which object should you use?
- Session
- Application
- Response.Cookies
- Response.ViewState
What is the default port number when we use https?
- 80
- 500
- 443
- 543
Which of these Validation Controls does not have Control to Validate property?
- RequiredFieldValidator
- CustomValidator
- RangeValidator
- ValidationSummary
What is the default timeout for SqlCommand Object
- 10 sec
- 5 sec
- 30 sec
- 0 sec
Which of the following methods of Thread class cant be overridden by its subclass.
- suspend()
- destroy()
- resume()
- stop()
In java, threads acquire lock over:
- Heap memory
- classes
- objects
- variables
Thread.yield() might cause the thread, to move to which state.
- waiting state
- ready state
- sleeping state
- none
Invoking wait(), notify and notifyAll() methods without acquiring lock over an object will lead to:
- IllegalMonitorStateException
- IllegalThreadStateException
- IllegalLockStateException
- InvalidLockException
Restarting a thread leads to:
- ThreadRestartExcetion
- IllegalThreadStateException
- IllegalMonitorStateException
- none
Which of the following is not a static method of Thread class
- sleep()
- join()
- activeCount()
- none
Which of the following are not the methods of Thread class
- wait()
- notify()
- notifyAll()
- start()
Which of the following are public, static and final constants of Thread class
- Thread.MAX_PRIORITY
- Thread.NORM_PRIORITY
- Thread.LOW_PRIORITY
- Thread.MIN_PRIORITY
Is it compulsory for the subclass to declare the inherited synchronized method as synchronized while overriding it.
- True
- False