Programming Languages and Database Technologies

MCQs covering C, Java, C++ programming languages and database management systems

19 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which is the best example of ternary operator if 'a' is an integer variable?

  1. (a == 1) ? 20: 30
  2. (a = 1) ? 20: 30
  3. (a == 1) > 20: 30
  4. (a* == 1) ? 20: 30
  5. None of these
Question 2 Multiple Choice (Single Answer)

Which are the three standard file names accessed by any C program?

  1. Standard input file, standard output file, standard error file
  2. Stdin, stdout, stderr
  3. Keywords, mouse, stderr
  4. Registry, Lib, Monitor
  5. None of these
Question 3 Multiple Choice (Single Answer)

What is the name of '&&' and '||' operators?

  1. Arithmetic operators
  2. Assignment operators
  3. Logical operators
  4. Relational operators
  5. Unary operators
Question 4 Multiple Choice (Single Answer)

Which are the single character input/output functions in C language?

  1. scanf( ) and printf( )
  2. getchar( ) and printf( )
  3. scanf( ) and putchar( )
  4. getchar( ) and putchar( )
  5. get() and put()
Question 5 Multiple Choice (Single Answer)

Which of the following is the first RDBMS used commercially?

  1. DB2
  2. My SQL
  3. MS SQL
  4. ORACLE
  5. MSSQL 2005
Question 6 Multiple Choice (Single Answer)

Which of the following is a valid keyword in Java?

  1. Float
  2. Interface
  3. String
  4. Unsigned
  5. None of these
Question 7 Multiple Choice (Single Answer)

Java is derived from which programming language?

  1. COBOL
  2. PERL
  3. C
  4. Oak
  5. BASIC
Question 8 Multiple Choice (Single Answer)

Which is the best option in context with Java program?

  1. Fastest of all
  2. Platform independent
  3. Platform dependent
  4. Limited
  5. Not scalable
Question 9 Multiple Choice (Single Answer)

Which of the following is true in the context with Java programming language?

  1. Efficient and faster than C
  2. Insecurity of data
  3. Not robust
  4. Object-oriented and interpreted
  5. None of these
Question 10 Multiple Choice (Single Answer)

Which of the following is not a Java primitive type?

  1. Byte
  2. Float
  3. Character
  4. Long double
  5. None of these
Question 11 Multiple Choice (Single Answer)

Which is the best suited option in context with OOP features in Java programing language?

  1. High vulnerability
  2. Increasing productivity
  3. Non reusability
  4. Increasing maintenance cost
  5. None of these
Question 12 Multiple Choice (Single Answer)

From which class are all the other classes derived in Java?

  1. java.lang.Class
  2. java.util.Name
  3. java.lang.Object
  4. java.awt.Window
  5. java.dll.obj
Question 13 Multiple Choice (Single Answer)

What are inner classes in Java?

  1. Nested classes
  2. Anonymous classes
  3. Sub classes
  4. Derived classes
  5. Lower classes
Question 14 Multiple Choice (Single Answer)

In oracle DBMS, which is the strong password management feature that ensures a user cannot use the same password for a specific duration of time?

  1. Account blocking
  2. Account locking
  3. Password history
  4. Password verification
  5. Password matching
Question 15 Multiple Choice (Single Answer)

What user privilege is required to create a new database in oracle?

  1. Resource
  2. Network Admin
  3. System Admin
  4. DBA
  5. SYSDBA
Question 16 Multiple Choice (Single Answer)

Operator overloading is not possible for which of the following operators?

  1. Arrow operator
  2. Scope resolution operator
  3. Assignment operator
  4. Equality operator
  5. None of these
Question 17 Multiple Choice (Single Answer)

What is the level of C language in context to computer programming languages?

  1. High level
  2. Low level
  3. Middle level
  4. Upper level
  5. None of these
Question 18 Multiple Choice (Single Answer)

Expand the acronym STL in terms of C++.

  1. Serial Template Library
  2. Simple Template Library
  3. Standard Template Library
  4. Single Type Library
  5. Static Template Library
Question 19 Multiple Choice (Single Answer)

What is the symbol of of scope resolution operator in C language?

  1. |
  2. ||
  3. *
  4. >
  5. ::