Software Architect Questions


Q:

In 1990 a person is 15 years old. In 2000 that same person is 5 years old. How can this be possible?

Answer

 It can be possible in only B.C. i.e, Before Christ. That was about 2000 years ago.


 Given, 


 In 1990 B.C = 2000 + 1990 = 3990 years ago, a person is 15 years Old  


=> In 1995 B.C = 2000 + 1995 = 3995 years ago, the same person will be 10 years Old 


Therefore, In 2000 B.C = 2000 + 2000 = 4000 years ago, the same person will be 5 years Old.

Report Error

View answer Workspace Report Error Discuss

48 9336
Q:

Computer storage units smallest to largest?

Answer

The smallest unit of data storage in a computer is called Bit (Binary Digit). Half a byte (four bits) is called a Nibble.


 


1 bit (binary digit) = the value of 0 or 1


8 bits = 1 byte


1024 bytes = 1 kilobyte


1024 kilobytes = 1 megabyte


1024 megabytes = 1 gigabyte


1024 gigabytes = 1 terabyte


1024 terabytes = 1 petabyte


 


Hence, Computer storage units smallest to largest i.e, in ascending order is


 1 bit  <  1 byte  <  1 KB  <  1 MB  <  1 GB  <  1TB  <  1 PB.

Report Error

View answer Workspace Report Error Discuss

9 9326
Q:

what will be the output of the following code?

class Value
{
    public int i = 15;
}
public class Test
{
    public static void main(String argv[])
    {
        Test t = new Test();
        t.first();
    }
    public void first()
    {
        int i = 5;
        Value v = new Value();
        v.i = 25;
        second(v, i);
        System.out.println(v.i);
    }
    public void second(Value v, int i)
    {
        i = 0;
        v.i = 20;
        Value val = new Value();
        v =  val;
        System.out.println(v.i + " " + i);
    }
}

A) 15 0 2 B) 15 0 0
C) 15 20 0 D) 15 0 20
 
Answer & Explanation Answer: D) 15 0 20

Explanation:
Report Error

View Answer Report Error Discuss

4 8143
Q:

JavaScript is designed for following purpose

A) To add interactivity to HTML Pages. B) To Execute Query Related to DB on Server
C) To Style HTML Pages D) To Perform Server Side Scripting Opertion
 
Answer & Explanation Answer: A) To add interactivity to HTML Pages.

Explanation:
Report Error

View Answer Report Error Discuss

0 8081
Q:

How many ways are there to initialize int with a constant?

A) 1 B) 2
C) 3 D) 4
 
Answer & Explanation Answer: B) 2

Explanation:

There are two formats for initializers in C++ as shown in the example that follows. The first format uses the traditional C notation. The second format uses constructor notation.

int foo = 123;

 

int bar (123);

Report Error

View Answer Report Error Discuss

Filed Under: C++
Job Role: Software Architect

1 7370
Q:

Which of the following is Not an Operating System?

A) UNIX B) Windows NT
C) C++ D) DOS
 
Answer & Explanation Answer: C) C++

Explanation:

C++ is not an Operating System.

 

An Operating System is a collection of system programs that manages all the other programs application programs in a computer as well as the allocation and use of hardware resources such as the CPU, Memory and the Hard Disk Drive.

It acts as an interface between the hardware and the user level program.

It controls and facilitates the overall operation of a computer. 

 

Here

UNIX : UNIX is a popular multi-user, multitasking operating system (OS) developed at Bell Labs.

 

Windows NT : Windows NT is a family of operating systems produced by Microsoft, the first version of which was released in July 1993.

 

DOS : DOS is Disk Operating System. The term DOS can refer to any operating system.

 

C++ : C++ is a programming language and computing platform.

 

Hence, C++ is not an Operating System.

Report Error

View Answer Report Error Discuss

10 6604
Q:

Which dml command is used in conjunction with @@identity?

A) INSERT and UPDATE B) UPDATE and DELETE
C) SCOPE_IDENTITY and IDENT_CURRENT D) Commit and rollback
 
Answer & Explanation Answer: C) SCOPE_IDENTITY and IDENT_CURRENT

Explanation:

Using automatically incrementing IDENTITY columns is very popular with database developers. You don’t need to explicitly calculate unique surrogate keys when inserting new data, the IDENTITY column functionality does that for you. The IDENTITY feature also allows you to specify useful Seed and Increment properties. When you use an INSERT statement to insert data into a table with an IDENTITY column defined, SQL Server will generate a new IDENTITY value.

 

You can use the @@IDENTITY variable and the SCOPE_IDENTITY and IDENT_CURRENT functions to return the last IDENTITY value that has been generated by SQL Server. This is very useful when you need to return the key for the row that has just been inserted, back to the caller.

Report Error

View Answer Report Error Discuss

9 6330
Q:

GUI stands for

A) Graphical Universal Interface B) Graph Use Interface
C) Graphical Unique Interface D) Graphical User Interface
 
Answer & Explanation Answer: D) Graphical User Interface

Explanation:

GUI stands for Graphical User Interface.

 

A Graphical User Interface is a computer interface that allows users to interact with a device through graphical elements such as pictures and animations, as opposed to text-based commands.

Report Error

View Answer Report Error Discuss

9 6288