If the value of basic = 1500, what will be the value of tax after the following  statement is executed
tax = basic > 1200 ? 200 : 100

1 Answer

Answer :

Ans. 200

Related questions

Description : int res = ‘A’; What is the value of res?

Last Answer : Ans. res will hold the ASCII value of ‘A’ which is 65.

Description : If int y = 10 then find int z = (++y * (y++ + 5));

Last Answer : Ans. Increment operator has the highest precedence. So, ++y and y++ will be evaluated starting from left. In ++y, the value of y will be incremented to 11 and then 11 will be used in the expression. When y++ is evaluated, the current ... int z = (++y * (y++ + 5)); = 11 * (11 + 5 ) = 11 * 16 = 176

Description : What are the types of casting shown by the following examples: (i) char c = (char)120; (ii) int x = ‘t’;

Last Answer : Ans. (i) Explicit casting (ii) Implicit casting

Description : Name any two library packages.

Last Answer : Ans. java.util, java.io

Description : Write one difference between / and % operator.

Last Answer : Ans. / is division operator while % is modulus operator which gives the remainder on dividing two numbers.

Description : Name the operators listed below i) < ii) ++ iii) && iv) ?:

Last Answer : Ans. i) Less than comparison operator ii) Increment operator iii) And logical operator iv) Ternary operator

Description : Write the output for the following: System.out.println(“Incredible” + “\n” + “world”);

Last Answer : Incredible world

Description : System.out.print(“BEST “); System.out.println(“OF LUCK”); Choose the correct option for the output of the above statements: (i) BEST OF LUCK (ii) BEST OF LUCK

Last Answer : Ans. (i) is the correct output. System.out.print() does not add a new line at the end because of which ‘OF LUCK’ gets printed on the same line as ‘BEST’.

Description : Classify the following as primitive or non-primitive data types: (i) char (ii) arrays (iii) int (iv) classes

Last Answer : Ans. (i) char – Primitive (ii) arrays – Non primitive (iii) int – Primitive (iv) Classes – Non primitive

Description : What is meant by a package.Give an example

Last Answer : Ans. Package in Java is a mechanism to encapsulate a group of classes, sub packages and interfaces., examples : lang , io , util etc..

Description : Write a difference between Unary and Binary Operator

Last Answer : Ans. Operators that acts on one operand are referred to as Unary Operators while Binary Operators acts upon two operand Unary + or Unary – , increment/decrement are the example of Unary operator While binary operator +,-,*,/ and % are the example of binary operators , (+) adds values of its operands

Description : What is the output when following statement is executed ? >>>"a"+"bc" a) a b) bc c) bca d) abc

Last Answer : b) bc

Description : statement block is executed atleast once for any value of the condition. a. For statement b. Do-while statement c. While statement d. None of these

Last Answer : b. Do-while statement

Description : In Visual Basic .NET or Visual C# programming, when would you use Structured Query Language (SQL)? How are they executed? 

Last Answer : ADO.NET handles most of the database communication for you behind-thescenes. You would only use SQL statements when generating ad-hoc queries for the database. You execute SQL statements by ... returning statements, such as DELETE, INSERT INTO, or UPDATE statements, use the ExecuteNonQuery method.

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

Last Answer : The value is:1

Description : Programs are executed on the basis of a priority number in a A) Batch processing system B) Multiprogramming C) Time sharing D) None of these

Last Answer : Answer : B

Description : In latest generation computers, the instructions are executed A) Parallel only B) Sequentially only C) Both sequentially and parallel D) All of above

Last Answer : Answer : C

Description : The ___________ contains the address of the next instruction to be executed. a) IR b) PC c) Accumulator d) System counter

Last Answer : Answer: b Explanation: PC stands for program counter (It contains the address of the next instruction to be executed)

Description : The operation executed on data stored in registers is called_______ A. Macro-operation B. Micro-operation C. Bit-operation D. None of the Above

Last Answer : B. Micro-operation

Description : _______ is a programming language that is interpreted & executed directly by the computer: a) Machine Language b) Assembly Language c) HTML d) None of These

Last Answer : a) Machine Language

Description : Programs are executed on the basis of a priority number in a: a) Batch processing system b) Multi-Programming c) Time sharing d) Real Time e) None of these

Last Answer : a) Batch processing system

Description : Concurrent Process are: a) process that do not overlap in time b) process that overlap in time c) process that are executed by a processor at the same time d) None of The Above

Last Answer : b) process that overlap in time

Description : The register which keeps track of the execution of a program and which contains the memory address of the instruction currently being executed is known as: a) Index Register b) Memory Address Register c) Program Counter d) None of The Above

Last Answer : c) Program Counter

Description : The finally block is executed: a) Only when a checked exception is thrown b) Only when a unchecked exception is thrown c) Only when an exception is thrown d) Irrespective of whether an exception is thrown or not e) None of The Above

Last Answer : d) Irrespective of whether an exception is thrown or not

Description : ..... is a set of Keywords, s symbols, and a system of rules for constructing statements by which humans can communicate the instructions to be executed by a computer... 1) A Computer Program 2) A Programming Language 3) An Assembler 4) Syntax

Last Answer : 2) A Programming Language

Description : When a computer is first turned on or restarted, a special type of absolute loader called____ is executed 1) Compile and Go loader 2) Boot loader 3) Bootstrap loader 4) Relating loader

Last Answer : 3) Bootstrap loader

