Quiz
Programming Languages
Dieses Quiz hat ein Zeitlimit und öffnet sich deshalb im gewohnten Player.
Fragen in diesem Quiz (20)
1The format identifier ‘%i’ is also used for _____ data type?
- Achar
- Bint
- Cfloat
- Dunsigned int
2what is the output?
#include <stdio.h>
int main()
{
printf("Hello World! %d \n", x);
return 0;
}- AHello World! x;
- BHello World! followed by a junk value
- CCompile time error
- DHello World!
3 Escape sequences are prefixed with-
- A%
- B/
- C"
- D\
4Which one is not a reserved keyword for C?
- Aauto
- Bmain
- Ccase
- Dprintf
5What is the difference between a declaration and a definition of a variable?
- ABoth can occur multiple times, but a declaration must occur first.
- BA definition occurs once, but a declaration may occur many times.
- CBoth can occur multiple times, but a definition must occur first.
- DA declaration occurs once, but a definition may occur many times.
6My salary was increased by 15%" Select the statement, which will EXACTLY reproduce the line of text above.
- Aprintf("My salary was increased by 15/%!");
- Bprintf("My salary was increased by 15%!");
- Cprintf("My salary was increased by 15'%'!");
- Dprintf("My salary was increased by 15%%!");
7C is a procedural programming Language-
- ARichtig
- BFalsch
8Step by step instructions to solve a problem-
- Aclass
- Bpseudocode
- Calgorithm
- DFlowchart
9What is/are the number of operand/operands needed to unary operator logical not(!)?
- A4
- B3
- C2
- D1
10Which is the correct sequence statements that swaps values of two statements?
- Aa=a+b; a=a-b; b=a-b;
- Ba=a+b, b=a-b; a=a-b;
- Ca=a-b; a=a+b; b=b-a;
- DNone of these
11Maximum value of an unsigned integer is-
- A65535
- B32767
- C-32767
- D-65535
12Which four options describe the correct default values for array elements of the types indicated?
int -> 0
String -> "null"
Dog -> null
char -> '\u0000'
float -> 0.0f
boolean -> true- A1, 2, 3, 4
- B1, 3, 4, 5
- C2, 4, 5, 6
- D3, 4, 5, 6
13Java is a ........... language.
- Aweakly typed
- Bstrongly typed
- Cmoderate typed
- DNone of these
14In Java arrays are:
- Aobjects
- Bobject references
- Cprimitive data type
- DNone of the above
15When you pass an array to a method, the method receives ________ .
- AA copy of the array.
- BA copy of the first element.
- CThe reference of the array.
- DThe length of the array.
16The String method compareTo() returns
- Atrue
- Bfalse
- Can int value
- D1
- E-1
17Class Equals
{
public static void main(String [] args)
{
int x = 100;
double y = 100.1;
boolean b = (x = y); /* Line 7 */
System.out.println(b);
}- Atrue
- Bfalse
- CCompilation fails
- DAn exception is thrown at runtime
18Which of the these is the functionality of ‘Encapsulation’?
- ABinds together code and data
- BUsing single interface for general class of actions.
- CReduce Complexity
- DAll of the mentioned
19Which of the following supports the concept of hierarchical classification?
- APolymorphism
- BEncapsulation
- CAbstraction
- DInheritance
20The keyword 'this' is used -
- AAs reference to current object
- BExplicit constructor invocation
- CIn open recursion
- DAll the above
Informationen
- Beschreibung
- Quiz am Programming Languages, erstellt von Gradstall Quiz am 06/11/2017.
- Autor
- Gradstall Quiz
- Sprache
- English
- Aufrufe
- 2
- Schlagwörter
- Bewertung
- Noch keine Bewertungen Bewerte dieses Quiz