July 12, 2025 Baibhav Computer No Comments 6 Created on July 12, 2025 By Baibhav Computer MCQ TEST FOR 1ST TERM EXAMINATION PART II 1 / 21 Which among the following encoding system can represent 65536 characters? ASCII Unicode Both a and b None of these 2 / 21 Which among the following is not a Token? Keywords Literals Identifiers Data Type 3 / 21 Which among the following is a keyword but not a literal? for null true false 4 / 21 Which among the following is a valid float literal? 12.36f 12.36F 12.36 Both a and b 5 / 21 Which among the following is a valid method of initialising? boolean f=true; boolean f=True; boolean f=’true’; None of these 6 / 21 Which among the following is not a punctuator? ; semicolon , comma : colon . dot 7 / 21 Which among the following is not a primitive data type? int float String char 8 / 21 If a is of type int and b is of type float what would be the resultant data type of a+b? int float double short 9 / 21 Which among the following is a relational operator? + > * / 10 / 21 The && operator requires which among the following conditions to be satisfied to represent asuccess for two relations? Both should be satisfied Any one should be satisfied None of them are satisfied. None of these 11 / 21 Which among the following is not a logical operator? && || ! <= 12 / 21 Which among the following operators is used to dynamically allocate memory space for anobject? . (dot) > == new 13 / 21 Which among the following is the correct construct for creating an object named ‘book’ of the‘Library’ class? Library book=new Library; book =new Library(); Library() book=new Library(); Library book=new Library(); 14 / 21 Which operator is used to access individual members of an object? . (dot) > == New 15 / 21 The member ‘out’ object of the ‘System’ class belongs to which class? System Print PrintStream Println 16 / 21 The statement a%2 will result to what if the value of a is an even number? 0 1 Both a and b None of these 17 / 21 Which among the following operators is used to check the two operands are equal or not? Equals = == None of these 18 / 21 Which among the following operators is used to check the two operands are equal or not? Equals = == None of these 19 / 21 Which among the following forms of operators works with three operands? Unary Binary Ternary None of these 20 / 21 The statement System.out.println("six " + 3 + 3); gives the output ........... six 33 six 6 33 six 6 six 21 / 21 The statement (1==1)? 1: 0 evaluates to ........... 0 1 false true Your score is The average score is 8% LinkedIn Facebook Twitter 0% Restart Exam Previous Post Newer Post