programming languages Online Quiz - 255
Description: programming languages Online Quiz - 255 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
program helloworld(output); var I: Integer; begin WriteLn('Hello, World!'); for I := 1 to 10 do WriteLn(I); end
with Text_To; use Text_To procedure hello is begin put("Hello World"); end hello
hello_world :- write('Hello World!').
C++ main() { cout << "Hello World!"; return 0; }
JAVA class myfirstprog { public static void main(String args[]) { System.out.println("Hello World!"); } }
int main() { printf("hello, world"); return 0; }
10 PRINT "Hello World!" 20 GOTO 10
PROGRAM HELLO WRITE(,) 'Hello World' END PROGRAM
main() { cout << "Hello World!"; return 0; }
class myfirstprog { public static void main(String args[]) { System.out.println("Hello World!"); } }
Find character in string from the end. Choose the correct one.
Return size of allocated storage
Which of the following statements regarding threads is true?
You have created a TimeOut class as an extension of Thread, the purpose being to print a "Time's Up" message if the Thread is not interrupted within 10 seconds of being started. Here is the run method that you have coded. 1. public void run() 2. { 3. System.out.println("Start!"); 4. try 5. { 6. Thread.sleep(10000); 7. System.out.println("Time's Up!"); 8. } 9. catch(InterruptedException e) 10. { 11. System.out.println("Interrupted!"); 12. } 13. } Given that a program creates and starts a TimeOut object, which of the following statements is true?