Anju, a beginner in java programming has written following code with some mistakes: -Technology

1 Answer

Answer :

int k=0;String s='Save Earth';int l=s.length();for(int i=0;k<l;i++){jTextArea1.append(s+' ');k++;}int i=0,k=0;String s='Save Earth';int l=s.length();do{jTextArea1.append(s+' ');k++;i++;}while(k<l);

Related questions

Description : Ruby, a class XI student has just started learning java programming. Help her in the following: (i) Explain her the concept of variable -Technology

Last Answer : (i)Variables are named storage location to store values temporarily which can be changed during program execution.Data type states the way the values of that type are stored, the operations that can be done ... setText( Just Pass );In the above if statement, value of marks is being compared with 40.

Description : Ruby, a class XI student has just started learning java programming. Help her in the following: -Technology

Last Answer : i. Variables are named storage location to store values temporarily which can be changed during program execution.Data type states the way the values of that type are stored, the operations that can be done ... setText( Just Pass );In the above if statement, value of marks is being compared with 40.

Description : (a) Following is a list of programming languages : BASIC, COBOL, C, JAVA -Technology

Last Answer : (a) JAVA, COBOL(b) jListl. getSelectedValue ( ) ;

Description : What was Hadoop written in? a) Java (software platform) b) Perl c) Java (programming language) d) Lua (programming language)

Last Answer : Java (programming language)

Description : . _____________ The open source clone of GFS. Written in Java. The programming interfaces are similar to POSIX but not identical. a) HDFS b) SAMIL c) SCIM d) DVE

Last Answer : HDFS

Description : Which one of the following is correct? (A) Java applets cannot be written in any programming language (B) An applet is not a small program. (C) An applet can be run on its own. (D) Applets are embedded in another applications. 

Last Answer : (D) Applets are embedded in another applications.

Description : Explain the purpose of pow() method with the help of suitable java code. Also mention that pow() method belongs to which class? -Technology

Last Answer : pow() method, a mathematical method, helps in calculating the power of any number.For example:int num=2,power=4;int ans=Math.pow(num,power);t1.setText(''+ans);The above code will calculate the value of 24 and will give answer 16.pow() method belongs to math class.

Description : Find the output of the following Java code snippet after execution of each java statement labelled -Technology

Last Answer : The output is:IN5inin5

Description : Write Java code to assign the value 10 to variable x and store its square value in another variable y. -Technology

Last Answer : class Square{public static void main (String args [ ]){int x. y ; x = 10 : y = x * x ;

Description : Find output of the following Java code snippet : -Technology

Last Answer : OutputDelhi 110001 10001

Description : A ____ is a namespace for organizing classes and interfaces in a logical manner. Placing your code into ______makes large software projects easier to manage. This section explains why this is useful and ... provided by the Java Platform: a) Inheritance b) Object c) Package d) None of These

Last Answer : c) Package

Description : A software company needs to develop a project that is estimated as 1000 function points and is planning to use JAVA as the programming language whose approximate lines of code per function point is accepted as 50. Considering a=1. ... ? (1) 11.2 months (2) 12.2 months (3) 13.2 months (4) 10.2 months

Last Answer : Generally, any projects are measured in weeks. However, the complex project might take more time depending on the level of object re-use available.

Description : Machine language sometimes referred to as (a) programming language that is used widely by the programmer. (b) machine code or object code -Technology

Last Answer : (b) Machine language sometimes referred to as machine code or object code because it is the language which is only understood by the computer as a computer itself is just a machine or an electronic device.

Description : Ms. Pari, a beginner in SQL is not able to understand the meaning of “Cancelling a Transaction”. Help her in understanding the same. -Technology

Last Answer : Cancelling a transaction means rolls the transaction to the beginning. It aborts any changes made during the transaction and the state of database is returned to what it was before the transaction began to execute.Rollback command is used for the same.

Description : Which programming language is the best for a beginner to learn?

Last Answer : Many experts say that PASCAL is the best computer language for beginning programmers.

Description : Anju Bobby George is related to -General Knowledge

Last Answer : answer:

Description : Anju and Bimal are partners in a business. Anju contributes 1 / 4 of the capital for 15 months and Bimal received 2 / 3 of the profit, for how long Bimal’s money was used ? A.5 months B.3months C.8 months D.10 months

Last Answer : Answer- D (10 months) Explanation- Let total profit is x Then Bimal's share in profit= (2/3)x so anju's share in profit= x- (2/3)x =x/3 so,we get ratios of profit of Anju :Bimal :: 1:2 Let total ... /4)P x b = 1/2 [ Capital x time =profit] so,we get b=10 Bimal's money was used for 10 months

Description : Who was the first Indian woman to take part in Olympic Games? (a) Merry La RO (b) P.T.Usha (c) Anju B.G. (d) K.Malleshwree

Last Answer : (a) Merry La RO

Description : The first Indian woman athlete to win a gold in Asian Games is . (a) P.T.Usha (b) Shayni Abhramn (c) kamaljit Sandhu (d) Anju B. G.

Last Answer : (a) P.T.Usha

Description : The following code is written to align the image in center in the browser’s window. -Technology

Last Answer : The reason for not getting the desired result is that center is not a value of align attribute in the tag.

Description : Sahiba, a website designer with “International Designers Pvt. Ltd.” has written the following code. -Technology

Last Answer : (i)These tags are part of XML code.(ii) (iii) and (iv)eid and deptid(v) false

Description : Dev, a website designer with “Creative Designers Pvt. Ltd.” has written the following code. Observe the code given below -Technology

