Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

BCA Questions for academic year 2022, Exams of Javascript programming

This is bca questions and it will helpful for you.

Typology: Exams

2021/2022

Uploaded on 04/07/2022

aman-kumar-77
aman-kumar-77 🇮🇳

4 documents

1 / 13

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1
Computer Programming “C language
1. Which of the following language is predecessor to C Programming Language?
a) A
b) B
c) BCPL
d) C++
Ans: c
2. C programming language was developed by
a) Dennis Ritchie
b) Ken Thompson
c) Bill Gates
d) Peter Norton
Ans: a
3. C was developed in the year ___
a) 1970
b) 1972
c) 1976
d) 1980
Ans: b
4. C is a ___ language
a) High Level
b) Low Level
c) Middle Level
d) Machine Level
Ans: c
5. C language is available for which of the following Operating Systems?
a) DOS
b) Windows
c) Unix
d) All of these
Ans: d
6. Which of the following symbol is used to denote a pre-processor statement?
a) !
b) #
c) ~
d) ;
Ans: b
7. Which of the following is a Scalar Data type
a) Float b) Union
c) Array d) Pointer
Ans: a
8. Which of the following are tokens in C?
a) Keywords b) Variables
c) Constants d) All of the above
Ans: d
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download BCA Questions for academic year 2022 and more Exams Javascript programming in PDF only on Docsity!

