Programming MCQs Feed

📊 PHP
Q. Which statement is faster echo or print?
  • (A) echo
  • (B) print
  • (C) either A or B
  • (D) None of these
💬 Discuss
✅ Correct Answer: (A) echo
📊 CSS
Q. Which of the following argument is not accepted by radial-gradient() function?
  • (A) Color stops
  • (B) Position
  • (C) Shape
  • (D) Time
💬 Discuss
✅ Correct Answer: (D) Time
📊 C++
Q. What is the output of the following C++ code?
Code:
#include <iostream>
using namespace std;
void display(double  f)
{
  cout << f << endl;
}
void display(int i)
{
  cout << i << endl;
}
int main(void)
{
  display(3);
  display(28.99);
  return 0;
}
  • (A) 28.99
  • (B) 3
  • (C) Both A and B are true.
  • (D) None of these
💬 Discuss
✅ Correct Answer: (C) Both A and B are true.
📊 SQL Server
Q. Which checkpoints runs just like any other T-SQL statement, once you issue checkpoint command it will run to its completion?
  • (A) Automatic
  • (B) Manual
  • (C) Indirect
  • (D) Internal
💬 Discuss
✅ Correct Answer: (B) Manual
📊 SQL Server
Q. What does the SQL Server setup program require?
  • (A) Named Pipes
  • (B) Shared Memory
  • (C) Microsoft Windows Installer 4.5
  • (D) All of the mentioned
💬 Discuss
✅ Correct Answer: (B) Shared Memory
📊 CSS
Q. How will you make all paragraph elements 'RED' in color ?
  • (A) .p.all {color: red;}
  • (B) .* {color: #990000;}
  • (C) all.p {color: #998877;}
  • (D) p {color: red;}
💬 Discuss
✅ Correct Answer: (D) p {color: red;}
📊 PHP
Q. PHP stands for
  • (A) Hypertext Preprocessor
  • (B) Pretext Hypertext Preprocessor
  • (C) Personal Home Processor
  • (D) None of the above
💬 Discuss
✅ Correct Answer: (A) Hypertext Preprocessor
📊 Linux
Q. Hidden file can be viewed using ______.
  • (A) ls -a
  • (B) ls -l
  • (C) ls -h
  • (D) Is - k
💬 Discuss
✅ Correct Answer: (A) ls -a
📊 C++
Q. What are mandatory parts in the function declaration?
  • (A) return type, function name
  • (B) return type, function name, parameters
  • (C) parameters, function name
  • (D) parameters, variables
💬 Discuss
✅ Correct Answer: (A) return type, function name
📊 Python
Q. Output of the following python program will be?
Code:
l = [1,2,6,5,7,8] 
l.insert(9)
  • (A) Error
  • (B) l=[9,1,2,6,5,7,8]
  • (C) l=[1,2,6,5,7,8,9]
  • (D) l=[1,2,6,5,9.7,8] (insert randomly at any position)
💬 Discuss
✅ Correct Answer: (A) Error