Programming Fundamentals MCQs with Answers
- A program is a set of_________ .
- A program must be written in Some programming languages for________.
- Computer has no_____ .
- For every single task we have to _______ Computer.
- Computer has ______levels of languages.
- These are:
- Low level languages is a _________level language
- In low level language instruction given to the computers in the form of:l
- This type of level is so_________
- Error finding in low level language is also very:
- In middle level languages instructions are given in:
- It is easy to ________&________:
- Translator used here is
- If we write a program in middle level language, then we need to_______for further use
- Assembly level language store data in
- Register are different of different
- Due to the above statement program is not_____
- High level languages are good for_______
- High level languages are not directly understandable by the:
- These languages are
- Which of these are high level Language/languages:
- Translator is a________
- Translator is used to translate
- Types of translators are:
- Which of the following is not the type of translator
- Compiler are used to convert the program from
- The program which is written in high level language is known as:
- The corresponding machine level language program is called:
- Compiler read the program
- Interpreter reads:
- Mostly high level languages now considered to
- Steps in learning C
- Basic types of instructions are
- These are:
- Data before & after processing goes to the:
- Different types of data require_______memory space.
- Integer (Int) requires_______memory space.
- Float (float) requires_______memory space.
- Character (char) requires_______memory space.
- For our conformation that our machine require how much bytes. We have simple write
- Char c; means; it requires:
- Float f; means it requires:
- Arithmetic instructions are used for:
- These instructions are formed by using:
- Arithmetic operators are used for:
- Unary arithmetic operators required :
- Binary operators required:
- Binary operators are:
- % modulus operators would return:
- Modulus______applied with floating point operand.
- When both operand are integers, then result would be:
- When 1 operand is integers and other 1 is float, then result would be:
- A value can be stored in a variable with the use of:
- Operand on the left hand side should be
- Operand on the left hand side should be
- Which of the following has highest precedence
- Which of the following has lowest precedence
- K = 2*3/4+4/4+8-2+5/8, in this example what should we we do first?
- K = 2*3/4+4/4+8-2+5/8, in this example what should we we do after doing multiplication?
- K = 2*3/4+4/4+8-2+5/8, in this example what should we we do after doing *,/,%?
- Variables are the quantities whose values can
- Constants are the quantities whose values can
- In a program, variables has:
- Keywords are the words whose meanings are :
- Some examples are:
- Input instructions are used to enter from input unit to_________ .
- For input the value of any variable we need to use________,
- In C++, we use_____ for input instructions.
- For input instructions, we use__________.
- Statement terminator is_______
- Semicolon is the ____of the any instruction.
- For display the value of variable/constant on output unit, we need to use______.
- In C++, we use______ for output instructions.
- For output instructions, we use__________.
- Anything we write in inverted commas it will be __________ as it is:
- Parts of basic structure of program are;
- /*………………………..*/, this is:
- Comment line is used to increase the ________ of the program.
- Anything which is written in comment line will not be _________ .
- If we want to use input/output instructions,then we have to use;
- #include<iostream.h> tells the compiler to include ______ about input/output instructions.
- Global declaration, is the section where variables are declared____________ .
- Global variables are accessible _________ the program.
- The execution start always from the ___________
Main( )
is the ________ function.- Every function has ______ main() function
- Main function is encloses with the pair of __________.
- Main function can be _________ in the program.
- In general practice, main( ) function is placed in __________.
- The definition is already defined in the
#include<iostream.h>
of_________. - For displaying the result, we have to use ________
- __________is use not to terminate the execution until you want.
- Getch( ); demanding the ______ from the keyboard.
- How we can run our program?
- Endl; means_____
- After putting endl; in the end of any line, it means this line _________ here.
- If you have to write clrscr( ); & getch( ); , then we use;
- If x = 10, y = 20, then z = x+y ,output will be?
- If x = 10, y = 20, then z = x*y ,output will be?
- If x = 20, y = 2, then z = x/y ,output will be?
- If x = 15, y = 5, then z = x+y ,cout<<”z=”,output will be?
- If we want that computer asks us to put the value from keyboard, then what should we do for the value of a?
- The output of cout&t;>"This is my first program"endl; cout&t;>"This is my second program"; will be;?
Computer Progam
(a) Languages
(b) Tasks
(c) Instructions
(d) Problems
(c) Instructions
(a) Solution
(b) Execution
(c) resolution
(d) decleration
(b) Execution
(a) Hardware
(b) Software
(c) IQ
(d) Hard disk
(c) IQ
(a) Build
(b) Teach
(c) instruct
(d) Costruct
(c) instruct
Languages
(a) 1
(b) 2
(c) 3
(d) 4
(c) 3
(a) Low level language
(b) Middle level language
(c) High level language
(d) all of these
(d) all of these
Low level language
(a) Human
(b) machine
(c) other
(d) both
(b) machine
(a) octal
(b) binary
(c) hexa
(d) decimal
(b) binary
(a) Easy
(b) normal
(c) difficult
(d) none
(c) difficult
(a) Normal
(b) complicated
(c) easy
(d) all of these
(b) complicated
Middle level language
(a) Numbers
(b) English words & symbols
(c) different languages
(d) none
(b) English words & symbols
(a) Implement
(b) Execute write & understand
(c) Both (a) and (b)
(d) only a
(b) Execute write & understand
(a) Assembler
(b) interpreter
(c) both
(d) none
(a) Assembler
(a) Translate
(b) finish
(c) destroy
(d) none
(a) Translate
(a) Unit
(b) computer register
(c) other
(d) none
(b) computer register
(a) Units
(b) computers
(c) both
(d) none
(b) computers
(a) Easy
(b) difficult
(c) portable
(d) all of these
(c) portable
High level language
(a) Humans
(b) computers
(c) both
(d) none
(a) Humans
(a) Humans
(b) Computers
(c) both
(d) none
(b) Computers
(a) Independent
(b) dependent
(c) both
(d) none
(a) Independent
(a) C++
(b) Java
(c) Fortran
(d) all of these
(d) all of these
Translator
(a) Hardware
(b) software
(c) both
(d) none
(b) software
(a) low level language to high level language
(b) high level language to low level language
(c) both a & b
(d) none
(b) high level language to low level language
(a) 1
(b) 2
(c) 3
(d) 4
(c) 3
(a) Compiler
(b) Converter
(c) interpreter
(d) assembler
(b) Converter
(a) Low level to high level
(b) High level to low level
(c) Both
(d) None
(b) High level to low level
(a) Object program
(b) source program
(c) both
(d) none
(b) source program
(a) Object program
(b) source program
(c) a & b
(d) none
(a) Object program
(a) line by line
(b) At a time
(c) normally
(d) none
(b) At a time
(a) Only a line
(b) at once
(c) next to
(d) after that
(a) Only a line
(a) Compiler
(b) interpreter
(c) assembler
(d) all of these
(a) Compiler
(a) Alphabets, digits, special symbols
(b) Constants, variables, keywords
(c) Instructions
(d) Program
(a) Alphabets, digits, special symbols
Types of Instructions
(a) 1
(b) 2
(c) 3
(d) 4
(d) 4
(a) Type declaration instruction & Arithmetic instruction
(b) Input/output instruction
(c) Control instruction
(d) All of these
(d) All of these
Type declaration instruction
(a) Hardware
(b) software
(c) memory
(d) none
(c) memory
(a) Same
(b) different
(c) matching
(d) both a & c
(b) different
(a) 4 bytes
(b) 2 bytes
(c) both a & b
(d) 1 byte
(Note): because new computer requires 4 bytes for Int
(c) both a & b
(a) 4 bits
(b) 4 bytes
(c) 2 bytes
(d) 1 byte
(b) 4 bytes
(a) 1 bit
(b) 1 byte
(c) 4 bytes
(d) 2 bits
(b) 1 byte
(a) Size of( )
(b) Length of ( )
(c) Value of ( )
(d) None
(a) 2 bytes
(b) 1 bit
(c) 1 byte
(d) 4 bytes
(c) 1 byte
(a) 2 bytes
(b) 4 bytes
(c) 4 bits
(d) 1 byte
(b) 4 bytes
Arithmetic instruction
(a) Storing purposes
(b) calculation purposes
(c) implementing purposes
(d) all
(b) calculation purposes
(a) Arithmetic operators
(b) assignment operators
(c) both
(d) only a
(c) both
(a) General calculations
(b) numeric calculation
(c) common calculation
(d) all
(b) numeric calculation
(a) Two operand
(b) Only 1 operand(++,–)
(c) only a
(d) both
(b) Only 1 operand(++,–)
(a) Two operand
(b) only 1 operand
(c) only b
(d) both
(a) Two operand
(a) +
(b) – & %
(c) * & /
(d) all
(d) all
(a) Value
(b) numeric value
(c) reminder
(d) symbols
(c) reminder
(a) Can
(b) cannot
(c) maybe
(d) may not be
(b) cannot
(a) Float
(b) Char
(c) Int
(d) all
(c) Int
(a) Float
(b) Char
(c) Int
(d) all
(a) Float
Assignment Operators
(a) Arithmetic operator
(b) Assignment operator
(c) logical operator
(d) all
(b) Assignment operator
(a) Constant
(b) variable
(c) both
(d) none
(b) variable
(a) Constant or any expression
(b) varrable
(c) both
(d) none
(For example sum = x+y+z)
(a) Constant or any expression
(a) *,/,%
(b) ( )
(c) +,-
(d) both a & c
(b) ( )
(a) *,/,%
(b) ( )
(c) +,-
(d) both a & c
(b) ( )
(a) *,/,%
(b) ( )
(c) +,-
(d) both a & c
(b) ( )
(a) *,/,%
(b) ( )
(c) +,-
(d) both a & c
(a) *,/,%
(a) *,/,%
(b) ( )
(c) +,-
(d) both a & c
(c) +,-
Varriables
(a) Not be changed
(b) changed
(c) both
(d) all of these
(b) changed
(a) Not be changed
(b) changed
(c) both
(d) all of these
(a) Not be changed
(a) Name
(b) Type (type of the variable. float, Int,etc)
(c) Size (how many bytes are going to be reserved) , value(what is the value is to be assigned)
(d) All of these
(d) All of these
Keywords
(a) Not defined
(b) Already Defined
(c) both
(d) none
(b) Already Defined
(a) Int
(b) char
(c) Short
(d) all of these
(d) all of these
Input/output Instructions
Input Instructions
(a) ROM
(b) RAM
(c) Motherboard
(d) IC
(b) RAM
(a) Output instructions
(b) Input instructions
(c) Control Instructions
(d) all
(b) Input instructions
(a) cin<<
(b) cin>>
(c) cout>>
(d) cout<<
(b) cin>>
(a) Less than
(b) greater than
(c) greater than or equal to
(d) less than or equal to
(b) greater than
(a) ( )
(b) !
(c) ; (semi colon)
(d) “ ”
(c) ; (semi colon)
(a) Start
(b) Duration
(c) End
(d) None
(c) End
Output instructions
(a) Input instructions
(b) Output instructions
(c) Control instructions
(d) None
(b) Output instructions
(a) cin<<
(b) cin>>
(c) cout>>
(d) cout<<
(c) cout>>
(a) Less than
(b) greater than
(c) greater than or equal to
(d) less than or equal to
(a) Less than
(a) End
(b) Display
(c) terminate
(d) both a & c
(b) Display
Structure of C++ program
(a) Comment line
(b) Preprocessor Directive & main funtion
(c) Global variable decleration
(d) All
(d) All
(a) Preprocessor Directive
(b) Comment line
(c) main function
(d) none
(b) Comment line
(a) Understanding
(b) readability
(c) both a & b
(d) none
(c) both a & b
(a) Written
(b) Executed
(c) terminate
(d) both a & c
(b) Executed
(a) Cin>>
(b) cout<<
(c) #include<iostream.n>
(d) #include<iostream.h>
(d) #include<iostream.h>
(a) Reason
(b) information
(c) cause
(d) all
(b) information
(a) Easily
(b) globally
(c) both
(d) none
(b) globally
(a) Some portion
(b) Throughout
(c) only a
(d) none
(b) Throughout
(a) Main( ) function
(b) global delaration
(c) comment line
(d) all
(a) Main( ) function
(a)Built in (b)user defined (c)fixed (d)both a & c
(b)user defined
(a) One
(b) two
(c) three
(d) four
(a) One
(a) Commas
(b) curly braces
(c) inverted commas
(d) all
(b) curly braces
(a) Anywhere
(b) only in middle
(c) only in last
(d) none
(a) Anywhere
(a) Middle
(b) start
(c) end
(d) none
(b) start
(a) Input instructions
(b) output instructions
(c) both
(d) none
(c) both
(a) Clrscr( );
(b) getch();
(c) both
(d) none
(c) both
(a) Clrscr( )
;
(b) Getch( )
;
(c) both
(d) none
(b) Getch( )
;
(a) Number
(b) character
(c) symbol
(d) all
(b) character
(a) Ctrl+F8
(b) Ctrl+F9
(c) Ctrl+F5
(d) Ctrl+F7
(b) Ctrl+F9
(a) Start of line
(b) end of line
(c) duration of line
(d) both a & c
(b) end of line
(a) Completed
(b) remaing
(c) both
(d) none
(a) Completed
(a) #include<conio.h>
(b) #include<conio.n>
(c) #include<iostream.h>
(d) none
(a) #include<conio.h>
(a) 10
(b) 20
(c) 30
(d) 200
(c) 30
(a) 10
(b) 20
(c) 30
(d) 200
(d) 200
(a) 10
(b) 20
(c) 30
(d) 200
(a) 10
(a) z=10
(b) z=20
(c) z=30
(d) z=200
(b) z=20
(a) Cin&t;>a
(b) cin<<a
(c) cout&t;>a
(d) cout<<a
(a) Cin&t;>a
(a) This is my first programThis is my second program
(b) This is my second program
(c) This is my first program & This is my second program
(d) None
(c) This is my first program & This is my second program
Cover Topics
“,Programming Fundamentals MCQs with Answers”,,”,programming fundamentals mcqs pdf”,,”,mcqs of programming fundamentals c++”,,”,Fundamentals of Computer Programming 1 solved mcqs”,,”,Programming Fundamentals Mcqs”,,”,Programming MCQ”,”java programming mcqs”