Computer Programming “C language”

  1. Which of the following language is predecessor to C Programming Language? a) A b) B c) BCPL d) C++ Ans: c
  2. C programming language was developed by a) Dennis Ritchie b) Ken Thompson c) Bill Gates d) Peter Norton Ans: a
  3. C was developed in the year ___ a) 1970 b) 1972 c) 1976 d) 1980 Ans: b
  4. C is a ___ language a) High Level b) Low Level c) Middle Level d) Machine Level Ans: c
  5. C language is available for which of the following Operating Systems? a) DOS b) Windows c) Unix d) All of these Ans: d
  6. Which of the following symbol is used to denote a pre-processor statement? a)! b) # c) ~ d) ; Ans: b
  7. Which of the following is a Scalar Data type a) Float b) Union c) Array d) Pointer Ans: a
  8. Which of the following are tokens in C? a) Keywords b) Variables c) Constants d) All of the above Ans: d
  1. What is the valid range of numbers for int type of data? a) 0 to 256 b) -32768 to + c) -65536 to + d) No specific range Ans: b
  2. Which symbol is used as a statement terminator in C? a)! b) # c) ~ d) ; Ans: d
  3. Which escape character can be used to begin a new line in C? a) \a b) \b c) \m d) \n Ans: d
  4. Which escape character can be used to beep from speaker in C? a) \a b) \b c) \m d) \n Ans: a
  5. Character constants should be enclosed between ___ a) Single quotes b) Double quotes c) Both a and b d) None of these Ans: a
  6. String constants should be enclosed between ___ a) Single quotes b) Double quotes c) Both a and b d) None of these Ans: b
  7. Which of the following is invalid? a) ‘’ b) ““ c) ‘a’ d) ‘abc’ Ans: d
  8. The maximum length of a variable in C is ___ a) 8 b) 16 c) 32 d) 64 Ans: a
  1. The equality operator is represented by a) := b) .EQ. c) = d) == Ans: d
  2. Operators have hierarchy. It is useful to know which operator a) is most important b) is used first c) is faster d) operates on large numbers Ans: b
  3. The bitwise AND operator is used for a) Masking b) Comparison c) Division d) Shifting bits Ans: a
  4. The bitwise OR operator is used to a) set the desired bits to 1 b) set the desired bits to 0 c) divide numbers d) multiply numbers Ans: a
  5. Which of the following operator has the highest precedence? a)* b) == c) => d) + Ans: d
  6. The associativity of! operator is a) Right to Left b) Left to Right c) (a) for Arithmetic and (b) for Relational d) (a) for Relational and (b) for Arithmetic Ans: a
  7. Which operator has the lowest priority? a) ++ b) % c) + d) || Ans: d
  8. Which operator has the highest priority? a) ++ b) % c) + d) || Ans: a
  1. Operators have precedence. Precedence determines which operator is a) faster b) takes less memory c) evaluated first d) takes no arguments Ans: c
  2. Integer Division results in a) Rounding the fractional part b) Truncating the fractional part c) Floating value d) An Error is generated Ans: b
  3. Which of the following is a ternary operator? a) ?: b) * c) sizeof d) ^ Ans: a
  4. What will be the output of the expression 11 ^ 5? a) 5 b) 6 c) 11 d) None of these Ans: d
  5. The type cast operator is a) (type) b) cast() c) (;;) d) // " " Ans: a
  6. Explicit type conversion is known as a) Casting b) Conversion c) Disjunction d) Separation Ans: a
  7. The operator + in a+=4 means a) a=a+ b) a+4=a c) a= d) a=4+ Ans: a
  8. p++ executes faster than p+1 because a) p uses registers b) p++ is a single instruction c) ++ is faster than + d) None of these Ans: b
  1. Symbolic constants can be defined using a) # define b) const c) symbols d) None of these Ans: b
  2. Null character is represented by a) \n b)
    c) \o d) \e Ans: b
  3. Which header file is essential for using strcmp() function? a) string.h b) strings.h c) text.h d) strcmp.h Ans: a
  4. malloc() function used in dynamic allocation is available in which header file? a) stdio.h b) stdlib.h c) conio.h d) mem.h Ans: b
  5. File manipulation functions in C are available in which header file? a) streams.h b) stdio.h c) stdlib.h d) files.h Ans: d
  6. C supports how many basic looping constructs a) 2 b) 3 c) 4 d) 6 Ans: b
  7. A statement differs from expression by terminating with a a) ; b) : c) NULL d). Ans: a
  8. What should be the expression return value for a do-while to terminate a) 1 b) 0 c) -1 d) NULL Ans: b
  1. Which among the following is a unconditional control structure a) do-while b) if-else c) goto d) for Ans: c
  2. Continue statement is used a) to go to the next iteration in a loop b) come out of a loop c) exit and return to the main function d) restarts iterations from beginning of loop Ans: a
  3. Which operator in C is called a ternary operator a) if..then b) ++ c) ?: d) () Ans: c
  4. Which of the following header file is required for strcpy() function? a) string.h b) strings.h c) files.h d) strcsspy() Ans: a
  5. The meaning of conversion character for data input is a) Data item is a long integer b) Data item is an unsigned decimal integer c) Data item is a short integer d) None of the above Ans: c
  6. The conversion characters for data input means that the data item is a) An unsigned decimal integer b) A short integer c) A hexadecimal integer d) A string followed by white space Ans: b
  7. An expression contains relational, assign. ment and arithmetic operators. If Parenthesis are not present, the order will be a) Assignment, arithmetic, relational b) Relational, arithmetic, assignment c) Assignment, relational, arithmetic d) Arithmetic, relational, assignment Ans: d
  8. Which of the following is a key word is used for a storage class a) printf b) external c) auto d) scanf Ans: c
  1. C allows arrays of greater than two dimensions, who will determined this a) programmer b) compiler c) parameter d) None of these Ans: b
  2. A pointer to a pointer in a form of a) multiple indirection b) a chain of pointers c) both a and b d) None of these Ans: c
  3. Pointers are of a) integer data type b) character data type c) unsigned integer data types d) None of these Ans: d
  4. Maximum number of elements in the array declaration int a[5][8] is a) 28 b) 32 c) 35 d) 40 Ans: d
  5. If the size of the array is less than the number of initializers then, a) Extra values are being ignored b) Generates an error message c) Size of Array is increased d) Size is neglected when values are given Ans: a
  6. Array subscripts in C always start at a) - b) 1 c) 0 d) Value provided by user Ans: c
  7. A Structure a) can be read as a single entity b) cannot be read as a single entity c) can be displayed as a single entity d) has member variables that cannot be read individually Ans: b
  8. Which is the correct way to declare a pointer? a) int_ptr; b) int *ptr; c) *int ptr; d) None of these. Ans: b
  1. If you want to exchange two rows in a two dimensional array, the fastest way is to: a) Exchange the elements of the 2rows b) Exchange the address of each element in the two row c) Silence the address of the rows in an array of pointer and exchange the pointer d) None of these. Ans: c

  2. A type cast is used to a) Define a new data type b) Force a value to be a particular variable type c) Rename an old type d) None of these. Ans: b

  3. Operator precedence determines which operator a) Operators on the largest number b) Is used first c) Is most important d) None of these. Ans:b

  4. If you don’t initialize a static array, what will be the element set to? a) Zero b) A floating point c) An undetermined value d) None of these. Ans: a

  5. Which is more appropriate for reading in a multi-word string? a) gets( ) b) Printf( ) c) scanf( ) d) puts ( ). Ans: a

  6. The process of translating a source program into machine language is a function of: a) Compiler b) Translator c) Assembler d) None of these. Ans: a

  7. Function argument can be a) A structure member b) A pointer variable c) A complete structure d) All of the above. Ans: d

  8. A “switch” statement is used to: a) Switch between user defined functions in a program b) Switch from one variable to another variable c) Jump from one place to another in a program. d) None of these. Ans: d

  1. What is the control character for "a decimal integer". a) %c b) %d c) %i d) %p Ans: b
  2. What is the control character for "a floating point number". a) %c b) %d c) %i d) %f Ans: d
  3. C supports the ______ statement to branch unconditionally from one point to another in the program. a) continue b) goto c) break d) for Ans: b
  4. The _______ is used to break out of the case statements. a) continue b) break c) default d) case Ans: b