SlideShare una empresa de Scribd logo
1 de 11
1. Which pair of function below is used for single character I/O?

A) getchar() & putchar()
b) scanf() & printf()
c) Input () & output()
d) None of these

 2. Symbolic consists can be defined using?

a) #define
B) Const
b) Symbols
c) None of these

 3. Null character is represented by?

a) '(n)'
b) '(o)'
C) '(0)'
d) '(e)'

 4. Which among the following is a unconditional control structure?

a) do-while
b)if-else
C) goto
d) for
5. Consider the following code snippet

 String river = new String(“Columbia”);
 System.out.println(river.length());
 What is printed?

 a) 6
 b) 7
 C) 8
 d) Columbia


  6. Which of the following may be part of a class definition?

a) instance variables
b) instance methods
c) constructors
D) all of the above


  7. What is different between a Java applet and a Java application?

a) An application can in general be trusted whereas an applet can't.
b) An applet must be executed in a browser environment.
c) An applet is not able to access the files of the computer it runs on
D) (A), (B) and (C).


  8. Consider
 public class MyClass
{
   public MyClass(){/*code*/}
   // more code...
 }
To instantiate MyClass, you would write?

A) MyClass mc = new MyClass();
b) MyClass mc = MyClass();
c) MyClass mc = MyClass;
d) MyClass mc = new MyClass;
9. What is byte code in the context of Java?

A) The type of code generated by a Java compiler
b) The type of code generated by a Java Virtual Machine
c) It is another name for a Java source file
d) It is the code written within the instance methods of a class.



10. How many JDBC driver types does Sun define?

a) One

b) Two

c) Three

D) Four



11. Who invented Java?

a) Netscape

b) Microsoft

C) Sun

d) None of the above is correct



12. To run a compiled Java program, the machine must have what loaded and
running?

A) Java virtual machine

b) Java compiler

c) Java bytecode
d) A Web browser



13. What is bytecode?

a) Machine-specific code

b) Java code

C) Machine-independent code

d) None of the above is correct




14. JDBC stands for:

A) Java Database Connectivity

b) Java Database Components

c) Java Database Control

d) None of the above is correct



15. Constructors are used to?

A) Initialize the objects

b) Construct the data members

c) Both (1) & (2)

d) None of these



16. Which one of these lists contains only Java programming language
keywords?

a) class, if, void, long, Int, continue

B) goto, instanceof, native, finally, default, throws

c) try, virtual, throw, final, volatile, transient

d) strictfp, constant, super, implements, do



17. Which will legally declare, construct, and initialize an array?

a) int [] myList = {"1", "2", "3"};

b) int [] myList = (5, 8, 2);

c) int myList [] [] = {4,9,7,0};

D) int myList [] = {4, 3, 7};



18. Which is a valid keyword in java?

A) Interface

b) String

c) Float

d) unsigned



public interface Foo
{
  int k = 4; /* Line 3 */
}
19. Which three piece of codes are equivalent to line 3?

1. final int k = 4;

2. public int k = 4;

3. static int k = 4;

4. abstract int k = 4;

5. volatile int k = 4;

6. protected int k = 4;

A) 1, 2 and 3

b) 2, 3 and 4

c) 3, 4 and 5

d) 4, 5 and 6



20. Which three are valid declarations of a char?

1. char c1 = 064770;

2. char c2 = 'face';

3. char c3 = 0xbeef;

4. char c4 = u0022;

5. char c5 = 'iface';

6. char c6 = 'uface';

a) 1, 2, 4

B) 1, 3, 6
c) 3, 5

d) 5 only



21. Which one is a valid declaration of a boolean?

a) boolean b1 = 0;

b) boolean b2 = 'false';

C) boolean b3 = false;

d) boolean b4 = Boolean.false();



22. Which is a valid declarations of a String?

A) String s1 = null;

b) String s2 = 'null';

c) String s3 = (String) 'abc';

d) String s4 = (String) 'ufeed';



23. What is the name of the method used to start a thread execution?

a) init();

