Programming > QUESTIONS & ANSWERS > CS 4001: Computing, Society and Professionalism. MCQ_Basic Lab 25 (All)
CS 4001: Computing, Society and Professionalism. MCQ_Basic Lab 25 Java is an a) Object Oriented Language b) Procedure Oriented Language c) a and b d) None 2. which is the language processor? a) ... Java virtual machine b) JRE c) Compilers d) None of the above 3. Features of java? a) Multithreaded b) Procedural c) Both a and b d) None 4. What is the output of relational operators? a) Integer b) Boolean c) Characters d) Double 5. How many primitive datatypes are there in java? a) 10 b) 7 c) 8 d) 9 6. Size of float and double in Java is (bits) a) 32 and 64 b) 64 and 64 c) 32 and 32 d) 16 and 32 7. Which of these is returned by “greater than”, “less than” and “equal to” operators? a) Integers b) Floating – point numbers c) Boolean d) None of the mentioned 8. Which of the following operators can operate on a boolean variable? 1. && 2. == 3. ?: 4. += a) 3 & 2 b) 1 & 4 c) 1, 2 & 4 d) 1, 2 & 3 9. Which of the statement is correct? a) true and false are numeric values 1 and 0. b) true and false are numeric values 0 and 1. c) true is any non zero value and false is 0. d) true and false are non numeric values. 10. What is the output of this program? 1. class Relational_operator { 2. public static void main(String args[]) 3. { 4. int var1 = 5; 5. int var2 = 6; 6. System.out.print(var1 > var2); 7. } 8. } a) 1 b) 0 c) true d) false 11. What is the output of this program? 1. class Output { 2. public static void main(String args[]) 3. { 4. int x , y = 1; 5. x = 10; 6. if (x != 10 && x / 0 == 0) 7. System.out.println(y); 8. else 9. System.out.println(++y); 10. } 11. } [Show More]
Last updated: 2 years ago
Preview 1 out of 4 pages
Buy this document to get the full access instantly
Instant Download Access after purchase
Buy NowInstant download
We Accept:
Can't find what you want? Try our AI powered Search
Connected school, study & course
About the document
Uploaded On
Apr 25, 2023
Number of pages
4
Written in
All
This document has been written for:
Uploaded
Apr 25, 2023
Downloads
0
Views
73
Scholarfriends.com Online Platform by Browsegrades Inc. 651N South Broad St, Middletown DE. United States.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Scholarfriends · High quality services·