Description : When a computer is first turned on or restarted, a special type of absolute loader called____ is executed 1 Compile and Go loader 2 Boot loader 3 Bootstrap loader 4 Relating loader

Last Answer : 3 Bootstrap loader

Description : Which of the following is the operation executed on data stored in registers? (1) Bitoperation (2) Macrooperation (3) Microoperation (4) Byteoperation 

Last Answer : Microoperation

Description : Can multiple catch blocks be executed for a single try statement?

Last Answer : No. Once the proper catch block processed, control is transferred to the finally block (if there are any). 

Description : Can multiple catch blocks be executed for a single try statement?

Last Answer : No. Once the proper catch block processed, control is transferred to the finally block (if there are any).

Description : Point out the wrong statement. a) In theory, any application can run either completely or partially in the cloud b) The location of an application or service plays a fundamental role in how the ... unit, under the control of an integrated program CSE-R17.BLOGSPOT.COM d) None of the mentioned

Last Answer : None of the mentioned

Description : What is the output when following statement is executed ? >>> print(‘x\97\x98’) a) Error b) 97 98 c) x\97 d) \x97\x98

Last Answer : c) x\97

Description : What is the output when following statement is executed ? >>>print('new' 'line') a) Error b) Output equivalent to print ‘new\nline’ Page No 22 c) newline d) new line

Last Answer : c) newline

Description : What is the output when following statement is executed ? >>>"abcd"[2:] a) a b) ab c) cd d) dc

Last Answer : c) cd

Description : “Enterprises should mandate that security investments, services, and projects in the cloud are executed to achieve established business goals” is a key objective of _____________ a) Strategic Alignment b) Value Delivery c) Risk Mitigation d) Sustained Performance

Last Answer : Strategic Alignment

Description : Suppose d = { john :40, peter :45}, what happens when we try to retrieve a value using the expression d[ susan ]? a) Since susan is not a value in the set, Python raises a KeyError ... Python raises a KeyError exception d) Since susan is not a key in the set, Python raises a syntax error

Last Answer : c) Since “susan” is not a key in the set, Python raises a KeyError exception

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 : Operational audit differs in many ways from an audit of financial statements. Which of the following is the best example of one of these differences? a. The usual audit of the financial statement ... audit are often drawn from an organization chart and are not limited to a single accounting period.

Last Answer : The boundaries of an operational audit are often drawn from an organization chart and are not limited to a single accounting period.

Description : In EDSAC, an addition operation was completed in _____ micro seconds. (A) 4000 (B) 3000 (C) 2000 (D) 1500

Last Answer : (D) 1500

Description : With the selector switches set for R X 10,000 and the leads placed in the proper receptacles, the needle settles on the '150' mark. What is the resistance value between the leads? EL-0047 A. 1500 ohms B. 150,000 ohms C. 1,500,000 ohms D. 1.5 ohms

Last Answer : Answer: C

Description : Hydrogen content in petroleum products varies from 12 to 15% (by weight). As a result the difference between gross and net heating value of petroleum fuels varies in the range of __________ kcal/kg. (A) 600-750 (B) 250-350 (C) 1000-1500 (D) 2000-2500

Last Answer : (A) 600-750

Description : Calorific value of bituminous coal may be around __________ Kcal/kg. (A) 500 (B) 1500 (C) 6500 (D) 20000

Last Answer : (C) 6500

Description : Calorific value of wood gas is about __________ kcal/Nm3 . (A) 1500 (B) 3300 (C) 5400 (D) 8500

Last Answer : (B) 3300

Description : Gasification of the solid fuel converts its organic part into combustible by interaction with air/oxygen and steam so as to obtain a secondary gaseous fuel of high calorific value having no ash. Gasification reactions are ... __________ °C. (A) 400-500 (B) 900-1000 (C) 1400-1500 (D) 1700-1800

Last Answer : (B) 900-1000

Description : A 4 pole lap wound dc shunt motor rotates at the speed of 1500 rpm, has a flux of 0.4 mWb and the total number of conductors are 1000. What is the value of emf? (A) 100 Volts. (B) 0.1 Volts. (C) 1 Volts. (D) 10 Volts.

Last Answer : Ans: D Given N = 1500 rpm, Φ = 0.4 mWb, Z = 1000, P = 4, & A= 4 Therefore, Eb = NΦPZ / 60 A = 1500 x 0.4 x 4 x 1000 x 10^-3 / 60 x 4 = 60/6 = 10 volts

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

Last Answer : Value of i = 10Value of z = 5

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 : If a system after undergoing a series of processes, returns to the initial state then  (a) process is thermodynamically in equilibrium  (b) process is executed in closed system cycle  (c) its entropy will ... sum of heat and work transfer will be zero  (e) no work will be done by the system.

Last Answer : Answer : d

Description : What is the time of removal the tensor from the newly executed A T Weld? (i) 15 minutes after pouring. (ii) 20 minutes after pouring* (iii) 25 minutes after pouring. (iv) 30 minutes after pouring.

Last Answer : (ii) 20 minutes after pouring*

Description : In an 8085 microprocessor, the contents of the Accumulator, after the following instructions are executed will become   XRA A   MVI B, F0 H   SUB B  (A) 01 H (B) 0F H (C) F0 H (D) 10 H

Last Answer : In an 8085 microprocessor, the contents of the Accumulator, after the following instructions are executed will become   XRA A   MVI B, F0 H   SUB B  (A) 01 H (B) 0F H (C) F0 H (D) 10 H