Thursday, 10 October 2019

Solved : M3-R4: PROGRAMMING & PROBLEM SOLVING THROUGH ‘C’ LANGUAGE , July-2016

Solved : M3-R4: PROGRAMMING & PROBLEM SOLVING THROUGH ‘C’ LANGUAGE , July-2016

1. Each question below gives a multiple choice of answers. Choose the most appropriate one and enter in the “OMR” answer sheet supplied with the question paper, following instructions therein.


1.1 How many times below for loop will be executed?
#include<stdio.h> 
int main()
{
int i=0; for(;;)
printf("%d",i); return 0;
}

A) 0 times
B) Infinite times
C) 10 times
D) 1 times
Answer

Sunday, 6 October 2019

Answer : Internet Technology and Web Design Question Paper (July-16)

Answer : Internet Technology and Web Design Question Paper (July-16)

1. Multiple Choice


1.1 : B
1.2 : B
1.3 : C
1.4 : B
1.5 : A
1.6 : B
1.7 : D
1.8 : B

Solved : Internet Technology and Web Design Question Paper (July-16)

Solved : Internet Technology and Web Design Question Paper (July-16)

Q 1 : Each question below gives a multiple choice of answers. Choose the most appropriate one and enter in the “OMR” answer sheet supplied with the question paper, following instructions therein. (1x10)

1.1 : FTP is
A) Server side encryption protocol
B) Control connection to remote computer to transfer files
C) User Datagram Protocol.
D) Authorization of a user through login and password verification.
Answer

Thursday, 3 October 2019

Delete function using PHP Prepare statement using MySQL

Delete function using PHP Prepare statement using MySQL

function deleteBreaking($id)
{
ini_set('display_errors',1);
ini_set('display_startup_errors', 1);
mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);
  $stmt = $this->conn->stmt_init();
  if ($stmt->prepare("delete from  breaking_news where id=?"))
  {
   $stmt->bind_param("i",$id);     
   $stmt->execute() or die("<h1>Error</h1>".mysqli_error($this->conn));       
   $stmt->close();   
   return "<span class='g-successMsg'>Breaking News Deleted Successfully</span>";;
  }
  else
  {
  
   return "<span class='errorMsg'>Oops ! Error in Deleting breaking news, Please try again later</span>";
  }  
}