What will be the values of i and z after the following code is executed : -Technology

1 Answer

Answer :

Value of i = 10Value of z = 5

Related questions

Description : What values will be displayed in JOptionPane when the following code is executed? -Technology

Last Answer : No value will be displayed in JOptionPane because it will give exception in thread ‘main’ due to null.

Description : What will be the final value of variable x after the following code is executed: -Technology

Last Answer : The value is:1

Description : What will be displayed in jTextFieldl and jTextField2 after the following code is executed : -Technology

Last Answer : OutputjTextFieldl will contain value = 12jTextField2 will contain value = 13

Description : Explain with the help of an example that why should atransaction be executed as a whole or it should be not executed at all -Technology

Last Answer : A transaction is a set of changes that must be made together. It is a program unit whose execution mayor may not change the contents of a database. Transaction is executed as a single unit. ... from one bank account to another requires two changes to the database both must succeed or fail together

Description : ‘Class’ table has columns RNO and NAME. The following statements are executed: -Technology

Last Answer : Output for the 1st SELECT * FROM Class ; statement -RNONAME5Rajeev6Chris7FerozeOutput for the llnd SELECT * FROM Class; statementRNONAME5Rajeev6Chris

Description : ……………. are not machine instructions and therefore, Java interpreter generates machine code that can be directly executed by the machine that is running the Java program. A) Compiled Instructions B) Compiled code C) byte code D) Java mid code

Last Answer : C) byte code

Description : What is the output of the following piece of code when executed in Python shell? >>> a=("Check")*3 >>> a a) (‘Check’,’Check’,’Check’) b) * Operator not valid for tuples c) (‘CheckCheckCheck’) d) Syntax erro

Last Answer : c) (‘CheckCheckCheck’)

Description : What is the output when following code is executed ? >>>list1 = [11, 2, 23] >>>list2 = [11, 2, 2] >>>list1 < list2 is a) True b) False c) Error d) None

Last Answer : b) False

Description : What is the output when following code is executed ? names1 = ['Amir', 'Bear', 'Charlton', 'Daman'] names2 = names1 names3 = names1[:] names2[0] = 'Alice' names3[1] = 'Bob' sum = 0 for ls in (names1, names2, names3): ... if ls[1] == 'Bob': sum += 10 print sum a) 11 b) 12 c) 21 d) 22

Last Answer : d) 22

Description : What is the output when following code is executed ? >>>names = ['Amir', 'Bear', 'Charlton', 'Daman'] >>>print(names[-1][-1]) a) A b) Daman c) Error d) n

Last Answer : b) Daman

Description : What is the output when following code is executed ? >>>str1="helloworld" >>>str1[::-1] a) dlrowolleh b) hello c) world d) helloworld

Last Answer : a) dlrowolleh

Description : hat is the output when following code is executed ? >>>print r"\nhello" The output is a) a new line and hello b) \nhello c) the letter r and then hello d) error

Last Answer : d) error

Description : What is the output when following code is executed ? >>> str1 = 'hello' >>> str2 = ',' >>> str3 = 'world' >>> str1[-1:] a) olleh b) hello c) h d) o

Last Answer : b) hello

Description : A compiler is used to convert the following to object code which can be executed (A) High-level language (B) Low-level language (C) Assembly language (D) Natural language

Last Answer : (A) High-level language

Description : When the following code is executed what will be the value of x and y? int x = 1, y=0; y = x++; (A) 2, 1 (B) 2, 2 (C) 1, 1 (D) 1, 2

Last Answer : (A) 2, 1

Description : Memo data type allows you to store character type values in a table. -Technology

Last Answer : True Memo data type allows upto 65536 characters.

Description : Name the values that can be assigned to align attribute of tag. -Technology

Last Answer : The values that can be assigned to align attribute of tag are as follows:1. top2. bottom3. left4. right5. middle

Description : The frame attribute contains types of values. (a) 9 (b) 3 -Technology

Last Answer : (a) The frame attribute contains 9 types of values.

Description : Name any two values specified in frame attribute. -Technology

Last Answer : The values that can be specified for frame attribute are void and above.

Description : How many values can be specified in rules attribute of tag? -Technology

Last Answer : There are total five values that can be specified for rules attribute.

Description : Name the values that can be used in valign attribute. -Technology

Last Answer : The values that can be used in valign attribute are top, middle and bottom.

Description : There are total………… values for rules attribute in tag. -Technology

Last Answer : There are total 5values for rules attribute in tag.

Description : XML attribute values should always be enclosed in ………… . -Technology

