question text which type of computer is

24
Question Text Which type of computer is used for weather forecasting? Options 1. Personal computer 2. Minicomputers 3. Super computer 4. Mainframe computer Correct Answer: -> 3 Your Answer: -> 3 Question Text James has prepared Sales Analysis report, analysisnorth for the north region of the company. A similar report for the south region of the company has to be prepared. This report should have the same format as that of analysisnorth. What is best way to retain the same format as that of analysisnorth? Options 1. Using Smart Tag 2. Using Style and Formatting Task Pane 3. Using Auto Republish 4. Using Office Document Imaging Tool Correct Answer: -> 1 Your Answer: -> 1 Feedback: -> None Question Text David has created a workbook, salesnorth containing the sales details of the north region. Salesnorth is stored in My Documents folder. He now, wants to create a report, salessouth with the format similar to the report salesnorth. What are the sequence of steps David would follow to create a workbook salessouth from salesNorth?

Upload: soumyaniit

Post on 30-May-2018

221 views

Category:

Documents


0 download

TRANSCRIPT

8/14/2019 Question Text Which Type of Computer Is

http://slidepdf.com/reader/full/question-text-which-type-of-computer-is 1/24

Question Text

Which type of computer is used for weather forecasting?

Options

1. Personal computer2. Minicomputers3. Super computer4. Mainframe computer

Correct Answer: -> 3

Your Answer: -> 3

Question Text

James has prepared Sales Analysis report, analysisnorth for the north region ofthe company. A similar report for the south region of the company has to beprepared. This report should have the same format as that of analysisnorth. Whatis best way to retain the same format as that of analysisnorth?

Options

1. Using Smart Tag2. Using Style and Formatting Task Pane3. Using Auto Republish4. Using Office Document Imaging Tool

Correct Answer: -> 1

Your Answer: -> 1

Feedback: -> None

Question Text

David has created a workbook, salesnorth containing the sales details of the northregion. Salesnorth is stored in My Documents folder. He now, wants to create areport, salessouth with the format similar to the report salesnorth. What are thesequence of steps David would follow to create a workbook salessouth fromsalesNorth?

8/14/2019 Question Text Which Type of Computer Is

http://slidepdf.com/reader/full/question-text-which-type-of-computer-is 2/24

Options

1. Step1: Select the New form existing workbook section in the New Work BookTask Pane.Step2: Click My Documents button in the New from existing Workbook dialog box.Step3: Select salesnorth from listed workbook.Step4: Type salessouth in the the File Name text box.Step5: Click Save button.2. Step1: Select the New from Existing workbook section in the New Work BookTask Pane.Step2: Click My Documents button in the New from Existing Workbook dialog box.Step3: Click Create New button.Step4: Select salesnorth from listed workbook and click Save.Step5: Type salessouth in the File Name text box and Click Save button.3. Step1: Select the New form existing workbook section in the New Work BookTask Pane.Step2: Click Create New button.Step3: Click My Documents button in the New form existing Workbook dialog box.Step4: Select salesnorth from listed workbook.Step5: Type salessouth in the File Name text box and Click Save button.4. Step1: Select the New form existing workbook section in the New Work BookTask Pane.Step2: Click My Documents button in the New form existing Workbook dialog box.Step3: Select salesnorth from listed workbook.Step4: Click Create New button and click save.Step5: Type salessouth in the File Name text box and click save button.

Correct Answer: -> 4

Your Answer: -> 1

Question Text

Stephanie has created a word document, projectdetails. This document contain thedetails of the project completed by each team in the organization. She has alsopublished this document on the web. This has considerably increased the file size.What should Stephanie do to reduce the file size?

Options

1. Use Data Connection Wizard

2. Save Document as Filtered Web Page3. Use picture compression4. Use auto Republish

Correct Answer: -> 2

Your Answer: -> 2

8/14/2019 Question Text Which Type of Computer Is

http://slidepdf.com/reader/full/question-text-which-type-of-computer-is 3/24

Feedback: -> None

Question Text

Peter has stored the sales figures of the company in a file sales.xls. Due tovirus problems this document has got corrupted. However, he has a scanned copy ofsales.xls. Which of the following is the best method he can use to create adocument from a scanned document?

Options

1. Data Connection wizard2. Office Document Imaging Tool3. Writing Pad4. Handwriting Recognition

Correct Answer: -> 2

Your Answer: -> 2

Feedback: -> None

Question Text