B) start();

c) run();

d) resume();
24. Which two are valid constructors for Thread?

1. Thread(Runnable r, String name)

2. Thread()

3. Thread(int priority)

4. Thread(Runnable r, ThreadGroup g)

5. Thread(Runnable r, int priority)

a) 1 and 3

b) 2 and 4

C) 1 and 2

d) 2 and 5



class X implements Runnable
{
   public static void main(String args[])
   {
     /* Missing code? */
   }
   public void run() {}
}


25. Which of the following line of code is suitable to start a thread ?

a) Thread t = new Thread(X);

b) Thread t = new Thread(X); t.start();

C) X run = new X(); Thread t = new Thread(run); t.start();
d) Thread t = new Thread(); x.run();



26. Which cannot directly cause a thread to stop executing?

a) Calling the SetPriority() method on a Thread object.

b) Calling the wait() method on an object.

C) Calling notify() method on an object.

d) Calling read() method on an InputStream object.



27. Which two of the following methods are defined in class Thread?

   1.   start()
   2.   wait()
   3.   notify()
   4.   run()
   5.   terminate()

A) 1 and 4

b) 2 and 3

c) 3 and 4

d) 2 and 4



28. Which of the following will directly stop the execution of a Thread?

A) wait()

b) notify()

c) notifyall()

d) exits synchronized code
29. Which method must be defined by a class implementing
the java.lang.Runnableinterface?

a) void run()

B) public void run()

c) public void start()

d) void run(int priority)




30. Which will contain the body of the thread?

A) run();

b) start();

c) stop();

d) main();
Java Questioner for

Más contenido relacionado

La actualidad más candente

C __paper.docx_final
C __paper.docx_finalC __paper.docx_final
C __paper.docx_finalSumit Sar
 
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 1
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 1 UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 1
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 1 Knowledge Center Computer
 
C++ questions And Answer
C++ questions And AnswerC++ questions And Answer
C++ questions And Answerlavparmar007
 
Generic Programming seminar
Generic Programming seminarGeneric Programming seminar
Generic Programming seminarGautam Roy
 
Sample Paper 2 Class XI (Computer Science)
Sample Paper 2 Class XI (Computer Science)Sample Paper 2 Class XI (Computer Science)
Sample Paper 2 Class XI (Computer Science)Poonam Chopra
 
Hidden Truths in Dead Software Paths
Hidden Truths in Dead Software PathsHidden Truths in Dead Software Paths
Hidden Truths in Dead Software PathsBen Hermann
 
C Programming Language
C Programming LanguageC Programming Language
C Programming LanguageRTS Tech
 
C interview questions
C interview questionsC interview questions
C interview questionsSoba Arjun
 
C aptitude 1st jan 2012
C aptitude 1st jan 2012C aptitude 1st jan 2012
C aptitude 1st jan 2012Kishor Parkhe
 
GUESS FUNDAMENTAL PAPER FOE CCAT Feb 2014
GUESS FUNDAMENTAL PAPER FOE CCAT Feb 2014GUESS FUNDAMENTAL PAPER FOE CCAT Feb 2014
GUESS FUNDAMENTAL PAPER FOE CCAT Feb 2014prabhatjon
 
important C questions and_answers praveensomesh
important C questions and_answers praveensomeshimportant C questions and_answers praveensomesh
important C questions and_answers praveensomeshpraveensomesh
 
[C++ Korea] Effective Modern C++ Study, Item 11 - 13
[C++ Korea] Effective Modern C++ Study, Item 11 - 13[C++ Korea] Effective Modern C++ Study, Item 11 - 13
[C++ Korea] Effective Modern C++ Study, Item 11 - 13Chris Ohk
 

La actualidad más candente (16)

C __paper.docx_final
C __paper.docx_finalC __paper.docx_final
C __paper.docx_final
 
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 1
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 1 UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 1
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 1
 
C++ questions And Answer
C++ questions And AnswerC++ questions And Answer
C++ questions And Answer
 