Last Answer : XML attribute values should always be enclosed indouble quotes.

Description : In XML, ……….. cannot contain multiple values. -Technology

Last Answer : In XML,attributescannot contain multiple values.

Description : The values of the attributes are enclosed in double question marks. -Technology

Last Answer : False The values of the attributes are enclosed in double quotation marks.

Description : Write down the formula for adding values of cells A1 to A5. -Technology

Last Answer : Formula for adding values of cells A1 to A5 would be =SUM(A1 : A5).

Description : A chart is created on the basis of values in ……………… (a) mail merge -Technology

Last Answer : (c) A chart is a pictorial representation of data that created on the basis of values in a spreadsheet.

Description : The ……………. tool is used in speadsheet that creates a growth series, wherein subseguent values follow an increasing or a decreasing geometric pattern. -Technology

Last Answer : The Source tool is used in spreadsheet that creates a growth series, wherein subsequent values follow an increasing or a decreasing geometric pattern.

Description : Explain the various values associated with “scrolling” attribute of FRAME tag. -Technology

Last Answer : The scrolling attribute of FRAME tag can take 3 values:Yes will insert both the scrolls irrespective of the size of the sub-window.Auto will insert the scrolls only when the contents of the sub-window are not visible.No will not insert any scrolls even when all the contents are not visible.

Description : Mr. Sanjay wants to plot a bar graph for the given set of values of subject on x_axis and number of students who opted for that subject on -Technology

Last Answer : (i) plt.bar(x,y)(ii) plt.show()

Description : Write a numPy program to create a numPy array with all values as True printed 10 times. -Technology

Last Answer : This answer was deleted by our moderators...

Description : Using Python Matplotlib ...... can be used to count how many values fall into each interval a. line plot b. bar graph -Technology

Last Answer : (c)histogram

Description : In Pandas the function used to check for null values in a DataFrame is ..... -Technology

Last Answer : In Pandas the function used to check for null values in a DataFrame isisnull()

Description : Cconsider two objects x and y. x is a list whereas y is a Series. Both have values 20, 40,90, 110. What will be the output of the following -Technology

Last Answer : (a). will give the output as:[20,40,90,110,20,40,90,110](b). will give the output as:Justification: In the first statement x represents a list so when a list is multiplied by a number, ... series. When a series is multiplied by a value, then each element of the series is multiplied by that number.

Description : Predict the output displayed in text fields named jTextField2 and jTextField3 after running the above code. -Technology

Last Answer : (i) GREEN WORLD, CLEAN WORLD76 more characters can be entered(ii)length(),toUpperCase()

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 the value that will be stored in variable a after execution of the following code if : -Technology

Last Answer : (i) Value of a = 10, if initial value of a is 8(ii) Value of a = 17, if initial value of a is 10

Description : ………. reads the bar code information. -Technology

Last Answer : Barcode Reader reads the bar code information.

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 : Consider the following database: Product Code Product Name Date of sale QtySold Customer Name Amount -Technology

Last Answer : 1. Qty Sold and Amount fields2. ProductCode field3. Date/Time data type4. ProductCode, ProductName and CustomerName fields5. 6 fields and 5 records6. Validation Rule

Description : Write HTML code to set the image ‘Pen. jpg’ stored in ‘My Pictures’ folder in C: -Technology

Last Answer : The HTML code is .

Description : Write the extension of HTML code file. -Technology

Last Answer : The extension of HTML code file is.html or .htm

Description : What is the method of viewing the source code of the current page in the Web browser? -Technology

Last Answer : Right click on the Web page and then select View Source from the context menu.

Description : While writing HTML code, how do you find out how your Web page would look like? -Technology

Last Answer : For this, open the HTML code file in a Web browser.

Description : Identify the error(s) in the following HTML code. Also, write the correct code. -Technology

Last Answer : The error in the code is that in place of color attribute there should be bgcolor.The correct code is

Description : What is the use of tag in HTML code? Write any two options used with this tag. -Technology

Last Answer : The tag is used to change the size, color and type face of the text on HTML page. It uses attributes such as size, face etc.

Description : Identify the errors and write the correct HTML code 1. -Technology

Last Answer : 1. 2.

Description : What is the method of using comment line in the HTML code? -Technology

Last Answer : In HTML code, the comment line is declared as

Description : Write the HTML code to display horizontal line of red color. -Technology

Last Answer :

Description : Find error(s) in the following HTML code segment. Rewrite the correct code. -Technology

Last Answer : There should be type instead of style. So, correct line is