Project Manager Questions


Q:

public static void main string[] args Meaning is?

Answer

Here in this declaration public static void main string[] args, each keyword has its importance.


 


1. public - Here public is an access specifier which allows the main method to be accessible everywhere.


 


2. static - static helps the main method to get loaded without getting called by any instance/object.


 


3. void - void clarifies that the main method will not return any value.


 


4. main - It's the name of the method.


 


5. String[] args - Here we are defining a String array to pass arguments at the command line. args is the variable name of the String array.

Report Error

View answer Workspace Report Error Discuss

8 2903
Q:

Which of the following is the largest unit of information?

A) 1 TB B) 1 GB
C) 1 MB D) 1 KB
 
Answer & Explanation Answer: A) 1 TB

Explanation:

1 TB  >  1 GB  >  1 MB  >  1 KB

 

1 Tb (Tera Byte) = 1024 GB

 

1 GB (Giga Byte) = 1024 MB

 

1 MB (Mega Byte) = 1024 KB

 

1 KB (Kilo Byte) = 1024 Bytes

 

1 Byte = 8 Bit

 

Hence, largest unit of information is TB (Tera Byte) and smallest unit of information is Bit.

 

Report Error

View Answer Report Error Discuss

4 2879
Q:

HTML documents are saved in

A) Machine language codes B) ASCII text
C) Special binary format D) None of the above
 
Answer & Explanation Answer: B) ASCII text

Explanation:

Word and WordPad can save documents as ASCII text and HTML, but this approach can lead to problems. NotePad should launch with a new document open.

From the File pull-down menu, Select "Save As," save the file to the Desktop, and name the file using the ".html" extension (e.g., "home.html").

Report Error

View Answer Report Error Discuss

0 2848
Q:

The SQL keyword BETWEEN is used:

A) for ranges B) as a wildcard
C) to limit the columns displayed D) All the above
 
Answer & Explanation Answer: A) for ranges

Explanation:

In SQL, BETWEEN Keyword is used for ranges like Number Ranges, Date Ranges, etc...

Report Error

View Answer Report Error Discuss

0 2815
Q:

5 Digits Number?

What 5-digit number has the following features:

If we put the numeral 1 at the beginning, we get a number three times smaller than if we put the numeral 1 at the end of the number.

Answer

We can make an equation:


3(100000 + x) = 10x+1


(Why? Well, adding 100000 puts a 1 at the front of a five-digit number, and multiplying by 10 and adding 1 puts a 1 at the end of a number)


Solving this gives:


10x+1 = 3(100000 + x)
10x+1 = 300000 + 3x
10x = 299999 + 3x
7x = 299999
x = 299999/7 = 42857


The answer is 42857 (142857 is three times smaller than 428571).

Report Error

View answer Workspace Report Error Discuss

9 2792
Q:

Undefined reference to 'pthread_create'

How to Fix this error?

Answer

This is a common error while compiling C program in Linux. This error occurs when you are using pthread_create function to create threads in your programs.


To fix this problem ensure following points:
Include header file pthread.h in your program.
Add –lpthread linker flag with compilation command.
1- Include Header file
#include <stdio.h>
#include <pthread.h>
...
...
2- Compile command
gcc main.c -o main -lpthread

Report Error

View answer Workspace Report Error Discuss

0 2775
Q:

What is Interpreter in Java?

Answer

  • An Interpreter is a program that reads in as input a source program, along with data for the program, and translates the source program step by step.


 


The Java interpreter decodes each lines bytecode and runs a series of machine instructions for that bytecode. The JVM takes the byte code and generates machine code. The byte code is compiled to machine code, and the machine code is executed.

Report Error

View answer Workspace Report Error Discuss

7 2747
Q:

The difference between two numbers is 3355. When the larger number is divided by the smaller one, the quotient is 6 and the remainder is 15. The smaller number and larger number respectively ?

A) 546, 3901 B) 415, 3770
C) 668, 4023 D) 404, 3759
 
Answer & Explanation Answer: C) 668, 4023

Explanation:

Let the smaller number be k.
Then, larger number = (3355 + k)
Therefore 3355 + k = (6k + 15)
‹=› 5k = 3340
‹=› k = 668.

Therefore, the smaller number k = 668 and now the larger number = 3355+668 = 4023.

Report Error

View Answer Report Error Discuss

4 2743