Generic Programming seminar
Generic Programming seminarGeneric Programming seminar
Generic Programming seminar
 
PART - 1 Cpp programming Solved MCQ
PART - 1 Cpp programming Solved MCQPART - 1 Cpp programming Solved MCQ
PART - 1 Cpp programming Solved MCQ
 
Sample Paper 2 Class XI (Computer Science)
Sample Paper 2 Class XI (Computer Science)Sample Paper 2 Class XI (Computer Science)
Sample Paper 2 Class XI (Computer Science)
 
C++ Interview Questions
C++ Interview QuestionsC++ Interview Questions
C++ Interview Questions
 
Hidden Truths in Dead Software Paths
Hidden Truths in Dead Software PathsHidden Truths in Dead Software Paths
Hidden Truths in Dead Software Paths
 
C Programming Language
C Programming LanguageC Programming Language
C Programming Language
 
C interview questions
C interview questionsC interview questions
C interview questions
 
5th semester Computer Science and Information Science Engg (2013 December) Qu...
5th semester Computer Science and Information Science Engg (2013 December) Qu...5th semester Computer Science and Information Science Engg (2013 December) Qu...
5th semester Computer Science and Information Science Engg (2013 December) Qu...
 
C aptitude 1st jan 2012
C aptitude 1st jan 2012C aptitude 1st jan 2012
C aptitude 1st jan 2012
 
GUESS FUNDAMENTAL PAPER FOE CCAT Feb 2014
GUESS FUNDAMENTAL PAPER FOE CCAT Feb 2014GUESS FUNDAMENTAL PAPER FOE CCAT Feb 2014
GUESS FUNDAMENTAL PAPER FOE CCAT Feb 2014
 
Generic programming
Generic programmingGeneric programming
Generic programming
 
important C questions and_answers praveensomesh
important C questions and_answers praveensomeshimportant C questions and_answers praveensomesh
important C questions and_answers praveensomesh
 
[C++ Korea] Effective Modern C++ Study, Item 11 - 13
[C++ Korea] Effective Modern C++ Study, Item 11 - 13[C++ Korea] Effective Modern C++ Study, Item 11 - 13
[C++ Korea] Effective Modern C++ Study, Item 11 - 13
 

Destacado

INTERPERSONAL AND COMMUNICATION SKILLS- C.10
INTERPERSONAL AND COMMUNICATION SKILLS- C.10INTERPERSONAL AND COMMUNICATION SKILLS- C.10
INTERPERSONAL AND COMMUNICATION SKILLS- C.10Brenda Rachel Marie
 
Cross culture presentation
Cross culture presentationCross culture presentation
Cross culture presentationSunny Sharma
 
SUSL - Concept of culture original
SUSL  - Concept of culture originalSUSL  - Concept of culture original
SUSL - Concept of culture originalUndergraduate
 
Managing cross-cultural differences in a multinational company
Managing cross-cultural differences in a multinational companyManaging cross-cultural differences in a multinational company
Managing cross-cultural differences in a multinational companyRoberto de Paula Lico Junior
 
Supply Chain Management - Transportation - MBA Project
Supply Chain Management - Transportation - MBA ProjectSupply Chain Management - Transportation - MBA Project
Supply Chain Management - Transportation - MBA ProjectAnand Waindeshkar
 
Cross Cultural Management case study
Cross Cultural Management case studyCross Cultural Management case study
Cross Cultural Management case studyAdnan Abdullah
 
THE ROLE OF TRANSPORTATION IN LOGISTICS CHAIN
THE ROLE OF TRANSPORTATION IN LOGISTICS CHAINTHE ROLE OF TRANSPORTATION IN LOGISTICS CHAIN
THE ROLE OF TRANSPORTATION IN LOGISTICS CHAINMartha Nakapipi
 
Cross Cultural Management
Cross Cultural ManagementCross Cultural Management
Cross Cultural Managementguest34faa6
 
Transportation in a supply chain management
Transportation in a supply chain managementTransportation in a supply chain management
Transportation in a supply chain managementsai krishna
 
