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

D

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


C

Portability is a characteristic attributed to a computer program if it can be used in an operating systems other than the one in which it was created without requiring major rework. Porting is the task of doing any work necessary to make the computer program run in the new environment.
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


C

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



B

Data structures are generally based on the ability of a computer to fetch and store data at any place in its memory, specified by an address—a bit string that can be itself stored in memory and manipulated by the 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



A

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



B

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



C

Debugging is a methodical process of finding and reducing the number of bugs, or defects, in a computer program
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



C

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



A

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



A

A program is a sequence of instructions that specifies how to perform a computation

1 comment:

  1. hi..Im student from Informatics engineering, this article is very informative, thanks for sharing :)

    ReplyDelete