programming languages Online Quiz - 40
Description: programming languages Online Quiz - 40 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
There are 4 divisions in a cobol program. Which of the following is not one of them?
Cobol is self-documenting.
User defined names must follow which one of the following rules?
Cobol paragraphs contain sentences. A sentence must end in a period and can contain multiple statements.
Sentences and statements must start on a new line.
When defining a file layout it is placed in the file section of the data division. Each record begins with an "01", a space, and the record name. Fields within a record traditionally began with 05?
Condition names are names associated with a field that take on a true/false status depending on whether their value is equal to the field value. They are indicated by a level number of what?
If a field is defined as Pic s9(6)v99 comp-3, it uses 5 bytes of storage.
If we are limited to 5 bytes of storage, is there be a way to store a complete 8 digit date?
You store it as YYYYMMDD in 8 bytes. What is the COBOL definition of this field?
class PrintTest{ public static void main(String[] args) { double d=222.4578; System.out.printf(“% .2f”,d); } }
What is the result of compiling and running the following code, assuming that the file bb.txt does not exist? class WriterTest{ public static void main(String[] args) throws IOException{ Writer w=new BufferedWriter(new FileWriter(“bb.txt”)); // Line1 w.write(1); // Line2 w.close(); } }
Which of the following statements are true about the default implementation of the public int hashCode() method of the Object class?
whether the casting of objects can be done in java?
Read the code below. Will be the result of attempting to compile and run the code below. public class AQuestion { public void method(Object o){ System.out.println("Object Verion"); } public void method(String s){ System.out.println("String Version"); } public static void main(String args[]){ AQuestion question = new AQuestion(); question.method(null); } }
Nohup command?
cp command ?
Grep Command ?
uniq command removes duplicate adjacent lines from sorted file?
awk command?