Transportation management system
Transportation management systemTransportation management system
Transportation management systemAbhay Korat
 
Cross cultural management
Cross cultural managementCross cultural management
Cross cultural managementMingsheng Li
 
Transportation Management Ppt
Transportation Management PptTransportation Management Ppt
Transportation Management Pptgotfr8
 
Chapter 2 cross cultural management
Chapter   2 cross cultural managementChapter   2 cross cultural management
Chapter 2 cross cultural managementPreeti Bhaskar
 

Destacado (16)

Questioner
QuestionerQuestioner
Questioner
 
INTERPERSONAL AND COMMUNICATION SKILLS- C.10
INTERPERSONAL AND COMMUNICATION SKILLS- C.10INTERPERSONAL AND COMMUNICATION SKILLS- C.10
INTERPERSONAL AND COMMUNICATION SKILLS- C.10
 
Cross culture presentation
Cross culture presentationCross culture presentation
Cross culture presentation
 
SUSL - Concept of culture original
SUSL  - Concept of culture originalSUSL  - Concept of culture original
SUSL - Concept of culture original
 
Managing cross-cultural differences in a multinational company
Managing cross-cultural differences in a multinational companyManaging cross-cultural differences in a multinational company
Managing cross-cultural differences in a multinational company
 
Supply Chain Management - Transportation - MBA Project
Supply Chain Management - Transportation - MBA ProjectSupply Chain Management - Transportation - MBA Project
Supply Chain Management - Transportation - MBA Project
 
Cross Cultural Management case study
Cross Cultural Management case studyCross Cultural Management case study
Cross Cultural Management case study
 
THE ROLE OF TRANSPORTATION IN LOGISTICS CHAIN
THE ROLE OF TRANSPORTATION IN LOGISTICS CHAINTHE ROLE OF TRANSPORTATION IN LOGISTICS CHAIN
THE ROLE OF TRANSPORTATION IN LOGISTICS CHAIN
 
Cross Cultural Management
Cross Cultural ManagementCross Cultural Management
Cross Cultural Management
 
Transportation in a supply chain management
Transportation in a supply chain managementTransportation in a supply chain management
Transportation in a supply chain management
 
Transportation management system
Transportation management systemTransportation management system
Transportation management system
 
Cross cultural management
Cross cultural managementCross cultural management
Cross cultural management
 
Transportation management
Transportation managementTransportation management
Transportation management
 
Transportation Management Ppt
Transportation Management PptTransportation Management Ppt
Transportation Management Ppt
 
Chapter 2 cross cultural management
Chapter   2 cross cultural managementChapter   2 cross cultural management
Chapter 2 cross cultural management
 
Means of transportation
Means of transportationMeans of transportation
Means of transportation
 

Similar a Java Questioner for

LDCQ paper Dec21 with answer key_62cb2996afc60f6aedeb248c1d9283e5.pdf
LDCQ paper Dec21 with answer key_62cb2996afc60f6aedeb248c1d9283e5.pdfLDCQ paper Dec21 with answer key_62cb2996afc60f6aedeb248c1d9283e5.pdf
LDCQ paper Dec21 with answer key_62cb2996afc60f6aedeb248c1d9283e5.pdfVedant Gavhane
 
DAC CCAT GUESS PAPER Jun-Jul 2013
DAC CCAT GUESS PAPER Jun-Jul 2013 DAC CCAT GUESS PAPER Jun-Jul 2013
DAC CCAT GUESS PAPER Jun-Jul 2013 prabhatjon
 
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2Knowledge Center Computer
 
200 mcq c++(Ankit dubey)
200 mcq c++(Ankit dubey)200 mcq c++(Ankit dubey)
200 mcq c++(Ankit dubey)Ankit Dubey
 
Std 12 chapter 7 Java Basics Important MCQs
Std 12 chapter 7 Java Basics Important MCQsStd 12 chapter 7 Java Basics Important MCQs
Std 12 chapter 7 Java Basics Important MCQsNuzhat Memon
 
