Programming  >  QUESTIONS & ANSWERS  >  CS 4001: Computing, Society and Professionalism. MCQ_Basic Lab 25 (All)

CS 4001: Computing, Society and Professionalism. MCQ_Basic Lab 25

Document Content and Description Below

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 Now

Instant download

We Accept:

Payment methods accepted on Scholarfriends (We Accept)
Preview image of CS 4001: Computing, Society and Professionalism. MCQ_Basic Lab 25 document

Buy this document to get the full access instantly

Instant Download Access after purchase

Buy Now

Instant download

We Accept:

Payment methods accepted on Scholarfriends (We Accept)

Reviews( 0 )

$7.50

Buy Now

We Accept:

Payment methods accepted on Scholarfriends (We Accept)

Instant download

Can't find what you want? Try our AI powered Search

73
0

Document information


Connected school, study & course


About the document


Uploaded On

Apr 25, 2023

Number of pages

4

Written in

All

Seller


Profile illustration for PAPERS UNLIMITED™
PAPERS UNLIMITED™

Member since 4 years

509 Documents Sold

Reviews Received
55
20
8
2
8
Additional information

This document has been written for:

Uploaded

Apr 25, 2023

Downloads

 0

Views

 73

Document Keyword Tags

More From PAPERS UNLIMITED™

View all PAPERS UNLIMITED™'s documents »

$7.50
What is Scholarfriends

Scholarfriends.com Online Platform by Browsegrades Inc. 651N South Broad St, Middletown DE. United States.

We are here to help

We're available through e-mail, Twitter, Facebook, and live chat.
 FAQ
 Questions? Leave a message!

Follow us on
 Twitter

Copyright © Scholarfriends · High quality services·