Ruth is trying to access a file which stores the Registration details of students.This file is stored on Angela's computer. However, he is unaware of the filenameand the exact location of the file. He only knows that the file is saved in Cdrive and has a heading Registration Details. What should Ruth do to search forthe specified file?

Options

1. Use Task Panes2. Use Smart Tag

3. Use Trace Precedents4. Use Find and Replace

Correct Answer: -> 2

Your Answer: -> 1

8/14/2019 Question Text Which Type of Computer Is

http://slidepdf.com/reader/full/question-text-which-type-of-computer-is 4/24

Question Text

Which of the following is a valid variable name?

Options

1. %name2. nQty3. @desc/4. First Name

Correct Answer: -> 2

Your Answer: -> 2

Question Text

Identify the step that will generate an error:1. Start2. character nNum1,nNum2, nProduct3. Accept nNum14. Accept nNum25. nProduct=nNum1*nNum26. Display nProduct7. Stop

Options

1. 3 and 42. 5 and 63. 24. 5

Correct Answer: -> 3

Your Answer: -> 2

Question Text

A program stops when a condition is evaluated as true and continues when thecondition is false. Which of the following represents this activity in theflowchart?

Options

8/14/2019 Question Text Which Type of Computer Is

http://slidepdf.com/reader/full/question-text-which-type-of-computer-is 5/24

1. Procedure2. Decision3. Terminator4. Processing

Correct Answer: -> 2

Your Answer: -> 2

Question Text

The follwoing steps were written to draw the flowchart to convert the giventemperature in Celsius to Fahrenheit. But when a dry run table was created toevaluate the output it was not giving the desired output. Find the error in thefollowing steps:1.Start2.Numeric temp, f3.Accept temp4.f=(temp-32)*(5/9)5.display f6.stop

Options

1. Error is in line 4,the formula used should be f = ((temp*32)/5)+92. Error is in line 4,the formula used should be f = ((temp*9)/5)+323. Error is in line 4,the formula used should be f = ((temp*9)/5)-94. Error is in line 4,the formula used should be f= ((temp+32)*(5/

Correct Answer: -> 2

Question Text

To use a variable num for storing a numeric value without any fractional part, thevariable num must be declared and it should be of the type:

Options

1. char2. numeric3. float4. positive

Correct Answer: -> 2

8/14/2019 Question Text Which Type of Computer Is

http://slidepdf.com/reader/full/question-text-which-type-of-computer-is 6/24

Your Answer: -> 2

Question Text

The complexity of a program can be reduced by creating:

Options

1. Statements2. Functions3. Structured programs4. Variables

Correct Answer: -> 2

Your Answer: -> 3

Question Text

Which of the following is a valid variable name in PLT?

Options

1. Basic_salary2. &&Basicsalary3. Basic@salary4. $Basicsalary

Correct Answer: -> 1

Your Answer: -> 3

Question Text

Assuming that nsum contains 18, predict the output of the following arithmeticoperation:nSum=nSum%4

Options

1. 0

8/14/2019 Question Text Which Type of Computer Is

http://slidepdf.com/reader/full/question-text-which-type-of-computer-is 7/24

2. 23. 14. 3

Correct Answer: -> 2

Your Answer: -> 2

Question Text

Which of the following phases is not involved in object-oriented methodology

Options

1. Analysis phase2. Design phase3. Implementation phase4. Maintenance phase

Correct Answer: -> 4

Your Answer: -> 4

Question Text

Give the output of the following:public class abc{public void Main(string[] args){System.Console.WriteLine("hello");}}

Options

1. will give the output "hello".2. will give error.3. will read a string "hello".4. compile successfully but no output is displayed.

Correct Answer: -> 2

8/14/2019 Question Text Which Type of Computer Is

http://slidepdf.com/reader/full/question-text-which-type-of-computer-is 8/24

8/14/2019 Question Text Which Type of Computer Is

http://slidepdf.com/reader/full/question-text-which-type-of-computer-is 9/24

public static void Main(string[] args){int roll;string ch;do{Console.WriteLine("Enter roll:");roll=Convert.ToInt32(Console.ReadLine());Console.WriteLine("Roll={0}",roll);Console.WriteLine("want to continue:");ch=Console.ReadLine();}while(ch==y&&ch==Y);}}

Options

1. while(ch=="y"||ch=="Y"){Console.WriteLine("Enter roll:");roll=Convert.ToInt32(Console.ReadLine());Console.WriteLine("Roll={0}",roll);Console.WriteLine("want to continue:");ch=Console.ReadLine();}2. while(ch==y&&ch==Y){Console.WriteLine("Enter roll:");roll=Convert.ToInt32(Console.ReadLine());Console.WriteLine("Roll={0}",roll);Console.WriteLine("want to continue:");ch=Console.ReadLine();}3. do{Console.WriteLine("Enter roll:");roll=Convert.ToInt32(Console.ReadLine());Console.WriteLine("Roll={0}",roll);Console.WriteLine("want to continue:");ch=Console.ReadLine();}while(ch=="y"||ch=="Y");4. do{Console.WriteLine("Enter roll:");roll=Convert.ToInt32(Console.ReadLine());Console.WriteLine("Roll={0}",roll);

Console.WriteLine("want to continue:");ch=Console.ReadLine();}while(ch=="y"&&ch=="Y");

Correct Answer: -> 3

Question Text

8/14/2019 Question Text Which Type of Computer Is

http://slidepdf.com/reader/full/question-text-which-type-of-computer-is 10/24

Which access specifier allows a class to expose its member variables and memberfunctions to other functions and objects?

Options

1. private2. internal3. protected internal4. friend

Correct Answer: -> 2

Question Text

Give the output of the following program:using System;sealed class a{public abstract void one(){Console.WriteLine("you are in sealed class");}}class inherit_demo1{public static void Main(){a obj = new a();obj.one();}}

Options

1. It will display a message "you are in sealed class".2. No message will be displayed.3. The program will give error because a.one() can't be declared with a bodysince it is marked abstract.4. Sealed is an unrecognized keyword.

Correct Answer: -> 3

Question Text

Consider the following code snippet:class a{

8/14/2019 Question Text Which Type of Computer Is

http://slidepdf.com/reader/full/question-text-which-type-of-computer-is 11/24

public virtual void show(){Console.WriteLine("you are in class a");}}Which of the following option will redefine the implementation of method show() inclass b?

Options

1. class b{public void s(){a obj = new a();obj.show();}}

2. class b:a{public void show(){a:s();Console.WriteLine("you are in class b");}}3. class b:a{public override void show(){Console.WriteLine("you are in class b");}}4. class b:a{private override void show(){Console.WriteLine("you are in class b");}}

Correct Answer: -> 3

Question Text

Consider the following code:using System;namespace OperatorOverload{struct emp{public int id;

8/14/2019 Question Text Which Type of Computer Is

http://slidepdf.com/reader/full/question-text-which-type-of-computer-is 12/24

public emp(int i){this.id=i;}static public emp operator --(emp e){e.id--;return e;}}

class over_demo{static void Main(string[] args){emp e1=new emp(2);emp e2 = --e1;Console.WriteLine(e1.id);Console.WriteLine(e2.id);e2=e1--;Console.WriteLine(e1.id);Console.WriteLine(e1.id);Console.ReadLine();}}}What value should be passed to get the output as:102,102,101,101?

Options

1. 1012. 1033. 1024. 100

Correct Answer: -> 2

Question Text

Give the output of the following program;using System;namespace s

{class enum_demo{enum e{jan,feb,mar,dec};static void Main(string[] args){int m1=(int)e.dec;Console.WriteLine("Dec={0}",m1);Console.ReadLine();}}

8/14/2019 Question Text Which Type of Computer Is

http://slidepdf.com/reader/full/question-text-which-type-of-computer-is 13/24

}

Options

1. Dec=122. Dec = 43. Dec = 34. Dec = 0

Correct Answer: -> 3

Question Text

Give the output of the following program:using System;namespace OperatorOverload{struct emp{public int id;public emp(int i){this.id=i;}static public emp operator --(emp e){e.id--;return e;}}

class over_demo{static void Main(string[] args){emp e1=new emp(2);emp e2 = --e1;Console.WriteLine(e1.id);Console.WriteLine(e2.id);e2=e1--;Console.WriteLine(e1.id);Console.WriteLine(e1.id);

Console.ReadLine();}}}

Options

1. 120

8/14/2019 Question Text Which Type of Computer Is

http://slidepdf.com/reader/full/question-text-which-type-of-computer-is 14/24

02. 11003. 21004. 2200

Correct Answer: -> 2

Question Text

Consider the follwoing code:using System;namespace o{class over{public int show(int x,int y){if(x>y)Console.WriteLine(x);elseConsole.WriteLine(y);}public float show(float x, float y){if(x>y)Console.WriteLine(x);elseConsole.WriteLine(y);}}

class func_over{static void Main(string[] args)

{over obj = new over();Console.WriteLine("{0}",obj.show(2,4));Console.WriteLine("{0}",obj.show(2.5F,4.5F));Console.ReadLine();}}}It should display the value of x and y accordingly but it is generating an error?Identify the error and choose the correct code to rectify it.

8/14/2019 Question Text Which Type of Computer Is

http://slidepdf.com/reader/full/question-text-which-type-of-computer-is 15/24

Options

1. public void show(int x,int y){if(x>y)return x;elsereturn y;}public void show(float x, float y){if(x>y)return x;elsereturn y;}2. public int show(int x,int y){if(x>y)Console.WriteLine(x);return x;elseConsole.WriteLine(y);return y;}public float show(float x, float y){if(x>y)Console.WriteLine(x);return x;elseConsole.WriteLine(y);return y;}3. public int show(int x,int y){if(x>y)return x;elsereturn y;}public float show(float x, float y){if(x>y)return x;else

return y;}4. public int show(int x,int y){if(x>y);return x;elsereturn y;}public float show(float x, float y){

8/14/2019 Question Text Which Type of Computer Is

http://slidepdf.com/reader/full/question-text-which-type-of-computer-is 16/24

if(x>y)return x;elsereturn y;}

Correct Answer: -> 3

Question Text

Give the output of the following program:

using System;namespace s{class enum_demo{enum e{jan,feb,mar,dec};static void Main(string[] args){string m1=(string)e.dec;Console.WriteLine("{0}",m1);Console.ReadLine();}}}

Options

1. Dec2. 33. It will display the message, Can't convert type 's.enum_demo.e' to string.4. The program will compile but no message will be displayed.

Correct Answer: -> 3

Question Text

Which of the following code snippet is syntactically correct according to therules applied for declaring the prefix and postfix notations for operatoroverloading?

Options

1. internal static over operator++ (over x){ }2. static static over operator++ (over x){ }

8/14/2019 Question Text Which Type of Computer Is

http://slidepdf.com/reader/full/question-text-which-type-of-computer-is 17/24

3. private static over operator++ (over x){ }4. public static over operator++ (over x){ }

Correct Answer: -> 4

Question Text

Which of the following code will be used to initialize the delegate object where adelegate PrintData is defined in a class and WriteConsole and WriteFile are twomethods defined to print a string to the console and print a string to the filerespectively?

Options

1. public static void Main(){PrintData p = new PrintData(WriteConsole);PrintData p1 = new PrintData(WriteFile);}2. public static void Main(){WriteConsole p = new WriteConsole(PrintData);WriteFile p = new WriteFile(PrintData);}3. public static void Main(){WriteConsole p = new WriteConsole(PrintData);WriteFile p1 = new WriteFile(PrintData);}4. public static void Main(){PrintData WriteConsole = new PrintData(p);PrintData WriteFile = new PrintData(p1);}

Correct Answer: -> 1

Question Text

Choose the correct code to define the event named 'ehello' that invokes a delegatenamed 'hello'

Options

1. public delegate hello();private event delegate ehello();

8/14/2019 Question Text Which Type of Computer Is

http://slidepdf.com/reader/full/question-text-which-type-of-computer-is 18/24

2. public delegate void hello();private event delegate ehello();3. public delegate hello();private event ehello hello();4. public delegate void hello();private event hello ehello();

Correct Answer: -> 4

Question Text

Which method is called explicitly to release a resource as soon as the objectusing that resource is no longer in use?

Options

1. Dispose2. Finalize3. IDisposable4. Finally

Correct Answer: -> 1

Question Text

Choose the correct code that can be used to initialize the values to the classvariables a,b,c using constructors?

Options

1. class abc{int abc;abc(){a=10;b=20;

c=30;}}2. class abc{int a,b,c;public abc(){a=10;b=20;c=30;

8/14/2019 Question Text Which Type of Computer Is

http://slidepdf.com/reader/full/question-text-which-type-of-computer-is 19/24

8/14/2019 Question Text Which Type of Computer Is

http://slidepdf.com/reader/full/question-text-which-type-of-computer-is 20/24

{FileStream f = new FileStream("abc.txt");StreamWriter s = new StreamWriter(f);Console.WriteLine("Enter the String:");string s1 = Console.ReadLine();s.Write(s1);s.Flush();s.Close();f.Close();}public static void Main(string[] args){file_demo obj = new file_demo();obj.accept();}}

Options

1. FileStream f = new FileStream("abc.txt",FileMode.Append,FileMode.Write);StreamWriter s = new StreamWriter(f);Console.WriteLine("Enter the String:");string s1 = Console.WriteLine();2. FileWriteStream f = newFileWriteStream("abc.txt",FileMode.Append,FileMode.Write);StreamWriter s = new StreamWriter(f);Console.WriteLine("Enter the String:");string s1 = Console.WriteLine();3. FileWriteStream f = newFileWriteStream("abc.txt",FileMode.Append,FileMode.Write);StreamWriter s = new StreamWriter(f);Console.WriteLine("Enter the String:");string s1 = Console.ReadLine();4. FileStream f = new FileStream("abc.txt",FileMode.Append,FileMode.Write);StreamWriter s = new StreamWriter(f);Console.WriteLine("Enter the String:");string s1 = Console.ReadLine();

Correct Answer: -> 4

Question Text

What is the purpose of the following line of code: [DllImport(.kernel32.dll)]

Options

1. It will call the unmanaged code defined in kernel from managed C#environment.2. It will call the unmanaged code defined in Dll from managed C# environment.3. It will call and import the unmanaged code residing in kernel to Dll.4. It will import the unmanaged code residing in Dll to kernel.

8/14/2019 Question Text Which Type of Computer Is

http://slidepdf.com/reader/full/question-text-which-type-of-computer-is 21/24

Correct Answer: -> 2

Question Text

Consider the following statement:Thread 'a', Thread 'b', and Thread 'c' are accessing variable ' x' simultaneously.Thread 'b' wants to assign value 10 to the variable x.Identify the situation being referred to in the above statement.

Options

1. DeadLock2. Race condition3. Lock starvation4. Wait

Correct Answer: -> 2

Question Text

Consider the following code. It was written to send the current thread in sleepmode but instead of going to sleep mode the thread is being aborted. Select thecorrect code that can be inserted to send the thread in sleep mode.using System;using System.Threading;namespace ThreadSample{class sleep_demo{public static void Child(){Console.WriteLine("Child thread started");int SleepTime = 5000;Console.WriteLine("Sleeping for {0} seconds", SleepTime /1000);Thread.Sleep(SleepTime);Console.WriteLine("Waking Up");}public static void Main()

{ThreadStart ChildRef = new ThreadStart(Child);Console.WriteLine("Main - Creating Child thread");Thread ChildThread = new Thread(ChildRef);ChildThread.Start();Console.WriteLine("\nMain - Aborting Child thread");ChildThread.Abort();Console.ReadLine();}}}

8/14/2019 Question Text Which Type of Computer Is

http://slidepdf.com/reader/full/question-text-which-type-of-computer-is 22/24

Options

1. public static void Main(){ThreadStart ChildRef = new ThreadStart(ChildThreadCall);Console.WriteLine("Main - Creating Child thread");Thread ChildThread = new Thread(ChildRef);ChildThread.Start();Console.WriteLine("Main - Have requested the start of child thread");Console.ReadLine();}}2. public static void Main(){ThreadStart ChildRef = new ThreadStart(ChildThreadCall);Console.WriteLine("Main - Creating Child thread");Thread ChildThread = new Thread(ChildRef);ChildThread.Start();ChildThread.Sleep();Console.WriteLine("Main - Have requested the start of child thread");Console.ReadLine();}}3. public static void Main(){ThreadStart ChildRef = new ThreadStart(Child);Console.WriteLine("Main - Creating Child thread");Thread ChildThread = new Thread(ChildRef);ChildThread.Start();ChildThread.sleep();Console.WriteLine("\nMain - Aborting Child thread");ChildThread.Abort();Console.ReadLine();}}}4. public static void Main(){ThreadStart ChildRef = new ThreadStart(Child);Console.WriteLine("Main - Creating Child thread");Thread ChildThread = new Thread(ChildRef);ChildThread.Start();Console.WriteLine("\nMain - Aborting Child thread");ChildThread.Abort();Console.ReadLine();

}}

Correct Answer: -> 1

Question Text

8/14/2019 Question Text Which Type of Computer Is

http://slidepdf.com/reader/full/question-text-which-type-of-computer-is 23/24

8/14/2019 Question Text Which Type of Computer Is

http://slidepdf.com/reader/full/question-text-which-type-of-computer-is 24/24

Correct Answer: -> 2