Model question paper_mc0061
Model question paper_mc0061Model question paper_mc0061
Model question paper_mc0061gurbaxrawat
 
(Www.entrance exam.net)-tcs placement sample paper 2
(Www.entrance exam.net)-tcs placement sample paper 2(Www.entrance exam.net)-tcs placement sample paper 2
(Www.entrance exam.net)-tcs placement sample paper 2Pamidimukkala Sivani
 
Data structures and algorithms unit i
Data structures and algorithms unit iData structures and algorithms unit i
Data structures and algorithms unit isonalisraisoni
 
Std 10 chapter 11 data type, expression and operators important MCQs
Std 10 chapter 11 data type, expression and operators important MCQsStd 10 chapter 11 data type, expression and operators important MCQs
Std 10 chapter 11 data type, expression and operators important MCQsNuzhat Memon
 
CAPE Computer Science Unit 1 Paper 1 - Practice Paper
CAPE Computer Science Unit 1 Paper 1 - Practice PaperCAPE Computer Science Unit 1 Paper 1 - Practice Paper
CAPE Computer Science Unit 1 Paper 1 - Practice PaperAlex Stewart
 
this pdf very much useful for embedded c programming students
this pdf very much useful for embedded c programming studentsthis pdf very much useful for embedded c programming students
this pdf very much useful for embedded c programming studentspavan81088
 
ExamName___________________________________MULTIPLE CH.docx
ExamName___________________________________MULTIPLE CH.docxExamName___________________________________MULTIPLE CH.docx
ExamName___________________________________MULTIPLE CH.docxgitagrimston
 
CXC CSEC Information Technology Multiple Choice Questions
CXC CSEC Information Technology Multiple Choice QuestionsCXC CSEC Information Technology Multiple Choice Questions
CXC CSEC Information Technology Multiple Choice QuestionsElliot Seepaul
 
1. Which of the following statements would correctly print out t.pdf
1. Which of the following statements would correctly print out t.pdf1. Which of the following statements would correctly print out t.pdf
1. Which of the following statements would correctly print out t.pdfezzi97
 
Comp 328 final guide
Comp 328 final guideComp 328 final guide
Comp 328 final guidekrtioplal
 

Similar a Java Questioner for (20)

LDCQ paper Dec21 with answer key_62cb2996afc60f6aedeb248c1d9283e5.pdf
LDCQ paper Dec21 with answer key_62cb2996afc60f6aedeb248c1d9283e5.pdfLDCQ paper Dec21 with answer key_62cb2996afc60f6aedeb248c1d9283e5.pdf
LDCQ paper Dec21 with answer key_62cb2996afc60f6aedeb248c1d9283e5.pdf
 
Java Programming.pdf
Java Programming.pdfJava Programming.pdf
Java Programming.pdf
 
DAC CCAT GUESS PAPER Jun-Jul 2013
DAC CCAT GUESS PAPER Jun-Jul 2013 DAC CCAT GUESS PAPER Jun-Jul 2013
DAC CCAT GUESS PAPER Jun-Jul 2013
 
C Programming
C ProgrammingC Programming
C Programming
 
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
 
200 mcq c++(Ankit dubey)
200 mcq c++(Ankit dubey)200 mcq c++(Ankit dubey)
200 mcq c++(Ankit dubey)
 
C MCQ
C MCQC MCQ
C MCQ
 
Std 12 chapter 7 Java Basics Important MCQs
Std 12 chapter 7 Java Basics Important MCQsStd 12 chapter 7 Java Basics Important MCQs
Std 12 chapter 7 Java Basics Important MCQs
 
Model question paper_mc0061
Model question paper_mc0061Model question paper_mc0061
Model question paper_mc0061
 
(Www.entrance exam.net)-tcs placement sample paper 2
(Www.entrance exam.net)-tcs placement sample paper 2(Www.entrance exam.net)-tcs placement sample paper 2
(Www.entrance exam.net)-tcs placement sample paper 2
 
