Computer System Architecture 6.823 Quiz #1 October 7th, 2005 ...
Computer ScienceTechnical quiz
-
Upload
lakshmi-sarvani-videla -
Category
Technology
-
view
435 -
download
1
Transcript of Computer ScienceTechnical quiz
Q1) What is the output of below C code?
main(){
int i = 5;i=(++i) / (i++);printf("%d",i);
}
a) 2b) 5c) 1d) 6
Answer: c
Q2) What is the output of below code?
main(){
int h =5;static char wer[] = "No Substitute for hard work";printf("%-10.*s",h,wer);
}
a) No sub)No Suc) No Subd) error message
Answer: b
Q3) What is the output of below code?
main(){
printf("tim");main();
}
a) prints tim twiceb) keeps on printing timc) prints tim onced) compiler error
Answer:b
Q4) In a 16-bit computer, what is the output of below code?
main(){
int a =1;printf("%u",~a);
}
a) 0b)compiler errorc)1d)65534
Answer: d
Q5) What is the output of below code?void compute(int);main(){
int a =1;compute(a);printf("%d",a);
}
void compute( int a){
a=(a++)*(~a)/(a--);}
(a) 131068(b) 1(c) compiler error(d) 65534
Answer: b
Q6) What is the output of below code in JAVA?class S{
int x = 0;S(){
x++;}public static void main(String args[]){
S s = new S();System.out.println(s.x);
}}
(a) 0(b) 1(c) compiler error(d) Garbage value
Answer: b
Q7) What is the output of below code snippet in JAVA?
char word[]={'a','b','c','d','e'};for(int i =0; i<4; i+=2)
System.out.println(word[i]);
(a) ace(b) ac(c) ab(d) abe
Answer: b
Q8) What is the output of below code snippet in JAVA?
public static void main(String args[]){
System.out.println(this);}
(a) 0(b) 1(c) compiler error(d) Garbage Value
Answer: c
Q9) What is the output of below code snippet in JAVA?
System.out.println(12<<2);
(a) 3(b) 10(c) compiler error(d) 48
Answer: d
Q3) Identify the hidden message in the below logo.
Answer: Cisco was founded in San Francisco, which explains the name. The series of blue lines symbolise San Francisco’s iconic Golden Gate Bridge
Q8) Identify the hidden message in the below logo
Answer: The ‘VA’ of the Sony VAIO logo has been made to look like an analog signal and the ‘IO’ resembles numbers 1 and 0 which represents a digital signal
Q 1) && have higher precedence than &a) true b) false
Answer: false
Q 2) What is the default value of local variable?
Answer: No Default Value
Q 3) Who is the founder of java?
Answer: James Gosling
Q 4) Who is the new CEO of Google?
Answer: Sundar Pichai
Q 5) When you are working on a document on PC, where is the document temporarily stored?
Answer: RAM
Q 6) Information travels between components on the mother board through?
Answer: Buses
Q 7) Expand the term SUN in SUN Microsystems
Answer: 'STANFORD UNIVERSITY NETWORK'.
Q 8) Number of unique digits in binary number system is
Answer: two ( 0 and 1)
Q 9) The most frequently used instructions of a computer program are likely to be fetched from
Answer: Cache memory
Q 10) ASCII stands for?
Answer: American Standard Code for Information Interchange
Q 11) Which access method is used for obtaining a record from a magnetic tape?
Answer: Sequential access
Q 12) A computer program that converts assembly language to machine language is
Answer: Assembler
Q 13) Who co-founded Hotmail in 1996 and then sold the company to Microsoft
Answer: Sabeer Bhatia
Q 14) What displays the content of the active cell in Excel?
Answer: Formula Bar
Q 15) The average time necessary for the correct sector of a disk to arrive at the read write head is
Answer: Rotational Delay
Q 16) What does OCR stands for?
Answer: Optical character Recognition.
Q 17) Linux is a(n) ………………….. operating system.
Answer: open source
Q 18) The errors that can be pointed out by the compiler are
Answer: Syntax errors
Q 19) The tracks on a disk which can be accessed without repositioning the R/W heads is
Answer: Cylinder
Q 20) Which is the first supercomputer developed by the Indian Scientists?
Answer: PARAM
Q 21) The symbols used in an assembly language are
Answer: Mnemonics
Q 22) What is the first ARPANET message
Answer: Lo
Q 23) What does T stands for in T flip-flop?
Answer: Toggle
Q 24) What does the "X" stand for in OS X?
Answer: Ten
Q 25) Abstract method can be in normal class . True (or) False
Answer: False
Q 26) What is the size of char in java?
Answer: 16 bits
Q 27) Switches operate in which layer of OSI model
Answer: Data Link Layer
Q 28) Following code will result in: int num = 6.7
Answer: Compilation error
Q 29) How many layers are there in TCP/IP model?
Answer: 5
Q 30) Expand the term JPEG
Answer: Joint Photographic Experts Group
Q 31) Expand the term DBMS
Answer: Database Management System
Q 32) Which CPU registers holds the address of the instructions (instructions in theprogram stored in memory) to be executed next?
Answer: Program Counter (PC)
Q 33) Which protocol is used to receive email?
Answer: POP3
Q 34) Number of bits used for IPv4 address
Answer: 32 bit addresses
Q 35) Mac operating system is developed by which company?
Answer: Apple
Q 36) .tiff is an extension of which type of files?
Answer: POP3
Q 37) Number of bits used for IPv4 address
Answer: 32 bit addresses
Q 38) Which operating system is developed and used by Apple Inc in mobile phones?
Answer: iOS
Q 39) WhatsApp Inc is founded by?
Answer: Brian Acton and Jan Koum
Q 40) Who developed Linux operating system?
Answer: Linus Torvalds
Q 41) Bug means
Answer: A logical error in a program
Q 42) The step-by-step instructions that solve a problem is called _____.
Answer: An algorithm
Q 43) Which Key combination is used to close an open application in windows?
Answer: Alt+F4
1. First Search engine in internet?
a) googleb) Archiec) Bingd) Yahoo
Answer: b
2. Which one is the current fastest super computer in india?
a) PARAM padmab) SAGA-220c) CRAY3d) PARAM Yuva II
Answer: d
3. In computer, Trojan refers to
a) Spywareb) Malwarec) Virusd) Worm
Answer: b
4. Which Key Combination is used to minimize all open windows displayed on screen ?
a) Alt +Mb) CTRL+dc) Shift+Md) Window Key + d
Answer: d
5. Which company bought the popular video teleconferencing software 'Skype'?
a) Microsoftb) Googlec) Accentured) Oracle
Answer: a
6. What file contains commands that configure systems devices in DOS ?
A. Command.comB. Config.sysC. Autoexec.batD. Win.ini
Answer: b
7. The part of machine level instruction, which tells the central processor what has to be done, is
A. Operation codeB. AddressC. LocatorD. Flip-Flop
Answer: a
8. The process of transferring data intended for a peripheral device into a disk (or intermediate store) so that it can be transferred to peripheral at a more convenient time or in bulk, is known as
A. multiprogrammingB. spoolingC. cachingD. virtual programming
Answer: b