GoConqr has a new look! Let us know what you think.

Quiz

Code Crasher Prelims

prabu .G 20 questions

Take the quiz

This quiz has a time limit, so it opens in the usual player.

Questions in this quiz (20)

  1. 1The process of converting one data type to another is called
    1. ATranslating
    2. BCasting
    3. CCompile
    4. DDeclaring
  2. 2"Use of undeclared variables" is the ___________ type of error
    1. ALogical
    2. BException
    3. CRun-Time
    4. DCompile-Time
  3. 3In List,if no item is selected then the method getSelectedIndex() returns_______________
    1. A0
    2. B1
    3. C-1
    4. DNULL
  4. 4Strings are instances of class String.
    1. ATrue
    2. BFalse
  5. 5Which of the following operators are used in conjunction with the "this" and "super" references?
    1. AThe new operator
    2. BThe instance operator
    3. CThe dot operator
    4. DNone of these
  6. 6When a program does not want to handle the exception,the ______________class is used
    1. AThrows
    2. Btry -catch
    3. Cfinally
    4. DNone of these
  7. 7What is the output of the program?
    public class Question {
    public static void main(String args[]) {
    String s1="abc";
    String s2="def";
    String s3=s1.concat(s2.toUpperCase());
    System.out.println(s1+s2+s3);
    }
    }

    1. Aabcdefabcdef
    2. BabcdefDEFDEF
    3. CabcdefabcDEF
    4. DNone of the above
  8. 8Which of the following methods of the Graphics class?
    1)darwRect() 2)drawImage()
    3)drawPoint() 4)drawString()
    1. A1,2 and 4
    2. B2,3 and 4
    3. C1,2 and 3
    4. D1,3 and 4
  9. 9Which of the following are TRUE?
    1)The Class class is the superclass of the object class.
    2)The Object class is final.
    3)The Class class can be used to load the other classes
    4)The ClassLoader class can be used to load other classes
    1. A3 and 4
    2. B1 and 4
    3. C2 and 4
    4. D2 and 3
  10. 10Which of the following creates a List with 5 visible items and multiple sections enabled?
    1. Anew List(5,true)
    2. Bnew List(true,5)
    3. Cnew List(5,false)
    4. Dnew List(false,5)

Information

Description
Quiz on Code Crasher Prelims, created by prabu .G on 19/09/2017.
Author
prabu .G
Language
English
Views
60
Tags
verge 2k17 debug prelimsmedium
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?