Data structures and algorithms unit i
Data structures and algorithms unit iData structures and algorithms unit i
Data structures and algorithms unit i
 
Std 10 chapter 11 data type, expression and operators important MCQs
Std 10 chapter 11 data type, expression and operators important MCQsStd 10 chapter 11 data type, expression and operators important MCQs
Std 10 chapter 11 data type, expression and operators important MCQs
 
CAPE Computer Science Unit 1 Paper 1 - Practice Paper
CAPE Computer Science Unit 1 Paper 1 - Practice PaperCAPE Computer Science Unit 1 Paper 1 - Practice Paper
CAPE Computer Science Unit 1 Paper 1 - Practice Paper
 
this pdf very much useful for embedded c programming students
this pdf very much useful for embedded c programming studentsthis pdf very much useful for embedded c programming students
this pdf very much useful for embedded c programming students
 
ExamName___________________________________MULTIPLE CH.docx
ExamName___________________________________MULTIPLE CH.docxExamName___________________________________MULTIPLE CH.docx
ExamName___________________________________MULTIPLE CH.docx
 
CXC CSEC Information Technology Multiple Choice Questions
CXC CSEC Information Technology Multiple Choice QuestionsCXC CSEC Information Technology Multiple Choice Questions
CXC CSEC Information Technology Multiple Choice Questions
 
Technical questions
Technical questionsTechnical questions
Technical questions
 
1. Which of the following statements would correctly print out t.pdf
1. Which of the following statements would correctly print out t.pdf1. Which of the following statements would correctly print out t.pdf
1. Which of the following statements would correctly print out t.pdf
 
Comp 328 final guide
Comp 328 final guideComp 328 final guide
Comp 328 final guide
 
Gate-Cs 1994
Gate-Cs 1994Gate-Cs 1994
Gate-Cs 1994
 

Último

SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????What is Artificial Intelligence?????????
What is Artificial Intelligence?????????blackmambaettijean
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
Ryan Mahoney - Will Artificial Intelligence Replace Real Estate Agents
Ryan Mahoney - Will Artificial Intelligence Replace Real Estate AgentsRyan Mahoney - Will Artificial Intelligence Replace Real Estate Agents
Ryan Mahoney - Will Artificial Intelligence Replace Real Estate AgentsRyan Mahoney
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 

Último (20)

SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????What is Artificial Intelligence?????????
What is Artificial Intelligence?????????
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
Ryan Mahoney - Will Artificial Intelligence Replace Real Estate Agents
Ryan Mahoney - Will Artificial Intelligence Replace Real Estate AgentsRyan Mahoney - Will Artificial Intelligence Replace Real Estate Agents
Ryan Mahoney - Will Artificial Intelligence Replace Real Estate Agents
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 