Last Answer : (i) XML code(ii) Company(iii) name, dept(iv) eid, deptid

Description : When an algorithm is written in the form of a programming language, it becomes a _________ a) Flowchart b) Program c) Pseudo code d) Syntax

Last Answer : Answer: b Explanation: An algorithm becomes a program when it is written in the form of a programming language. Thus, any program is an algorithm

Description : Assume a systems development project effort calculation determines that the system  will require 240 function points. If the developers choose to implement this system in the  C programming language, approximately ... without more information  c. exactly the same  d. much greater  e. much less

Last Answer : e. much less

Description : Computer programs are written in a high level programming language, however, the human readable version of a program is called a) cache b) instruction set c) source code d) word size

Last Answer : c) source code

Description : Many experienced teachers go into a classroom and embark straight away upon a lesson. As a beginner to the teaching profession will you Options: A) adopt the same procedure B) make a written note of your preparation C) as the students alike D) None of these

Last Answer : B) make a written note of your preparation 

Description : Write java statement to make the Net Fee text field named txtNetFee un_editable at run time. -Technology

Last Answer : txtNetFee.setEditable(false);

Description : I love programming in Qbasic... and can't seem to learn C+ or Java... am I doomed?

Last Answer : answer:Try Just BASIC if you don’t plan to write code as a career. If you’re wanting a “bridge” to C++ or Java, try the PHP server-side scripting language or Python.

Description : Which organization first developed the Java programming language ?

Last Answer : Sun Microsystems first developed the Java programming language.

Description : Which is not the commonly used programming language for AI? a) PROLOG b) Java c) LISP d) Perl

Last Answer : d) Perl

Description : Java Programming Language was originally developed by Sun Micro-systems which was initiated by _______: a) James Gosling b) Charles Babbage c) Steford Pascal d) None of These

Last Answer : a) James Gosling

Description : Which of the following is not a programming language: a) Java b) Basic c) Knuth d) None of These

Last Answer : c) Knuth

Description : Java Programming language was invented by: a) Christopher Kelein b) Charles Babbage c) James Gosling d) Grace Hopper e) None of These

Last Answer : c) James Gosling

Description : ______provides a powerful and natural mechanism for organizing and structuring your software. It also explains how classes inherit state and behavior from their super classes and explains how to derive one class ... the java programming language: a) Object b) Inheritance c) Class d) None of These

Last Answer : b) Inheritance

Description : Which of the following is a popular Programming Language for developing multimedia Web pages, Websites and web-Based applications? 1) COBOL 2) JAVA 3) ASSEMBLER 4) Nine of these

Last Answer : 2) JAVA

Description : What second programming language did Google add for App Engine development? A. C++ B. Flash C. Java D. Visual Basic

Last Answer : Java

Description : Which of the following programming medium makes social networking widgets more prevalent than the past? A. HTML B. CSS C. JAVA D. AJAX

Last Answer : AJAX

Description : Java has its origin in A) C programming language B) PERRL C) COBOL D) Oak programming language

Last Answer : D) Oak programming language

Description : hich is not the commonly used programming language for AI? ⮚ PROLOG ⮚ LISP ⮚ Perl ⮚ Java script

Last Answer : ⮚ Perl

Description : Which is not the commonly used programming language for AI? A. PROLOG B. LISP C. Perl D. Java script

Last Answer : C. Perl 

Description : Which of the following is not a programming language? (A) Pascal (B) Microsoft Office (C) Java (D) C++

Last Answer : (B) Microsoft Office

Description : The pure object oriented programming language with extensive metadata available and modifiable at run time is (A) Small talk (B) C++ (C) Java (D) Eiffel

Last Answer : (A) Small talk

Description : Match the following types of variables with the corresponding programming languages: (a) Static variables (i) Local variables in Pascal (b) Stack dynamic (ii) All variables in APL (c) Explicit heap dynamic (iii) Fortran 77 (d) Implicit ... (ii) (C) (iii) (i) (iv) (ii) (D) (ii) (i) (iii) (iv)

Last Answer : (C) (iii) (i) (iv) (ii) 

Description : A computer programming language often used by children is (1) LOGO (2) PILOT (3) BASIC (4) JAVA

Last Answer : LOGO

Description : Assembly language is a low level programming language (a) makes use of mnemonics to interact with computer system -Technology

Last Answer : (a) Assembly language is a low level programming language that use mnemonics to interact with computer system.

Description : HTML is a programming language. -Technology

Last Answer : False Because it is a markup language.

Description : Identify the option, which is not a feature covered under device management? (a) Speed (b) Spooling (c) Sharing (d) Programming -Technology

Last Answer : (d) Among given options, programming is not a feature covered under device management.

Description : Many of the programming brains has shifted their focus from Proprietary software to Free and Open software. -Technology

Last Answer : Any two freedom offered by Free software are:The freedom to run the program for any purpose.The freedom to redistribute copies.It is Freeware as freeware software are freely distributed and used ... but the source code is not available while source will be available with Free software.Openoffice.org

Description : Mr. Suman, a programmer in New Era Programming World has designed a registration page for a hobby club as shown below: -Technology

Last Answer : (i) int x=c1.getSelectedIndex();int fee=0;if(x==0)fee=1000;else if(x==1)fee=1500;else if(x==2)fee=2000;else if(x==3)fee=2500;t2.setText(''+fee);(ii) double disc=0;int fee=Integer.parseInt(t2. ... (t2.getText());double net=fee-disc;t4.setText(''+net);(iv) System.exit(0);(v) c1.addItem('Reading');