Tag: softskills

Questions Related to softskills

Multiple choice softskills communication
  1. refined and elegant mannerism

  2. clumsiness and ineptitude

  3. gauche and slipshod performance

  4. inelegant way of talking

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Panache means distinctive or stylish elegance - a confident, refined manner of doing things. Think of 'with great panache' - doing something with flair and sophistication. Options B, C, and D all describe clumsiness or inelegance, which are opposites of panache.

Multiple choice softskills creativity
  1. i=i+1

  2. i=1*1

  3. i++

  4. i=i^2

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In many low-level environments and older compilers, simple addition (i=i+1) or increment (i++) is faster than multiplication or exponentiation. However, modern compilers optimize these to be identical. The stored answer 'i=i+1' is a traditional choice for basic arithmetic speed.

Multiple choice softskills creativity
  1. zero only

  2. ZERO or Void Pointer

  3. Zero or void

  4. none

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In C programming, NULL is a macro that expands to either 0 or a void pointer (void*) depending on context. It represents a null pointer constant. The correct answer captures both possibilities. Option C is similar but 'void' alone is not a pointer type.

Multiple choice softskills creativity
  1. Java

  2. C/C++

  3. Python

  4. Pascal

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

C/C++ is faster than Java, Python, and Pascal because it's compiled to machine code without the overhead of a virtual machine or interpreter. Java uses JVM, Python is interpreted, and Pascal is generally slower than C. C/C++ gives the most direct hardware control.

Multiple choice softskills creativity
  1. process.h & Dos.h

  2. string.h & process.h

  3. process.h & string.h

  4. Dos.h & Process.h

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

exit() is declared in process.h (or stdlib.h in standard C), while memset() is declared in string.h. The correct answer lists process.h first for exit(), then string.h for memset(). Option A reverses the order, and B has them paired with wrong functions.

Multiple choice softskills creativity
  1. sieve of Atkin

  2. Cheacking each number wherther it is prime or not

  3. Eratosthenes Sieve

  4. none of the above

Reveal answer Fill a bubble to check yourself
A,C Correct answer
Explanation

Both Sieve of Atkin and Eratosthenes Sieve efficiently generate all primes up to N using O(N log log N) time complexity. Eratosthenes works by iteratively marking multiples of each prime starting from 2, while Atkin uses quadratic forms to sieve composites. Both algorithms easily handle N=10^6 within 2 seconds even on modest hardware. Option B is inefficient (O(N*sqrt(N))) and would exceed the time limit.

Multiple choice softskills creativity
  1. Nothing

  2. 3

  3. 1

  4. 2

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The while(1); statement is an infinite loop - the semicolon makes it an empty statement that repeats forever. The lines c++ and printf are unreachable code that never executes. The program hangs in the infinite loop, producing no output. This is a classic unreachable code scenario.

Multiple choice softskills creativity
  1. 3.4141

  2. 3.41426

  3. 3.414164

  4. 3.4142

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The format specifier %0.4f means print with 4 decimal places. Standard rounding applies: 3.414164 rounded to 4 places looks at the 5th digit (6), which rounds the 4th digit up from 1 to 2. Therefore 3.4142 is printed. Options A, B, and C are incorrect because they either truncate or round incorrectly.