CS506 Midterm Solved MCQS by Junaid Malik
CS506 Midterm Solved MCQS by Junaid Malik
1. Which of the following feature provides the facility for multiple inheritance?
a. Adapter classes
b. Wrapper classes
c. Interfaces Page No 95
d. Collections
2. setColor() is a method of _ object.
a. JPanel
b. JFrame
c. Graphics page No 175
d. Image
3. If we want to animate something like ball, moving from one place to another.
we constantly need to call paint () method.
a. True
b. False Page NO 176
4. If we want to call toString() method of parent class in JAVA. Which of the
following statement will be used?
a. this. toString();
b. new. toString();
c. sub. toString();
d. super.toString(); p page NO 57
5. Which of the following syntax is used to create a client socket?
a. Socket s = new Socket(“serverName”);
b. Socket s = new Socket(serverport);
c. Socket s = new Socket(“serverName”, serverPort); page No 195
d. Socket s = new Socket(serverPort, “serverName”);
6. In order to include graphics in your Java program, it is mandatory to extend
from class.
a. JLabel
ÂL-JÛÑÂÎD TÊCH
b. JFrame
13.Which of the following driver type(s) has better performance than other?
a. Type 1: JDBC - ODBC Bridge
b. Type 2: Native - API/partly Java driver
c. Type 3: Net - protocol/all-Java driver
d. Type 4: Native - protocol/all-java driver page No 169
14.Which of the following syntax is used to create a Server Socket?
a. ServerSocket ss = new ServerSocket(“serverName”);
b. ServerSocket ss = new ServerSocket(serverPort); page No 197
c. ServerSocket ss = new ServerSocket(“serverName”, serverPort);
d. ServerSocket ss = new ServerSocket(serverPort, “serverName”);
15.The keyword "this" is used to
a. invoke constructor of the another class
b. invoke alternate constructor of the same class page 55
c. invoke constructor of super class from sub class
d. invoke constructor of sub class from super class
16.An applet can be defined as:
a. A small program written in Java and included in an HTML page
page 182
b. A small program written in JSP and included in an HTML page
c. A small program written in Servlet and included in an HTML page
d. A small program written in JSF and included in an HTML page
17. Choose the correct syntax to define an interface named as "Speaker" in java
language
a. public class Speaker{}
b. public interface class Speaker{}
c. public interface Speaker{} Page NO 95
d. public Speaker class interface{}
18. Teacher java class wants to inherit from Employee.java class,
keyword should be used in blank space in given code to apply inheritance
class Teacher ---------- Employee{
ÂL-JÛÑÂÎD TÊCH
public static void main (String args[]){
}}
a. inherit
b. implement
c. extends Page No 56
d. override
19. is correct syntax to create a general purpose container “myPanel”
having flow layout.
a. JPanel myPanel = new JPanel (FlowLayout()};
b. JPanel myPanel = new JPanel (new FlowLayout};
c. JPanel myPanel = new JPanel (new FlowLayout()}; Page No
110.
d. JPanel myPanel = JPanel (FlowLayout()};
20. Java is a _ language.
a. Complicated
b. Not portable
c. Static
d. Multi threaded Page No 22,24
21. Which one of the following blocks always executes irrespective of exception
occurrence?
a. Try block
b. Catch block
c. Throws block
d. Finally block Page No 72
22. Based on functionality, the streams can be categorized as
a. Byte oriented stream and Node stream
b. Filter stream and Character oriented stream
c. Node stream and Filter stream Page No 83
d. Byte oriented stream and Character oriented stream
23.Bytecodes are created and stored on disk by .
a. editor
ÂL-JÛÑÂÎD TÊCH
b. compiler Page no 30
c. class loader
d. bytecode verifier AL-JUNAID INSTITUTE OF GROUP
23. Static methods can only access
a. Instance variables
b. Instance methods
c. Static variables and methods page 50/Concept
a. MouseListener
b. KeyListener AL-JUNAID INSTITUTE OF GROUP
c. WindowlListener
a. ObjectInputStream
b. Buffered Reader Page No 83 & 85
c. StringTokenizer
d. None of these
57. Which of the following statements is true regarding Vectors with no specified
base type?
a. A base type is needed, because Java needs to know how to allocate
memory.
b. No base type is needed, because Java will use the Object class as a
base type. My Point of View
c. If a base type is not specified the code will not compile.
d. No base type is needed because Vectors default to storing String
objects.
58.A serializable class must implement the method(s)
a. readObject and writeObject
b. Either readObject or writeObject, or both, depending upon the desired
behavior
ÂL-JÛÑÂÎD TÊCH
c. No need to implement any method page no 204
d. None of the given option
59.You can --------- to a network using sockets.
a. Read
b. Write
c. Read/Write (Page 207)
d. None of these
60. Socket is a -------------- communication channel between hosts.
a. Uni-directional
b. Bi-directional (Page 194 )
c. Multi-directional
d. None of these
61. Which of the following are passed as an argument to the paint ( ) method?
a. A Canvas object
b. A Graphics object page 186/173
c. An Image object
d. A paint object
68.A member variable or method prefixed by the protected access modifier can be
accessed:
a. Within the same class
b. Within the sub-class
c. Within the same package
d. All of the above page no 46 HO
69.A top level class without any modifier is accessible to
a. any class
b. any class within the same package page no 46 HO
c. any class within the same file
d. any subclass of this class
70. A top level class may have only the following access modifier.
a. Package
ÂL-JÛÑÂÎD TÊCH
b. Private
c. Protected
d. Public page no 46 HO
71.In Java an abstract class cannot be sub-classed
a. True
b. False page 93
72.Given a one dimensional array arr, what is the correct way of getting the
number of elements in arr
a. arr.length google
b. arr.length — 1
c. arr.size — 1
d. arr.lengthO AL-JUNAID INSTITUTE OF GROUP
73.Which of these are valid declarations for the main method?
a. public void main();
b. public static void main(String args[]); (Page 26)
c. static public void main(String);
d. public static int main(String args|]);
74.In Java, which of these classes implement the LayoutManager interface?
a. RowLayout
b. ColumnLayout
c. GridBagLayout My Point of View
d. Flow LayoutManager
75.Border Layout is the default layout manager for a JFrame’s content pane
a. True My Point of View
b. False
76.You want a class to have access to members of another class in the same
package. Which is the most restrictive access that accomplishes this objective?
a. public
b. private
c. protected page 46
d. transient
e. default access
77.In Java garbage collection is done by
ÂL-JÛÑÂÎD TÊCH
a. JVM (Java Virtual Machine) (Page 50)
b. Programmer
c. Both JVM (Java Virtual Machine)and Programmer
d. OS (Operating System)
e. None of given
78.Which of following can be thrown using the throw statement?
a. Error
b. Throwable
c. Exception (Page 72)
d. RuntimeException
e. All of Given
79.A final class can't be extended.
a. True My Point of View
b. False
80.Java program code is compiled into form called
a. Machine code
b. native Code
c. Byte Code (Page 16)
d. Source Code
81.Overloading is _whereas overriding is
a. Run time binding, compile time binding
b. Late binding, compile time binding
c. Compile time binding, run time binding My Point of View
d. Run time binding, late time binding
c. addListener()
d. registerListener()
103. If a class needs to handle events generated by button then which of the
following interface a classneeds to implement?
ÂL-JÛÑÂÎD TÊCH
a. ComponentListener
b. KeyListener
c. MouseListener
d. Action Listener (Page 128)
104. Which of the following function is declared in MouseMotionListener
interface?
a. public void mousePressed (MouseEvent me);
b. public void mouse Dragged (Mouse Event me); (Page 122)
c. public void mouseClicked (MouseEvent me);
d. public void mouseEntered (MouseEvent me);
105. Window Listener interface contains methods.
a. Four
b. Six AL-JUNAID INSTITUTE OF GROUP
c. Seven (Page 124)
d. Eight
106. Mouse events can be trapped for GUI component.
a. JPanel
b. JFrame
c. JButton
d. Allofgiven (Page 122)
107. Which of the following package needs to import while interacting with
relational database?
a. java.io
b. java.sql (Page 137)
c. javax.swing
d. java.awt
108. DSN stands for
a. Data System Name
b. Domain system Name
c. Data Source Name page No 138
d. Database System Name
b. interface
c. Both inheritance and interface
d. None of these
149. Which of the following range of response code indicates that request was
successful?
a. 100-199
b. 200-299 (page 234)
c. 300-399
d. 400-499
150. Which of the following method of an Applet is called every time when page
is minimized?
a. start()
b. init()
c. stop() (Page 185)
d. destroy()
151. Which of the following statement is true regarding paintComponent()
method?
a. It tells any components contained by this component to paint themselves.
b. It tells the component to paint its border.
c. It first paints the background and then performs custom painting.
Pg170
d. It first performs custom painting and then paints the background
152. Which of the following is NOT true for an Applet?
a. A small program written in Java and included in a HTML page.
b. It is independent of the operating system on which it runs.
c. They have no access to the client’s file system.
ÂL-JÛÑÂÎD TÊCH
(Page 181) and Conceptual
d. An applet is a Panel that allows interaction with a Java program
153. Which of the following syntax is used to get ResultSetMetaData object?
a. ResultSetMetaData md = con.getMetaData(); // where con is Connection
object
b. ResultSetMetaData md = rs.getMetaData() // where rs is ResultSet
object (Page 156)
c. ResultSetMetaData md = st.getMetaDataQ); // where st is Statement
object
d. not
183. A hash map object is to create, to store Teacher objects as values and their
CNIC in the form of strings as keys.Which syntax is correct for this
requirement?
a. HashMap<String> h =new HashMap<String=();
b. HashMap<String, Teacher> h =new HashMap<String, Teacher>();
page 279 HO
c. HashMap<Teacher> h =new HashMap<String, Teacher>();
d. HashMap<Teacher> h =new HashMap<Teacher>();
184. A scrollable and updatable ResultSet object has the following capabilities
except
a. insert new rows
b. insert new columns Page 144 HO
c. delete rows
ÂL-JÛÑÂÎD TÊCH
d. update rows
185. Which of the following classes is capable to instantiate?
a. Abstract class
b. Concrete class Page 83 HO
c. Interface class
d. None of the given
186. It is verified by that not all bytecodes violate java security
restrictions.
a. Editor
b. Compiler
c. class loader
d. bytecode verifier Page 12 HO
187. An event in java is represented as
a. Operator
b. Function
c. Object Page 103 HO
d. Primitive data type
188. In given lines of code, is applying.
double a = 9.5;
int b = (int) a
a. upcasting a to b type
b. upcasting b to a type
ÂL-JÛÑÂÎD TÊCH
c. downcasting a to b type page 44 HO
d. downcasting b to a type
189. The is directly connected with keyboard.
a. File stream
b. Character oriented stream
c. Node stream google
d. Filter stream
190. For each class contained in java source file, compiler generates
class file/s.
a. One Page 8 HO
b. Two
c. Three
d. Four
191. In given lines of code, is applying.
int a = 20:
double b = a;
a. upcasting a to b type Page 43 HO
b. upcasting b to a type
c. downcasting a to b type
d. downcasting b to a type
192. Which of the following methods is called only once during the life cycle of
an Applet?
a. start( )
b. paint()
c. stop()
d. destroy() Page 185 HO
e. init() Page 184
HOHere is Two answer
193. If there is a class "Student", then the java file must be saved with
name.
a. Student_File java
b. student.java
c. Any name
d. Student.java
194. Which feature of the following features is not included in Java language?
ÂL-JÛÑÂÎD TÊCH
a. Inheritance
ÂL-JÛÑÂÎD TÊCH
b. Polymorphism
c. Pointer manipulation Page 2 HO
d. Data encapsulation
195. Which of the following is a valid variable name in Java?
a. 1xu
b. Vu.506
c. NumberOfStudent
d. Long
196. A port is a to which processes can listen for connections request.
a. Local Address Page 194
b. Server Address
c. Client Address
d. Transport Address
197. Which of the following statements is a correct statement for “mouse release”
event in “MouseListener” interface?
a. public void mouseRelease(MouseEvent me)
b. Public void mouseRelease(MouseEvent me
c. public void mouseReleased(MouseEvent me) Page 114 HO
d. Public void mouseReleased(MouseEvent me)
198. Which of the given will clear all the previous painting?
a. super.paintComponent() page 171 HO
b. super paint()
c. super. repaint()
d. super.redraw()
199. _is/are not part of java core language.
a. ArrayList class page 04 HO
b. Variables
c. Arrays
d. Objects
200. in a collection class creates a collection with no elements.
a. Constructors page 45 HO
b. Class
c. Function
d. Array
ÂL-JÛÑÂÎD TÊCH
201. == operator compares of strings whereas equals() method
compares of strings.
a. Values, addresses
b. Addresses, values Page 19 HO
c. Size, addresses
d. Addresses, size
202. Assume that we do not want to serialize phoneNum attribute of Personinfo
class, this can be done by;
a. server String phoneNum;
b. client String phoneNum;
c. transient String phoneNum; Page 208 HO
d. serializable String phoneNum:
203. Java program’s code is compiled into a form called_ .
a. Machine code
b. Byte code Page 8 HO
c. Native code
d. Source code
204. You must include a to declare an exception that might be
thrown to another method.
a. try block
b. finally block
c. catch block
d. throws-clause Page 57 HO
205. In the context of Java Graphics, which of the following methods we should
override while painting?
a. paint() Page 170 HO
b. paintComponet( )
c. paintBorder( )
d. paintChildern( )
206. Which of the following features is not available in Java?
a. Data hiding
b. Data encapsulation
c. Single inheritance
d. Multiple inheritance Page 27 HO
ÂL-JÛÑÂÎD TÊCH
207. Which of the following is a correct registration method for Focus Listener
interface?
a. addFocusListener
b. addFocusedListener
c. regFocusListener
d. regFocusedListener
208. Which of the given statement objects are used to execute using same query
multiple times by only changing parameters?
a. Statement
b. CallableStatement
c. PreparedStatement
d. Both PreparedStatement and CallableStatement
209. ArrayList is an example of collection type.
a. Sequence based AL-JUNAID INSTITUTE OF GROUP
b. Set based
c. Hashmap based
d. None of the given
210. The output of given someTest function is _.
public void someTest( ) {
int x;
System.out.printIn(x);
}
a. x
b. syntax error
c. compile time error Page 30 HO
d. run time error
211. HTTP works on port _.
a. 21
b. 23
c. 80 Page 193 HO
d. 84
212. is correct syntax to get component area of“myFrame” top level
container.
a. Container c = myFrame.getComponentPane();
b. Container c = myFrame.getContentArea();
ÂL-JÛÑÂÎD TÊCH
c. Container c = myFrame.getContentPane(); page 92 HQ
d. Container c = myFrame->getComponentArea();
213. How many methods are there in the Serializable Interface?
a. Zero AL-JUNAID INSTITUTE OF GROUP
b. One
c. Two
d. Three
214. Which one of the following is not a method of MouseListener interface?
a. Pressed
b. Clicked
c. Moved Page 113 HO
d. Released
215. Which of the given methods is/are declared for“MouseListener” interface?
a. MouseMoved
b. MouseDragged
c. MousePressed Page 113 HO
d. MouseKeyPressed
216. In editor java programs are created while stored on/in .
a. Disk page 11 HO
b. primary memory
c. external file
d. usb
217. Following are the code statements used in java event handling. Identify the
code statement that is used for handling an event.
CONFIRM IT BY YOURSELF
a. button = new JButton("Reset") Page 105 HO
b. button.addActionListener(this)
c. container.setLayout(new FlowLayout());
d. public void actionPerformed(ActionEvent
e) polymorphism
218. In are overridden.
a. Variables
b. Methods
c. Data types Page 8 HO
d. Classes
ÂL-JÛÑÂÎD TÊCH
219. understands the byte code?
a. Operating system
ÂL-JÛÑÂÎD TÊCH
b. Java compiler page 8 HO
c. Java Virtual Machine
d. Java Interpreter
220. Which of the following code statement is used to define a connection URL?
a. Class.forName(“sun.jdbc.odbc.JdbcOdbcDriver)
b. Connection abc = DriverManager.getConnection(conURL)
Page 113 HO
c. String asd = “jdbc:odbc:DSNname”
d. Statement xyz = abc.createStatement()
221. Which of the following is a top level container?
a. JPanel
b. ToolBar
c. ScrollPane AL-JUNAID INSTITUTE OF GROUP
d. Dialog Page 90 HO
222. A variable declared as static in a class is a/an
a. Instance variable
b. Class variable Google
c. Const variable
d. Global variable
223. JDBC-ODBC stands for _.
a. Java DataBase Connectivity- Oracle DataBase Connectivity
b. Java DataBase Corporation- Open DataBase Corporation
c. Java DataBase Corporation- Oracle DataBase Corporation
d. Java DataBase Connectivity- Open DataBase Connectivity
Google
224. is required in order to get an object from collection.
a. Up-casting
b. Down casting
c. Implicit casting My Point of View
d. None of the given options
225. Choose the correct syntax to declare an abstract java classnamed as
"Person".
a. abstract public class Person{}
b. public class Person abstract{}
c. public class abstract Person{}
ÂL-JÛÑÂÎD TÊCH
d. public abstract class Person{} Pge 83
226. Which of the following is a correct statement for “mouse click” event in
“MouseListener’” interface?
a. public void mouseclicked (MouseEvent me)
b. public void MouseClicked (MouseEvent me)
c. public void mouseClicked (MouseEvent me) Page 114
d. public void Mouseclicked (MouseEvent me)
227. All java files in a directory are compiled using command in
command prompt.
a. javac *.java Page 6
b. javac all.java
c. javac all
d. java *.java
228. In the context of Socket Programming, the client does NOT know about the
hostname of the machine on which the server is running.
a. True
b. False Page 194
229. How many ports are available for TCP socket?
a. 64
b. 64k Page 193
c. 128
d. 128k AL-JUNAID INSTITUTE OF GROUP
230. Which of the following function will be used to register event handler with
events generator, where event generator is button?
a. AddAction()
b. addActionListener() Page 107
c. addListener()
d. registerListener
231. Which of the following statement object is used to execute precompiled SQL
statements?
a. Statement
b. PreparedStatement Page 140
c. CallableStatement
d. None of give Option
232. There are steps in order to communicate successfully with database.
ÂL-JÛÑÂÎD TÊCH
a. Six
b. Seven
c. Eight Page 132 HO
d. Nine
233. In given lines of code is static variable and is static
method.
System.out.printin(“CS506”);
JOptionPane.showMessageDialog(null,“CS506”)
a. System, JOptionPane
b. PrintIn, showMessageDialog
c. PrintIn, JOptionPane
d. Out, showMessageDialog page 33
234. The class that handles mouse event needs to implement the corresponding
interface and to provide the definition of:
a. One method in that interface
b. Two methods in that interface
c. All the methods in that interface Page 113
d. Do not need to provide definition of methods in that interface
235. ResultSet provides various getters to retrieve _.
a. data of the column page 144
b. data of the row
c. data of the row and column
d. column headers
236. Following are the code statements used in java event handling. Identify the
code statement that is used for registering event handler with event generator
a. b1 = new JButton("OK") page 105
b. b1.addActiobListener(this)
c. frame = new JFrame()
d. frame.setSize(150, 150)
237. If a class implements an interface then_
a. an interface must provide implementation of all methods
b. a class may or may not provide implementation of all methods of
interface
c. a class must provide implementation of all methods of interface
page 85
ÂL-JÛÑÂÎD TÊCH
d. class will compile successfully if class do not implements methods of
interface
238. The method "Math.random()" returns positive double value greater than or
equal to 1 or less than 10.
a. True
b. False page 187 HO
239. Which of the following exceptions can be caught in a throw clause?
a. Null pointer exception Google
b. Index out of bounds exception
c. Division by zero exception AL-JUNAID INSTITUTE OF GROUP
d. IOException Page 56+60
240. The toString() method returns a representation of .
a. int,string
b. string,int
c. string,object Google
d. object,string
241. What will happen if main method is declared as private?
a. The program will not compile
b. The program will throw an exception at run
c. The program will compile and run successfully
d. None of given options page 18 HO
242. Which of the following stream is a Node stream?
a. PrintWriter
b. FileWriter
c. BufferedReader Page 69 HO
d. All of given option
243. The server just waits, listening to the socket for a client to make a
connection request.
a. True Page 193 HO
b. False
244. A default ResultSet object has a cursor that .
a. moves backward only
b. moves forward only page 143
c. moves backward and Forward
d. cannot move
ÂL-JÛÑÂÎD TÊCH
245. Java core language is than C++.
a. Simpler page 5 HO
b. Difficult
c. Complex
d. Less secure
246. Java does not handle exception by as keyword.
a. try
b. catch
c. exception page 56 HO
d. finally
247. In Java, Serializable Interface can be found under package.
a. java.io Page 203 HO
b. java.net
c. java.sql
d. java.util
248. If ResultSet is TYPE_FORWARD_ONLY then it when you call
to the previous () method.
a. Moves the cursor to previous row if cursor is on valid row page
145 HO
b. Returns false if cursor is not on valid row
c. Throws an exception
d. Executes normally
249. Which of the following Statements is true regarding paintChildren()
method?
a. It tells the component to paint its border
b. It first paints the background and then performs custom painting
c. If first performs custom painting and then paints the background
d. It tells any components contained by this component to paint
themselves page 170 HO
250. TELNET works on port.
a. 21
b. 23 Page 193
c. 80
d. 84
251. Which of the given Listener interface(s) have adopter class(s)?
ÂL-JÛÑÂÎD TÊCH
a. ActionListener
b. MouseMotionListener Page 119 HO
c. AdjustmentListener
d. ltemListener
252. Java compiler is called on UNIX or windows.
a. Javac Page 6 HO
b. java c
c. cjava
d. c java
253. Java language has a little worse performance than C++ language, because
a. it is object oriented
b. it uses built in libraries page 4 HO
c. it does not use pointers
d. it checks all errors, malicious and viruses
254. Which of the given Listener Interfaces is needed to handle the
“MouseEvent”?
a. MouseListener page 105 HO
b. MouseMotionListener
c. MouseActionListener
d. MouseFocusListener
255. In Java, Transient fields are returned as null on reading.
a. True page 208 HO
b. False
256. Which of the given Listener Interfaces is need to handle the “KeyEvent"?
a. MouseKeyListener
b. MotionKeyListener
c. KeyListener Page 105 HO
d. KeyActionListener
257. An applet is a JFrame that allows interaction with a Java program.
a. True
b. False Page 181 HO
258. Given code is showing the result of addition of two integer type numbers.
Choose correct output of this code.
Int i = 7; int j = 8; int k = i+j;
ÂL-JÛÑÂÎD TÊCH
System.out.printIn(“Seven” + i + “plus Eight” + j + “is” + k);
a. Seven 7 plus Eight 8 is 15
b. Seven i plus Eight j is k
c. Seven i plus Eight j is +15
d. Seven plus Eight is k
259. An applet is typically embedded in a Web page and can be run from a
browser.
a. True Page 181 HO
b. False
260. In Java, we can read/write to a network using sockets.
a. True
b. False page 206 HO
261. Which of the following statements attaches an output stream to console?
a. FileWriter fw = new FileWriter(“output.txt”); Page 80 HO
b. FileWriter fw = new FileWriter(FileDescriptor.out);
c. FileWriter fw = new FileWriter(FileDescriptor.in);
d. FileWriter fw = new FileWriter(FileDescriptor);
262. In java, adapter classes have been defined for the following listener
interfaces except interface
a. FocusListener
b. ComponentListener
c. MouseMotionListener
d. ItemListener Page 119 HO
263. In Java Graphics, while painting a swing component. which of the following
functions is invoked first?
a. Paint()
b. paintComponent() Page 169 HO
c. paintBorder()
d. PaintChildern()
264. If the subclass overrides all the abstract methods of super class, then
subclass is called _.
a. Abstract class
b. Concrete class Page 83 HO
c. Base class
d. Parent class
ÂL-JÛÑÂÎD TÊCH
265. Which of the following command is used to invoke an Applet from
command line interpreter?
a. Applet htmlfile
b. appletviewer htmlfile page 183 HO
c. appletviewer javafile
d. viewer htmlfile
266. The classes which contain the word _in their names are byte oriented
streams.
a. Reader
b. Writer
c. Stream Page 71 HO
d. Byte
267. Which of the following syntax is used to get DataBaseMetaData object?
a. DataBaseMetaData md = rs.getMetaData();
// where rs is ResultSet object
b. DataBaseMetaData md = st.getMetaData();
// where st is Statement object
c. DataBaseMetaData md = con.getMetaData();
// where con is Connection object Page 160 HO
d. DataBaseMetaData md = rsmd_.getMetaData();
// where rsmd is ResultSetMetaData object
268. In the context of Java Graphics; most of time, painting is done
automatically.
a. True Page 165 HO
b. False
269. How many ports are available for UDP socket?
a. 64
b. 128
c. 64k page 193 HO
d. 128k
270. is the correct syntax to set size of top-level container
“myFrame” as 200 rows in pixel and 400 columns in pixel.
a. myFrame.setSize(200,400) ;
b. myFrame.setSize(400,200) ;
c. myFrame->setSize(200,400) ;
ÂL-JÛÑÂÎD TÊCH
d. myFrame->setSize(400,200) ;