Programming Fundamentals and .NET Framework
Covers shell scripting, data structures, algorithms, and .NET framework terminology
Questions
CLR stands for
- Common Language Runtime
- Common Language Routine
- Class Library Routine
- None
CIL stands for
- Common Interface Language
- Common Intermediate Language
- Common Interpreter Language
- None
BCL stands for
- Base Class Language
- Base Class Library
- Binary Coded Language
- None
WCF stands for
- Windows Cardspace Foundation
- Windows Communication Foundation
- Workflow Calculation Format
- None
FCL stands for
- Fuctional Code Link
- Framework Class Language
- Framework Class Library
- None
GC stands for
- Global Cache
- Garbage Collector
- Generation Code
- None
Which of the following asymptotic notation is used to represent tighter bound?
- Big-O
- Small-O
- Omega
- theta
Time complexity of algorithm1 is T (n^2) and that of algorithm2 is T (n).Then which of the following statements are true?
- Algorithm1 beats algorithm2 when n tends to infinity
- Algorithm2 beats algorithm when n tends to infinity
- Nothing can be said about the performance of both algorithms for lower values of n
- Algorithm1 performs the same as algorithm2
Which of the following techniques are used for optimization?
- Dynamic programming
- Cyclic coding
- Huffmann coding
- Greedy algorithm.
Name of very Efficient Maximum Flow Algorithm is
- Push algorithm
- Pop algorithm
- Push-Re label method
- Discoverer Route.
Which of the following are Balanced Binary Search Trees?
- AVL trees.
- JBL trees
- Red-black Trees
- Blue-Green Trees
Extract $length characters of substring from $string at $position.
- ${string:position:length}
- ${string:length:position}
- ${string:length-position}
- ${string::length::position}
command to create and maintain library archives
- arch
- tar
- ar
- aux
To start process and run it in background
- !
- $$
- &
- +
The special variables $* and $@ denote all the _________ parameters
- positional
- variable
- Named
- internal
Built in Variable to tell you the PID of last started background process
- $$
- $#
- $_
- $!
let "var <<= 2" results in
- var left-shifted 2 bits
- var mutliplied by 2 bits
- var reduced 2 bits
- None of the above
To find all available shells in your system type the following command
- cat /etc/shells
- cat /tmp/shells
- cat /root/shell
- echo $SHELLS
The syntax for OR list is
- command1 || command2
- command1 && command2
- command1 // command2
- command1 | command2
Which one is the correct syntax for string comparison ?
- if [ "$a" equals "$b" ]
- if [ "$a" -eq "$b" ]
- if [ "$a" = "$b" ]
- if [ "$a" <> "$b" ]