Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

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

Rating
-
Sold
-
Pages
4
Grade
A+
Uploaded on
25-04-2023
Written in
2022/2023

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. S(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. Sln(y); 8. else 9. Sln(++y); 10. } 11. }

Show more Read less
Institution
CS 4001: Computing, Society And Professionalism.
Course
CS 4001: Computing, Society and Professionalism.








Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
CS 4001: Computing, Society and Professionalism.
Course
CS 4001: Computing, Society and Professionalism.

Document information

Uploaded on
April 25, 2023
Number of pages
4
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$8.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
AllAcademic Other
View profile
Follow You need to be logged in order to follow users or courses
Sold
67
Member since
6 year
Number of followers
39
Documents
548
Last sold
1 month ago
All the academic resources you need.

All the academic resources you need.

3.7

7 reviews

5
3
4
1
3
2
2
0
1
1

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions