0% found this document useful (0 votes)
560 views10 pages

Quiz 2

The document contains questions about various computer science topics like programming languages, operating systems, software, hardware etc. It covers concepts like WYSIWYG, image editing software, file deletion commands, Java compilers, coding fragments, random number generation, data types, control structures, object oriented concepts, threads, packages in Java and more.

Uploaded by

kkalyani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
560 views10 pages

Quiz 2

The document contains questions about various computer science topics like programming languages, operating systems, software, hardware etc. It covers concepts like WYSIWYG, image editing software, file deletion commands, Java compilers, coding fragments, random number generation, data types, control structures, object oriented concepts, threads, packages in Java and more.

Uploaded by

kkalyani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

1.

In MS- Word WYSIWYG stands for_____________


What you see is what you get

2. Name an image editing software in which we can draw and edit images is?
Coral Draw
3. In DOS, Which of the following command is used to delete all the files as well as
sub-directories of a directory?
Deltree
4. The Java compiler translates source code into
Byte code
5. What is the output of the following code if the input string is "CS180"?
Scannerscanner=newScanner();
Stringstr;
str=scanner.next();
System.out.print(str);
The above code fragment does not compile.
6. What is the value of ywhen the code below is executed?
intx=4;
inty=(int)Math.ceil(x%5+x/5.0);

5
7. What is the range of the random number rgenerated by the code below?
intr=(int)(Math.floor(Math.random()*8))+2;
2<=r<=9
8. What will be printed by the code fragment below?
doubleheight=5.5;
if(height>=5.0)
System.out.print("tall");
if(height>=4.0)
System.out.print("average");
if(height>=3.0)
System.out.print("short");
else
System.out.print("veryshort");
tall short
9. What is the value of nafter executing the following code?
intn=20;
switch(n)
{
case10:n=n+1;
case15:n=n+2;
case20:n=n+3;
case25:n=n+4;
case30:n=n+5;
}

ANS : 32
10. What is the value of nafter executing the following code?
intn=20;
intp=n+5;
intq=p10;
intr=2*(pq);
switch(n)
{
casep:n=n+1;
caseq:n=n+2;
caser:n=n+3;
default:n=n+4;
}
This code does not compile.
11. What is the value of variable z after executing the following code?
intx=5;
inty=5;
intz=5;
if(x>3)
if(y>4)
if(z>5)
z+=1;
else
z+=2;
else
z+=3;
z+=4;
11 (ANS)
12. What is the output of the following program?
publicclassTest
{
publicstaticvoidmain(String[]args)
{
privatestaticfinalintvalue=5;
floattotal;
total=value+value/2;
System.out.println(total);
}
}
SyntaxERRORvalueisdeclaredasfinal
13. Which of the following variables contains null?
Stringa;

Stringb=newString();
Stringc="";
Stringd="null";
a (ans)

14. The style rule li, em {color: blue} indicates the content of ____ will appear in blue color.
Both <em> and <li> elements
15. Which protocol is ideal for transmitting large files?
FTP
16. Match each of the TCP/IP layers with the correct protocol.
a) Application Layer 1) IP
b) Transport Layer
2) WiFi
c) Network Layer
3) TCP
d) Physical Layer
4) HTTP

a4, b3, c1, d2

17. in the context of animations, what is a trigger?


An item on the slide that performs an action when clicked
18. the slide that is used to introduce a topic and set the tone for the presentation
is called the
title slide
19. Want your logo in the same position on every slide, automatically? Insert it on
which slide
Slide master
20. Which command(short cut) brings you to the first slide in your presentation?
Ctrl + Home
21.

The key F12 opens a

22.

Save As dialog box


What is the short cut key to open the Open dialog box?

23.

Ctrl + F12
What is place to the left of horizontal scroll bar?

24.

View buttons
Portrait and Landscape are
Page Orientation

25. What are symbols used to identify items in a list?


Bullets
26. Which of the following should you do to bring a bullet back to a previous
level?

Press the shift + tab keys


27. The view that displays the slides of a presentation as miniature
representations of the slides is called
Slide sorter view
28. The power point view that displays only text (title and bullets) is:
Outline view
29.

Name the button in the picture?


Highlighter tool

30. Shortcut for document views toolbar is situated in ______ bar.


Status bar
31. Cut, Copy and Paste is in ________ Group in the Home tab.
Clipboard
32. _______ is used to covert from upper case to lower case and vice versa.
Toggle case
33. Pressing F8 key for three times selects
A sentence
34. What is the shortcut key you can press to create a copyright symbol?
Alt+Ctrl+C
35. What is the smallest and largest font size available in Font Size tool on formatting toolbar?
8 and 72
36. The keystrokes Ctrl + I is used to
Applies italic format to selected text
37.
Al l except ions in Java are subclasses of built in class called
Throwable.
38.
DMSP stands for
Distributed Mai l System Protocol
39.
Which Layer is not present in TCP/ IP model?
Presentat ion Layer
40.
FDDI (Fiber Distr ibuted Data Interconnect) is an example of
which topology
token ring.
41.
Parent class of al l Java classes is
java. lang.object
42.
Except ions of type error inn JAVA are handled by
Java run t ime environment(JVM)
43.
Which type of web document is run at the client is the
Active
44.
The main funct ion of a browser is to

interpret HTML
45.
DHCP stands for
Dynamic Host Configurat ion Protocol .
46.
A has a relationship between classes represents _________ and an
is a relationship between classes represent _______.
(containment, inheritance)
47.
A ____ operator is called as de-referencing operator.
(*)
48.
The size of a class with no data members and member functions is
____ bytes.
(1)
49.
A ______ is a function that invokes itself.
(Recursion)
50.
A _______ is a set of instance or values.
(object)
51.
A _______ is a linear list in which additions and deletions take place
ate the same end.
(stack)
52.
new operator allocates memory blocks from the _______.
(Heap)
53. BOSS is developed by

C-DAC

54. OSF stands for


Open Software foundation
55. When did the first ANSI programming language stander d come out?

1958

56. Translator for low level programming language were termed as

Assembler

57. What is the name of the category of programming languages whose structure is dictated by
the vonNeuman computer architecture?

Imperative

58. Which language is considered to be the first fully object-oriented language?

JAVA

59. In what language is UNIX written?


C language
60. What programming language has dominated scientific computing over the past 35 years?

FORTRAN

61. What programming language has dominated artificial intelligence programming over the
past 35years?

LISP(List Processing)

62. What language has slogan 'write once run anywhere'?

JAVA

63. First high level language to be implemented on personal computers

FORTRAN
64. Structured programming languages are also known as
Modular programming language

65.

GUI stands for


Graphical User Interface
66. Pseudo code is also known as
Program Design Language

67. The mechanism used to convey information to the function is the


ARGUMENTS
68. The C language has been developed at

AT & T Bell Labs

69. Every statement in C program is to be terminated by a


semi-colon(;)
70. What is the maximum value that an signed integer constant can have?

32768
71. What will be the output of following program?

void main()
{

int i=20;
printf(%d\n sizeof(i))
}

Ans: 2
72. Every C program should compulsorily have a function called as:

main()

73. The difference between a and a is


The first one refers to a variable whose identifier is a and the
second one refers to the character constant a
74. the result of relational operator operator is always

either true or false

75.

Evaluate !(1 && !(0||1)) in C- language


True
76. Find the output following C program?

#include<stdio.h>
#define a 5+2
int main()
{

int ans;
ans=a*a*a;
printf(%d ans)
}

ANS: 27
77. Find the output of the following c program?

#include<stdio.h>
{

Int xa=10;
printf(%d%d%d x x++ ++x)
}

ANS: 12 11 11

78.

What are the different type of real data type in C?


Float, double , long double

79.

Find the output of the following C program?

#include<stdio.h>
int void()
{

int x,y,z; x=y==z=1; z=++x||++y &&++z;


printf(x=%d y=%d z=%d\n x y z)

return 0;
}

x=2,y=2,z=1

80. The memory space taken for a float type data is

4 bytes

81.

Find the output of the following program

#include<stdio.h>
#include<conio.h>
void main()
{

int p=8,q=20;
if(p==5 && q>5)
printf("\n Why not C");

else
printf("\n Why C");

getch();
}

82.

Why C
Find the output of the following program?

#include<stdio.h>
#include<conio.h>
void main()
{

int j=4,k;
k=!5 &&j;
printf("\n k= %d",k);
}

K= 0
83.

Find the output of the following program?

#include<stdio.h>
#include<conio.h>
void main()
{

int i=4;
clrscr();
printf("%d",i);

printf("\n%d",i--);
printf("\n%d",--i);

getch();

}
ANs

84.

Find the output of the following program?

#include<stdio.h>
#include<conio.h>
void main()
{
int x=5,y;
y=x++;
printf("%d%d",x,y);
getch();
}
ANS: 6

85. What is the error in following code?

If(z=100)

Printf(z is 100)
ANS: Mistakes in the equals to operator
86. What is the name of the method used to schedule a thread for execution?
run()
87. Two threads cannot simultaneously enter into the methods of the same object if the
methods are
synchronized
88. ______ is a mechanism for naming and visibility control of a class and its content.
Packages
89. Command to execute a compiled java program is :
java
90. Java uses ___ to represent characters
ASCII code

91. In ASCII, ____________ characters can be created.


256
92. An advanced coding scheme that incorporates Chinese, Greek, Hebrew, and Japanese is known
as:
Unicode.
93. A computers clock speed is measured in__________hertzs:
gigahertz.

94. When two processors are employed in a computer, it is known as_______ processing:
parallel processing.

95. The memory that stores the computers date, time, and calendar is the:
CMOS

You might also like