Java Questioner for

  • 1. 1. Which pair of function below is used for single character I/O? A) getchar() & putchar() b) scanf() & printf() c) Input () & output() d) None of these 2. Symbolic consists can be defined using? a) #define B) Const b) Symbols c) None of these 3. Null character is represented by? a) '(n)' b) '(o)' C) '(0)' d) '(e)' 4. Which among the following is a unconditional control structure? a) do-while b)if-else C) goto d) for
  • 2. 5. Consider the following code snippet String river = new String(“Columbia”); System.out.println(river.length()); What is printed? a) 6 b) 7 C) 8 d) Columbia 6. Which of the following may be part of a class definition? a) instance variables b) instance methods c) constructors D) all of the above 7. What is different between a Java applet and a Java application? a) An application can in general be trusted whereas an applet can't. b) An applet must be executed in a browser environment. c) An applet is not able to access the files of the computer it runs on D) (A), (B) and (C). 8. Consider public class MyClass { public MyClass(){/*code*/} // more code... } To instantiate MyClass, you would write? A) MyClass mc = new MyClass(); b) MyClass mc = MyClass(); c) MyClass mc = MyClass; d) MyClass mc = new MyClass;
  • 3. 9. What is byte code in the context of Java? A) The type of code generated by a Java compiler b) The type of code generated by a Java Virtual Machine c) It is another name for a Java source file d) It is the code written within the instance methods of a class. 10. How many JDBC driver types does Sun define? a) One b) Two c) Three D) Four 11. Who invented Java? a) Netscape b) Microsoft C) Sun d) None of the above is correct 12. To run a compiled Java program, the machine must have what loaded and running? A) Java virtual machine b) Java compiler c) Java bytecode
  • 4. d) A Web browser 13. What is bytecode? a) Machine-specific code b) Java code C) Machine-independent code d) None of the above is correct 14. JDBC stands for: A) Java Database Connectivity b) Java Database Components c) Java Database Control d) None of the above is correct 15. Constructors are used to? A) Initialize the objects b) Construct the data members c) Both (1) & (2) d) None of these 16. Which one of these lists contains only Java programming language
  • 5. keywords? a) class, if, void, long, Int, continue B) goto, instanceof, native, finally, default, throws c) try, virtual, throw, final, volatile, transient d) strictfp, constant, super, implements, do 17. Which will legally declare, construct, and initialize an array? a) int [] myList = {"1", "2", "3"}; b) int [] myList = (5, 8, 2); c) int myList [] [] = {4,9,7,0}; D) int myList [] = {4, 3, 7}; 18. Which is a valid keyword in java? A) Interface b) String c) Float d) unsigned public interface Foo { int k = 4; /* Line 3 */ }
  • 6. 19. Which three piece of codes are equivalent to line 3? 1. final int k = 4; 2. public int k = 4; 3. static int k = 4; 4. abstract int k = 4; 5. volatile int k = 4; 6. protected int k = 4; A) 1, 2 and 3 b) 2, 3 and 4 c) 3, 4 and 5 d) 4, 5 and 6 20. Which three are valid declarations of a char? 1. char c1 = 064770; 2. char c2 = 'face'; 3. char c3 = 0xbeef; 4. char c4 = u0022; 5. char c5 = 'iface'; 6. char c6 = 'uface'; a) 1, 2, 4 B) 1, 3, 6
  • 7. c) 3, 5 d) 5 only 21. Which one is a valid declaration of a boolean? a) boolean b1 = 0; b) boolean b2 = 'false'; C) boolean b3 = false; d) boolean b4 = Boolean.false(); 22. Which is a valid declarations of a String? A) String s1 = null; b) String s2 = 'null'; c) String s3 = (String) 'abc'; d) String s4 = (String) 'ufeed'; 23. What is the name of the method used to start a thread execution? a) init(); B) start(); c) run(); d) resume();
  • 8. 24. Which two are valid constructors for Thread? 1. Thread(Runnable r, String name) 2. Thread() 3. Thread(int priority) 4. Thread(Runnable r, ThreadGroup g) 5. Thread(Runnable r, int priority) a) 1 and 3 b) 2 and 4 C) 1 and 2 d) 2 and 5 class X implements Runnable { public static void main(String args[]) { /* Missing code? */ } public void run() {} } 25. Which of the following line of code is suitable to start a thread ? a) Thread t = new Thread(X); b) Thread t = new Thread(X); t.start(); C) X run = new X(); Thread t = new Thread(run); t.start();
  • 9. d) Thread t = new Thread(); x.run(); 26. Which cannot directly cause a thread to stop executing? a) Calling the SetPriority() method on a Thread object. b) Calling the wait() method on an object. C) Calling notify() method on an object. d) Calling read() method on an InputStream object. 27. Which two of the following methods are defined in class Thread? 1. start() 2. wait() 3. notify() 4. run() 5. terminate() A) 1 and 4 b) 2 and 3 c) 3 and 4 d) 2 and 4 28. Which of the following will directly stop the execution of a Thread? A) wait() b) notify() c) notifyall() d) exits synchronized code
  • 10. 29. Which method must be defined by a class implementing the java.lang.Runnableinterface? a) void run() B) public void run() c) public void start() d) void run(int priority) 30. Which will contain the body of the thread? A) run(); b) start(); c) stop(); d) main();