Programming Languages and Database Technologies
MCQs covering C, Java, C++ programming languages and database management systems
Questions
Which is the best example of ternary operator if 'a' is an integer variable?
- (a == 1) ? 20: 30
- (a = 1) ? 20: 30
- (a == 1) > 20: 30
- (a* == 1) ? 20: 30
- None of these
Which are the three standard file names accessed by any C program?
- Standard input file, standard output file, standard error file
- Stdin, stdout, stderr
- Keywords, mouse, stderr
- Registry, Lib, Monitor
- None of these
What is the name of '&&' and '||' operators?
- Arithmetic operators
- Assignment operators
- Logical operators
- Relational operators
- Unary operators
Which are the single character input/output functions in C language?
- scanf( ) and printf( )
- getchar( ) and printf( )
- scanf( ) and putchar( )
- getchar( ) and putchar( )
- get() and put()
Which of the following is the first RDBMS used commercially?
- DB2
- My SQL
- MS SQL
- ORACLE
- MSSQL 2005
Which of the following is a valid keyword in Java?
- Float
- Interface
- String
- Unsigned
- None of these
Java is derived from which programming language?
- COBOL
- PERL
- C
- Oak
- BASIC
Which is the best option in context with Java program?
- Fastest of all
- Platform independent
- Platform dependent
- Limited
- Not scalable
Which of the following is true in the context with Java programming language?
- Efficient and faster than C
- Insecurity of data
- Not robust
- Object-oriented and interpreted
- None of these
Which of the following is not a Java primitive type?
- Byte
- Float
- Character
- Long double
- None of these
Which is the best suited option in context with OOP features in Java programing language?
- High vulnerability
- Increasing productivity
- Non reusability
- Increasing maintenance cost
- None of these
From which class are all the other classes derived in Java?
- java.lang.Class
- java.util.Name
- java.lang.Object
- java.awt.Window
- java.dll.obj
What are inner classes in Java?
- Nested classes
- Anonymous classes
- Sub classes
- Derived classes
- Lower classes
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?
- Account blocking
- Account locking
- Password history
- Password verification
- Password matching
What user privilege is required to create a new database in oracle?
- Resource
- Network Admin
- System Admin
- DBA
- SYSDBA
Operator overloading is not possible for which of the following operators?
- Arrow operator
- Scope resolution operator
- Assignment operator
- Equality operator
- None of these
What is the level of C language in context to computer programming languages?
- High level
- Low level
- Middle level
- Upper level
- None of these
Expand the acronym STL in terms of C++.
- Serial Template Library
- Simple Template Library
- Standard Template Library
- Single Type Library
- Static Template Library
What is the symbol of of scope resolution operator in C language?
- |
- ||
- *
- >
- ::