Wednesday, September 5, 2012

ILP TCS ASPIRE LATEST MATERIAL.........Basic of Programming Quiz

In a Javascript program, the word preceding the “ . “ represents

A. An action by an object

B. A program name

C. A command

D. An object


For eg.“Zygot.move()”. Here ‘Zygot’ is the object and ‘move’ is the action requested on that object

What do you mean by a portable computer program?

A. The program can be attached to the port of a computer

B. The program is very small

C. It can be run on computers with different types of computers

D. It can be send from one computer to another computer


A string in a computer program is

A. used to group several related programs together

B. used to sequence the instructions in a program

C. used to store a word

D. used to define a variable


A string is a series of characters treated as a single unit. A string may include letters, digits, and various special characters.
Data structure enables

A. Structuring data in a program

B. Storing and organizing data in computer memory for efficient use

C. Connecting a program with database

D. Analysis of the data used in a program


What is a variable in a computer program?

A. The name given to a value

B. A value such as 5

C. An output

D. An input argument


When you are writing a computer program, you will often want the program to be able to "remember" a value. You can do this by assigning the important value to a named variable. Variables are categorized by the types of data they store.
A loop in a computer program is used for

A. Used to run a program again and again

B. Repeating things over and over in a program

C. Represent the beginning and end of a program

D. Used to collect items together in a program


Loops execute a block of code a specified number of times, or while a specified condition is true.
What is debugging ?

A. Testing the program to identify defects

B. Fine tuning the program for performance

C. The process of tracking and correcting the bugs in a program

D. The process of removing the identified bugs


A variable will last until

A. Computer is switched off

B. the value of the variable is used in the program

C. The program completes and exit
D. Hard disc is formatted


The lifetime of a variable in the computer memory will be same as the life of the program. The memory is cleaned as soon as the program stops.
Why do we need testing of a computer program ?

A. To make sure that program doesn’t break

B. To ensure that program is accepting the correct input

C. To pass the quality criteria

D. It is a phase in software development cycle


Testing is done to find defects ensure that they removed from the program.
What is a computer program ?

A. A sequence of instructions

B. A command

C. A language

D. An instruction



1 comment:
