Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CS506 Web Design and Development Quiz No.1 Solved Fall Semester 2012-13
#1



CS506 Web Design and Development Quiz No.1 Solved Fall Semester 2012-13


1 What is true about abstract classes?

Ans: The objects of abstract classes can not be instantiated

2 What if we declare main method as private?

Ans: Program compiles but does not run

Reason : if we declare main method as private then the program compiles successfully but does not run because main method is the actual execution area if declared private then other classes will not be able to get access to main method and will not display (as in case of GUI)

3 which statement is used to execute Select statement?

Ans: rs = executeQuery(sql)

4 GetColumnCount ( ) is method of …………

Ans: ResultsetMetaData p#175

5 Window Listener events are of ………. types

Ans: 7 p#133

6 Constructor is replaced with……………. In Aplet

Ans init( ) p#202

7 Is it possible to have more than one main method within the same class?

Ans: False

Reason : There is only one main method all other classes are declared inside the main method to get access for this purpose main method is always declared as public

8 Create, Drop, Alter are ………

Ans DDL (Data Definition Languages) p#158

9 DNS stands for…………..

Ans: Data Source Name p#150

10 Pure abstract class is……..

Ans: Interface p#98


Another Quiz

Which of the following is a general purpose container?

Select correct option:

JFrame

Dialog

JPanel

[B] JApplet



Which of the following package needs to be import while handling files?

Select correct option:

java.util

java.io

java.awt

javax.swing


Exception handling code is written in _______

Select correct option:

try block ot confirm

catch block

finally block

throws clause


Which of the following stream is a Node stream?

PrintWriter

FileWriter

BufferedReader

All of given option



Which of the following stream read/write data in the form of bytes?

FileReader

FileWriter

PrintWriter

FileInputStream

Which of the following command is used to compile Java code?

java filename

javac filename.java

javac filename

java filename.java[/B]

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  cs201 quiz no 1 on 14 november 2011 Xpert 4 2,194 02-11-2020, 07:15 PM
Last Post: CatherineKelsche
  CS506 Web Design and Development Online Quiz No. 04 Solution Spring 2014 education-2014 0 3,295 08-05-2014, 03:15 PM
Last Post: education-2014
  CS402 Theory of Automata Quiz No.3 Discussions and Solutions Spring 2014 vuassignments 1 6,401 07-23-2014, 01:34 PM
Last Post: vuassignments
  CS504 Software Engineering -I Quiz No. 04 Solution 2014 Due Date 25th July 2014 Entboy 0 2,736 07-22-2014, 03:11 PM
Last Post: Entboy
  CS601 Data Communication Solved Quiz No. 3 Solutions Spring Fall 2014 vuassignments 0 3,390 07-21-2014, 01:41 PM
Last Post: vuassignments
  MGT501 -Human Resource Management Online Solved MCQS Quiz No.3 Spring 2014 vuassignments 0 3,521 07-18-2014, 03:26 PM
Last Post: vuassignments
  CS101 Introduction to Computing Quiz No 3 Solution Spring Fall July 2014 education-2014 0 2,689 07-18-2014, 02:40 PM
Last Post: education-2014
  CS301 Data Structures Quiz No.1 Solved Fall Semester 2012 Vuhelper 2 5,726 05-20-2013, 11:23 PM
Last Post: Vuhelper
  CS402 Theory of Automata Solve Quiz Final Term Paper February 2013 Vuhelper 0 3,952 02-02-2013, 04:34 PM
Last Post: Vuhelper
  CS401 Computer Architecture and Assembly Language Solve Quiz No.3 Fall 2013 Vuhelper 0 4,214 01-11-2013, 04:05 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)